[Pkg-mongodb-maintainers] [pkg-mongodb] 32/394: Added support of nostrip and debug DEB_BUILD_OPTIONS (Closes: #570077)

Apollon Oikonomopoulos apoikos at moszumanska.debian.org
Wed Sep 21 13:57:47 UTC 2016


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

apoikos pushed a commit to branch master
in repository pkg-mongodb.

commit 4d5a2c1d3aa87a9cc6b48dff4e9678cbcbb11690
Author: Antonin Kral <a.kral at bobek.cz>
Date:   Tue Feb 16 21:46:14 2010 +0100

    Added support of nostrip and debug DEB_BUILD_OPTIONS (Closes: #570077)
---
 debian/rules | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index 63871eb..7c8af02 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,6 +9,15 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
+# debug and nostrip is effectively equivalent for current version of scons
+# build system in current mongodb revision
+DEB_SCONS_FLAGS :=
+ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
+    DEB_SCONS_FLAGS := --d=DEBUGBUILD
+endif
+ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+    DEB_SCONS_FLAGS := --d=DEBUGBUILD
+endif
 
 configure: configure-stamp
 configure-stamp:
@@ -24,7 +33,7 @@ build-stamp: configure-stamp
 	dh_testdir
 
         # Add here commands to compile the package.
-	scons 
+	scons $(DEB_SCONS_FLAGS)
         #docbook-to-man debian/mongodb.sgml > mongodb.1
 	ls debian/*.1 > debian/mongodb.manpages
 

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



More information about the Pkg-mongodb-maintainers mailing list