Bug#766993: jackd2: FTBFS with DEB_BUILD_PARALLEL=1 DEB_BUILD_OPTIONS="parallel=4"
YunQiang Su
wzssyqa at gmail.com
Mon Oct 27 13:32:43 UTC 2014
Package: jackd2
Version: 1.9.10+20140719git3eb0ae6a~dfsg-2
When building jackd2 with DEB_BUILD_PARALLEL=1 DEB_BUILD_OPTIONS="parallel=4",
it fails:
CFLAGS="-g -O2 -fstack-protector-strong -Wformat
-Werror=format-security -fvisibility=hidden -Wall" CXXFLAGS="-g -O2
-fstack-protector-strong -Wformat -Werror=format-security
-fvisibility=hidden -Wall" CPPFLAGS="-D_FORTIFY_SOURCE=2"
LDFLAGS="-Wl,-z,relro" -j4 ./waf-light configure --prefix=/usr
--classic --libdir=/usr/lib/mips64el-linux-gnuabi64 --alsa --dbus
/bin/sh: 1: -j4: not found
The attached patch can fix it.
--
YunQiang Su
-------------- next part --------------
diff -Nru jackd2-1.9.10+20140719git3eb0ae6a~dfsg/debian/rules jackd2-1.9.10+20140719git3eb0ae6a~dfsg/debian/rules
--- jackd2-1.9.10+20140719git3eb0ae6a~dfsg/debian/rules 2014-09-25 03:36:18.000000000 +0800
+++ jackd2-1.9.10+20140719git3eb0ae6a~dfsg/debian/rules 2034-12-21 20:32:39.000000000 +0800
@@ -39,12 +39,15 @@
# Minimum assured version referenced upstream as library API/ABI
ABI = 0.118.0
+WAF_EXTRA_ARGS=$(shell echo '$(DEB_MAKE_EXTRA_ARGS)' | sed 's/-j[0-9]*//g')
+WAF_JOBS=$(shell echo '$(DEB_MAKE_EXTRA_ARGS)' | grep -o -- '-j[0-9]*')
+
waf-configure-options = --prefix=/usr --classic
waf-configure-options += --libdir=/usr/lib/$(DEB_HOST_MULTIARCH)
waf-configure-options += $(if $(filter linux,$(DEB_HOST_ARCH_OS)),--alsa --dbus)
waf-configure-options += $(if $(filter amd64 i386 powerpc,$(DEB_HOST_ARCH)),--firewire)
-DEB_MAKE_INVOKE = $(DEB_MAKE_EXTRA_ARGS) ./waf-light -v --destdir=$(CURDIR)/debian/tmp
+DEB_MAKE_INVOKE = $(WAF_EXTRA_ARGS) ./waf-light -v --destdir=$(CURDIR)/debian/tmp $(WAF_JOBS)
DEB_MAKE_INSTALL_TARGET = install
# TODO: use distclean and drop related clean target, when (or if)
@@ -75,7 +78,7 @@
common-configure-impl:: debian/stamp-waf-configure
debian/stamp-waf-configure:
chmod +x ./waf-light
- $(DEB_MAKE_EXTRA_ARGS) ./waf-light configure $(waf-configure-options)
+ $(WAF_EXTRA_ARGS) ./waf-light configure $(waf-configure-options) $(WAF_JOBS)
touch $@
clean::
rm -f debian/stamp-waf-configure
More information about the pkg-multimedia-maintainers
mailing list