[Pkg-ceph-commits] [ceph] 03/03: d/rules: Disable parallel builds on arm64, resolving FTBFS due to memory constraints in builders.

James Downing Page jamespage at moszumanska.debian.org
Fri Jan 15 08:07:21 UTC 2016


This is an automated email from the git hooks/post-receive script.

jamespage pushed a commit to branch ubuntu-xenial
in repository ceph.

commit 2a873f6c514bb61ee37ae9b0dd093a5b396175d1
Author: James Page <james.page at ubuntu.com>
Date:   Fri Jan 15 10:05:18 2016 +0200

    d/rules: Disable parallel builds on arm64, resolving FTBFS due to memory constraints in builders.
---
 debian/changelog | 2 ++
 debian/rules     | 9 ++++++++-
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index f9d8022..bc107c9 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,8 @@ ceph (9.2.0-0ubuntu3) xenial; urgency=medium
 
   * d/ceph{-common}.install: Move ceph_daemon module to common package
     as its required to use the ceph command.
+  * d/rules: Disable parallel builds on arm64, resolving FTBFS due to
+    memory constraints in builders.
 
  -- James Page <james.page at ubuntu.com>  Fri, 15 Jan 2016 10:00:47 +0200
 
diff --git a/debian/rules b/debian/rules
index 38e9237..485299a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -38,11 +38,18 @@ else
   extraopts += --without-tcmalloc
 endif
 
+# Setup max parallel builds based on architecture
+ifeq ($(DEB_HOST_ARCH), arm64)
+  maxparallel=1
+else
+  maxparallel=2
+endif
+
 # Use system provided libs3
 extraopts += --with-system-libs3
 
 %:
-	dh $@ --with javahelper,python2,autoreconf,systemd --parallel --max-parallel=2
+	dh $@ --with javahelper,python2,autoreconf,systemd --parallel --max-parallel=$(maxparallel)
 
 # use --as-needed only if supported by dh-autoreconf (to simplify backporting)
 DH_AS_NEEDED=$(shell dpkg --compare-versions $$(dpkg --status dh-autoreconf | grep Version | cut -d' ' -f2) ge 6 && echo --as-needed)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ceph/ceph.git



More information about the Pkg-ceph-commits mailing list