Package: iputils Version: 3:20121221-4 Severity: minor Tags: patch Hi!
The Makefiles in the iputils package, particularly the one under doc/, do not play nicely with parallel make. I've attached a log of the output (combined stdout and stderr) from dpkg-buildpackage when attempting to build iputils 3:20121221-4 with MAKEFLAGS=-j12. I've also attached a trivial patch which simply unexports MAKEFLAGS in debian/rules to make sure that the package builds regardless of the user's preferred make options. This allows iputils to build successfully for me. Thanks, Steven. -- System Information: Debian Release: jessie/sid APT prefers unstable APT policy: (800, 'unstable'), (700, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.11-2-amd64 (SMP w/8 CPU cores) Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash
dpkg-buildpackage: source package iputils dpkg-buildpackage: source version 3:20121221-4 dpkg-buildpackage: source distribution unstable dpkg-buildpackage: source changed by Noah Meyerhans <[email protected]> dpkg-source --before-build iputils-20121221 dpkg-buildpackage: host architecture amd64 fakeroot debian/rules clean dh_testdir dh_testroot /usr/bin/make clean fatal: Not a git repository (or any parent up to mount point /home) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set). make[1]: Entering directory `/home/steven/ping/iputils-20121221' make[2]: Entering directory `/home/steven/ping/iputils-20121221/Modules' make[2]: Leaving directory `/home/steven/ping/iputils-20121221/Modules' make[2]: Entering directory `/home/steven/ping/iputils-20121221/doc' make[2]: Leaving directory `/home/steven/ping/iputils-20121221/doc' make[1]: Leaving directory `/home/steven/ping/iputils-20121221' dh_clean dpkg-source -b iputils-20121221 dpkg-source: info: using source format `3.0 (quilt)' dpkg-source: info: building iputils using existing ./iputils_20121221.orig.tar.bz2 dpkg-source: info: building iputils in iputils_20121221-4.debian.tar.gz dpkg-source: info: building iputils in iputils_20121221-4.dsc debian/rules build dh_testdir dh_testdir dh_testdir /usr/bin/make /usr/bin/make -C doc man fatal: Not a git repository (or any parent up to mount point /home) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set). make[1]: Entering directory `/home/steven/ping/iputils-20121221' gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -O3 -Wstrict-prototypes -Wall -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -c tracepath.c -o tracepath.o gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -O3 -Wstrict-prototypes -Wall -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -c ping.c -DCAPABILITIES -o ping.o gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -O3 -Wstrict-prototypes -Wall -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -c ping_common.c -DCAPABILITIES -o ping_common.o gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -O3 -Wstrict-prototypes -Wall -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -c clockdiff.c -DCAPABILITIES -o clockdiff.o gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -O3 -Wstrict-prototypes -Wall -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -c arping.c -DCAPABILITIES -o arping.o gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -O3 -Wstrict-prototypes -Wall -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -c tracepath6.c -o tracepath6.o gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -O3 -Wstrict-prototypes -Wall -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -c traceroute6.c -DCAPABILITIES -o traceroute6.o gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -O3 -Wstrict-prototypes -Wall -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -c ping6.c -DCAPABILITIES -DUSE_GNUTLS -o ping6.o make[1]: Entering directory `/home/steven/ping/iputils-20121221/doc' mkdir: cannot create directory ‘tmp.db2man’: File exists mkdir: cannot create directory ‘tmp.db2man’: File exists make[1]: [clockdiff.8] Error 1 (ignored) make[1]: [ninfod.8] Error 1 (ignored) mkdir: cannot create directory ‘tmp.db2man’: File exists make[1]: [pg3.8] Error 1 (ignored) ping.c: In function ‘main’: ping.c:501:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] *(__u32*)&rspace[4+i*8] = route[i]; ^ ping.c:521:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] *(__u32*)&rspace[4+i*4] = route[i]; ^ gcc -Wl,-z,relro tracepath.o -o tracepath gcc -Wl,-z,relro tracepath6.o -o tracepath6 mkdir: cannot create directory ‘tmp.db2man’: File exists make[1]: [ping.8] Error 1 (ignored) nsgmls:../tracepath.sgml:72:24:E: end tag for "OPTION" omitted, but its declaration does not permit this nsgmls:../tracepath.sgml:72:8: start tag was here nsgmls:../tracepath.sgml:72:24:E: end tag for "OPTION" omitted, but its declaration does not permit this nsgmls:../tracepath.sgml:72:8: start tag was here gcc -Wl,-z,relro traceroute6.o -lcap -o traceroute6 mkdir: cannot create directory ‘tmp.db2man’: File exists make[1]: [rarpd.8] Error 1 (ignored) nsgmls:../tracepath.sgml:72:24:E: end tag for "OPTION" omitted, but its declaration does not permit this nsgmls:../tracepath.sgml:72:8: start tag was here nsgmls:../tracepath.sgml:72:24:E: end tag for "OPTION" omitted, but its declaration does not permit this nsgmls:../tracepath.sgml:72:8: start tag was here mkdir: cannot create directory ‘tmp.db2man’: File exists make[1]: [rdisc.8] Error 1 (ignored) gcc -Wl,-z,relro arping.o -lcap -o arping nsgmls:../tracepath.sgml:72:24:E: end tag for "OPTION" omitted, but its declaration does not permit this nsgmls:../tracepath.sgml:72:8: start tag was here gcc -Wl,-z,relro clockdiff.o -lcap -o clockdiff nsgmls:../tracepath.sgml:72:24:E: end tag for "OPTION" omitted, but its declaration does not permit this nsgmls:../tracepath.sgml:72:8: start tag was here mkdir: cannot create directory ‘tmp.db2man’: File exists make[1]: [tftpd.8] Error 1 (ignored) mkdir: cannot create directory ‘tmp.db2man’: File exists make[1]: [tracepath.8] Error 1 (ignored) nsgmls:../tracepath.sgml:72:24:E: end tag for "OPTION" omitted, but its declaration does not permit this nsgmls:../tracepath.sgml:72:8: start tag was here mkdir: cannot create directory ‘tmp.db2man’: File exists make[1]: [traceroute6.8] Error 1 (ignored) sh: 0: getcwd() failed: No such file or directory Cannot create file rarpd.8. at ../docbook2man-spec.pl line 259. /bin/sh: 1: cd: can't cd to tmp.db2man Cannot create file traceroute6.8. at ../docbook2man-spec.pl line 259. sed: can't read tracepath.8: No such file or directory make[1]: *** [rdisc.8] Error 2 make[1]: *** Waiting for unfinished jobs.... make[1]: *** [traceroute6.8] Error 2 make[1]: *** [rarpd.8] Error 2 make[1]: *** [fix_sgml2man] Error 2 Cannot create file pg3.8. at ../docbook2man-spec.pl line 259. sh: 0: getcwd() failed: No such file or directory make[1]: *** [clockdiff.8] Error 2 sh: 0: getcwd() failed: No such file or directory sh: 0: getcwd() failed: No such file or directory gcc -Wl,-z,relro ping.o ping_common.o -lcap -o ping Cannot create file pg3.8. at ../docbook2man-spec.pl line 259. Cannot create file rdisc.8. at ../docbook2man-spec.pl line 259. make[1]: *** [pg3.8] Error 2 make[1]: *** [ping.8] Error 2 mv: cannot stat ‘arping.8’: No such file or directory make[1]: *** [arping.8] Error 1 Cannot create file arping.8. at ../docbook2man-spec.pl line 259. make[1]: *** [tftpd.8] Error 2 Cannot create file arping.8. at ../docbook2man-spec.pl line 259. make[1]: *** [tracepath.8] Error 2 make[1]: Leaving directory `/home/steven/ping/iputils-20121221/doc' make: *** [build-indep] Error 2 make: *** Waiting for unfinished jobs.... gcc -Wl,-z,relro ping6.o ping_common.o -lcap -lresolv -lgnutls-openssl -o ping6 make[1]: Leaving directory `/home/steven/ping/iputils-20121221' dpkg-buildpackage: error: debian/rules build gave error exit status 2
diff -Nru iputils-20121221/debian/rules iputils-20121221/debian/rules --- iputils-20121221/debian/rules 2013-12-13 18:55:17.000000000 +1100 +++ iputils-20121221/debian/rules 2013-12-15 22:24:57.000000000 +1100 @@ -10,6 +10,9 @@ # This has to be exported to make some magic below work. export DH_OPTIONS +# Make sure we don't have parallel make set from the user's environment. +unexport MAKEFLAGS + configure: dh_testdir

