]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
make-dist: repackage boost in the correct path
authorKefu Chai <kchai@redhat.com>
Fri, 24 Nov 2017 02:27:19 +0000 (10:27 +0800)
committerKefu Chai <kchai@redhat.com>
Sat, 30 Dec 2017 03:45:35 +0000 (11:45 +0800)
before this change, boost is put into ./src. after this change, it is
put into $outfile/src. i.e. something like
ceph-12.1.2-4592-gf5f2ced624/src .

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 2218efa005ab871f26402b5dd33b2e599897c11f)

make-dist

index 0b4632a5c766732d86735a68f136bc9e95645312..80a9109228a9971b0a48aa039ed1f725782046a7 100755 (executable)
--- a/make-dist
+++ b/make-dist
@@ -48,7 +48,7 @@ download_boost() {
     set -e
     tar xjf $boost_fname -C src
     mv src/boost_${boost_version_underscore} src/boost
-    tar cf ${outfile}.boost.tar src/boost
+    tar cf ${outfile}.boost.tar ${outfile}/src/boost
     rm -rf src/boost
 }
 
@@ -81,14 +81,6 @@ else
        rpm_release=0
 fi
 
-# NOTE: If you change this version number make sure the package is available
-# at the three URLs referenced below (may involve uploading to download.ceph.com)
-boost_version=1.63.0
-download_boost $boost_version 1c837ecd990bb022d07e7aab32b09847 \
-               https://dl.bintray.com/boostorg/release/$boost_version/source \
-               https://downloads.sourceforge.net/project/boost/boost/$boost_version \
-               https://download.ceph.com/qa
-
 for spec in ceph.spec.in alpine/APKBUILD.in; do
     cat $spec |
         sed "s/@VERSION@/$rpm_version/g" |
@@ -97,6 +89,13 @@ for spec in ceph.spec.in alpine/APKBUILD.in; do
 done
 ln -s . $outfile
 tar cvf $outfile.version.tar $outfile/src/.git_version $outfile/ceph.spec $outfile/alpine/APKBUILD
+# NOTE: If you change this version number make sure the package is available
+# at the three URLs referenced below (may involve uploading to download.ceph.com)
+boost_version=1.63.0
+download_boost $boost_version 1c837ecd990bb022d07e7aab32b09847 \
+               https://dl.bintray.com/boostorg/release/$boost_version/source \
+               https://downloads.sourceforge.net/project/boost/boost/$boost_version \
+               https://download.ceph.com/qa
 tar --concatenate -f $outfile.all.tar $outfile.version.tar
 tar --concatenate -f $outfile.all.tar $outfile.boost.tar
 tar --concatenate -f $outfile.all.tar $outfile.tar