]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
buildpackages: do not try tcmalloc on arm64
authorLoic Dachary <ldachary@redhat.com>
Mon, 28 Mar 2016 18:14:02 +0000 (20:14 +0200)
committerLoic Dachary <ldachary@redhat.com>
Mon, 28 Mar 2016 19:58:42 +0000 (21:58 +0200)
Signed-off-by: Loic Dachary <loic@dachary.org>
tasks/buildpackages/common.sh
tasks/buildpackages/make-deb.sh

index 98ff95888de4a4ca825f16adcf88dea38942a97a..5898a03b4d23b4e6612bb8a7f36fc2edb350a199 100644 (file)
@@ -51,7 +51,9 @@ function init_ceph() {
 function flavor2configure() {
     local flavor=$1
 
-    if test $flavor = notcmalloc ; then
+    eval $(dpkg-architecture)
+
+    if test $flavor = notcmalloc || test $DEB_BUILD_ARCH = arm64 ; then
         echo --without-tcmalloc --without-cryptopp
     fi
 }
index ffbd3f9c00aad8792f1381431e1eae1b7e63e35d..adda581e041033191895a024445a09f7e466a180 100755 (executable)
@@ -105,6 +105,7 @@ function build_package() {
     #
     # create the packages (with ccache)
     #
+    export CEPH_EXTRA_CONFIGURE_ARGS=$(flavor2configure $flavor)
     j=$(maybe_parallel $NPROC $vers)
     PATH=/usr/lib/ccache:$PATH dpkg-buildpackage $j -uc -us -sa
 }