[med-svn] [mia] 02/03: Reduce build time on machines with low ram

Gert Wollny gewo at moszumanska.debian.org
Fri Jun 23 09:09:36 UTC 2017


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

gewo pushed a commit to branch master
in repository mia.

commit f038e8f2677401c4a1dc1afd587ce0de90322e51
Author: Gert Wollny <gewo at debian.org>
Date:   Fri Jun 23 08:09:52 2017 +0000

    Reduce build time on machines with low ram
---
 debian/changelog |  7 +++++++
 debian/rules     | 10 ++++++++++
 2 files changed, 17 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 5ff6114..fcad2f4 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+mia (2.4.4-2) unstable; urgency=medium
+
+  * d/rules: Reduce build-time memory usage on mips/mipsel to fix FTBFS
+    Thanks: Adrian Bunk, Closes: #865615
+
+ -- Gert Wollny <gewo at debian.org>  Fri, 23 Jun 2017 08:07:43 +0000
+
 mia (2.4.4-1) unstable; urgency=medium
 
   * Re-upload to unstable
diff --git a/debian/rules b/debian/rules
index 5992887..7faf7ea 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,13 +1,23 @@
 #!/usr/bin/make -f
 # -*- makefile -*-
 
+DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
+ 
+
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 
 export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed -fvisibility=hidden
 
+# reduce debug info to fix FTBFS on archs with low address space
+ifneq (,$(filter $(DEB_HOST_ARCH), mips mipsel))
+  export DEB_CFLAGS_MAINT_APPEND = -g1
+  export DEB_CXXFLAGS_MAINT_APPEND = -g1
+endif
+
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
+
 # deduce documentation option (build-indep target)
 ifeq "" "$(filter %-doc,$(shell dh_listpackages))"
   BUILDDOC = OFF

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



More information about the debian-med-commit mailing list