Package: mongodb
Version: 1:2.2.2-1
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu raring ubuntu-patch

If I use DEB_BUILD_OPTIONS="nocheck parallel=3" then DEB_SCONS_OPTIONS
ends up getting set to "-jnocheck" (or something like that) and the
build fails.

This violates Debian Policy (section 4.9.1).

The fix is trivial. Patch below. I've taken the parsing of the parallel
flag directly from the example in policy.

Thanks

--- debian/rules.orig   2013-03-11 15:41:39.282043551 +0000
+++ debian/rules        2013-03-11 15:42:10.834051515 +0000
@@ -14,7 +14,7 @@
        DEB_SCONS_OPTIONS := --d=DEBUGBUILD
 endif
 ifneq (,$(findstring parallel,$(DEB_BUILD_OPTIONS)))
-       PROCS=$(subst parallel=,,$(DEB_BUILD_OPTIONS))
+       PROCS=$(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
        DEB_SCONS_OPTIONS += -j$(PROCS)
 endif
 


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to