[Pkg-mongodb-maintainers] [pkg-mongodb] 365/394: Generate dbgsym packages by default

Apollon Oikonomopoulos apoikos at moszumanska.debian.org
Wed Sep 21 14:00:33 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 e784d31e33c57d028b10a34faec016dae79825e6
Author: Apollon Oikonomopoulos <apoikos at debian.org>
Date:   Wed Feb 10 18:11:27 2016 +0200

    Generate dbgsym packages by default
    
    Upstream's --nostrip option is not the same as Debian's nostrip
    build option: our nostrip build option means that the
    resulting binaries in the actual mongodb package should - as an
    exception - be unstripped and is handled by dh_strip itself. Not passing
    --nostrip to scons by default has a different effect: the binaries are
    stripped during the build process, before dh_strip gets a chance to
    generate -dbgsym packages.
    
    We address this by changing the default to passing --nostrip to scons,
    however because the -dbgsym packages are huge and their creation
    time-consuming, allow a new "nodbgsym" flag in DEB_BUILD_OPTIONS to
    negate this behavior.
---
 debian/rules | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/debian/rules b/debian/rules
index 418420e..87dccd7 100755
--- a/debian/rules
+++ b/debian/rules
@@ -8,9 +8,11 @@ DEB_SCONS_OPTIONS :=
 ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
 	DEB_SCONS_OPTIONS := --d=DEBUGBUILD
 endif
-ifneq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
-	DEB_SCONS_OPTIONS := --nostrip
+
+ifeq (,$(filter nodbgsym,$(DEB_BUILD_OPTIONS)))
+       DEB_SCONS_OPTIONS += --nostrip
 endif
+
 ifneq (,$(findstring parallel,$(DEB_BUILD_OPTIONS)))
        PROCS=$(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
        DEB_SCONS_OPTIONS += -j$(PROCS)

-- 
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