[Pkg-utopia-maintainers] Bug#894205: policykit-1: frequent parallel FTBFS

Adrian Bunk bunk at debian.org
Tue Mar 27 10:41:03 UTC 2018


Source: policykit-1
Version: 0.105-19
Severity: serious
Tags: patch

https://buildd.debian.org/status/package.php?p=policykit-1&suite=sid

...
make[5]: Entering directory '/<<PKGBUILDDIR>>/src/polkit'
CPPFLAGS="-Wdate-time -D_FORTIFY_SOURCE=2" CFLAGS="-g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wchar-subscripts -Wmissing-declarations -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -Wformat-security" LDFLAGS="-Wl,--as-needed -Wl,-z,relro" CC="gcc" PKG_CONFIG="/usr/bin/pkg-config" GI_HOST_OS="" DLLTOOL="false"  /usr/bin/g-ir-scanner   --namespace=Polkit --nsversion=1.0 --libtool="/bin/bash ../../libtool"  --include=Gio-2.0 --pkg-export=polkit-gobject-1   --library=libpolkit-gobject-1.la --c-include='polkit/polkit.h' --cflags-begin -D_POLKIT_COMPILATION -pthread -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/powerpc64le-linux-gnu/glib-2.0/include   -D_POLKIT_COMPILATION -I.. -I../../src --cflags-end  polkitenumtypes.c polkitenumtypes.h polkit.h polkitactiondescription.c polkitactiondescription.h polkitauthorityfeatures.h polkitauthorityfeatures.c polkitdetails.c polkitdetails.h polkitauthority.c polkitauthority.h polkiterror.c polkiterror.h polkitsubject.c polkitsubject.h polkitunixprocess.c polkitunixprocess.h polkitsystembusname.c polkitsystembusname.h polkitidentity.c polkitidentity.h polkitunixuser.c polkitunixuser.h polkitunixgroup.c polkitunixgroup.h polkitunixnetgroup.c polkitunixnetgroup.h polkitauthorizationresult.c polkitauthorizationresult.h polkitcheckauthorizationflags.c polkitcheckauthorizationflags.h polkitimplicitauthorization.c polkitimplicitauthorization.h polkittemporaryauthorization.c polkittemporaryauthorization.h polkitpermission.c polkitpermission.h polkitunixsession-systemd.c polkitunixsession.h --output Polkit-1.0.gir
g-ir-scanner: link: /bin/bash ../../libtool --mode=link --tag=CC gcc -o /<<PKGBUILDDIR>>/src/polkit/tmp-introspectq1vk752v/Polkit-1.0 -export-dynamic -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wchar-subscripts -Wmissing-declarations -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -Wformat-security /<<PKGBUILDDIR>>/src/polkit/tmp-introspectq1vk752v/Polkit-1.0.o -L. libpolkit-gobject-1.la -lgio-2.0 -lgobject-2.0 -Wl,--export-dynamic -lgmodule-2.0 -pthread -lglib-2.0 -Wl,--as-needed -Wl,-z,relro
libtool:   error: cannot find the library 'libpolkit-gobject-1.la' or unhandled argument 'libpolkit-gobject-1.la'
linking of temporary binary failed: Command '['/bin/bash', '../../libtool', '--mode=link', '--tag=CC', 'gcc', '-o', '/<<PKGBUILDDIR>>/src/polkit/tmp-introspectq1vk752v/Polkit-1.0', '-export-dynamic', '-Wdate-time', '-D_FORTIFY_SOURCE=2', '-g', '-O2', '-fdebug-prefix-map=/<<PKGBUILDDIR>>=.', '-fstack-protector-strong', '-Wformat', '-Werror=format-security', '-Wall', '-Wchar-subscripts', '-Wmissing-declarations', '-Wnested-externs', '-Wpointer-arith', '-Wcast-align', '-Wsign-compare', '-Wformat-security', '/<<PKGBUILDDIR>>/src/polkit/tmp-introspectq1vk752v/Polkit-1.0.o', '-L.', 'libpolkit-gobject-1.la', '-lgio-2.0', '-lgobject-2.0', '-Wl,--export-dynamic', '-lgmodule-2.0', '-pthread', '-lglib-2.0', '-Wl,--as-needed', '-Wl,-z,relro']' returned non-zero exit status 1.
make[5]: *** [/usr/share/gobject-introspection-1.0/Makefile.introspection:160: Polkit-1.0.gir] Error 1
make[5]: Leaving directory '/<<PKGBUILDDIR>>/src/polkit'
make[5]: *** Waiting for unfinished jobs....
make[5]: Entering directory '/<<PKGBUILDDIR>>/src/polkit'
/bin/bash ../../libtool  --tag=CC   --mode=link gcc -D_POLKIT_COMPILATION -pthread -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/powerpc64le-linux-gnu/glib-2.0/include   -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wchar-subscripts -Wmissing-declarations -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -Wformat-security -export-symbols-regex '(^polkit_.*)' -Wl,--as-needed -Wl,-z,relro -o libpolkit-gobject-1.la -rpath /usr/lib/powerpc64le-linux-gnu libpolkit_gobject_1_la-polkitenumtypes.lo  libpolkit_gobject_1_la-polkitactiondescription.lo libpolkit_gobject_1_la-polkitauthorityfeatures.lo libpolkit_gobject_1_la-polkitdetails.lo libpolkit_gobject_1_la-polkitauthority.lo libpolkit_gobject_1_la-polkiterror.lo libpolkit_gobject_1_la-polkitsubject.lo libpolkit_gobject_1_la-polkitunixprocess.lo libpolkit_gobject_1_la-polkitsystembusname.lo libpolkit_gobject_1_la-polkitidentity.lo libpolkit_gobject_1_la-polkitunixuser.lo libpolkit_gobject_1_la-polkitunixgroup.lo libpolkit_gobject_1_la-polkitunixnetgroup.lo libpolkit_gobject_1_la-polkitauthorizationresult.lo libpolkit_gobject_1_la-polkitcheckauthorizationflags.lo libpolkit_gobject_1_la-polkitimplicitauthorization.lo libpolkit_gobject_1_la-polkittemporaryauthorization.lo libpolkit_gobject_1_la-polkitpermission.lo  libpolkit_gobject_1_la-polkitunixsession-systemd.lo  -Wl,--export-dynamic -lgmodule-2.0 -pthread -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lsystemd  
libtool: link: /usr/bin/nm -B  .libs/libpolkit_gobject_1_la-polkitenumtypes.o .libs/libpolkit_gobject_1_la-polkitactiondescription.o .libs/libpolkit_gobject_1_la-polkitauthorityfeatures.o .libs/libpolkit_gobject_1_la-polkitdetails.o .libs/libpolkit_gobject_1_la-polkitauthority.o .libs/libpolkit_gobject_1_la-polkiterror.o .libs/libpolkit_gobject_1_la-polkitsubject.o .libs/libpolkit_gobject_1_la-polkitunixprocess.o .libs/libpolkit_gobject_1_la-polkitsystembusname.o .libs/libpolkit_gobject_1_la-polkitidentity.o .libs/libpolkit_gobject_1_la-polkitunixuser.o .libs/libpolkit_gobject_1_la-polkitunixgroup.o .libs/libpolkit_gobject_1_la-polkitunixnetgroup.o .libs/libpolkit_gobject_1_la-polkitauthorizationresult.o .libs/libpolkit_gobject_1_la-polkitcheckauthorizationflags.o .libs/libpolkit_gobject_1_la-polkitimplicitauthorization.o .libs/libpolkit_gobject_1_la-polkittemporaryauthorization.o .libs/libpolkit_gobject_1_la-polkitpermission.o .libs/libpolkit_gobject_1_la-polkitunixsession-systemd.o   | sed -n -e 's/^.*[	 ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[	 ][	 ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' | sed '/ __gnu_lto/d' | /bin/sed 's/.* //' | sort | uniq > .libs/libpolkit-gobject-1.exp
libtool: link: /bin/grep -E -e "(^polkit_.*)" ".libs/libpolkit-gobject-1.exp" > ".libs/libpolkit-gobject-1.expT"
libtool: link: mv -f ".libs/libpolkit-gobject-1.expT" ".libs/libpolkit-gobject-1.exp"
libtool: link: echo "{ global:" > .libs/libpolkit-gobject-1.ver
libtool: link:  cat .libs/libpolkit-gobject-1.exp | sed -e "s/\(.*\)/\1;/" >> .libs/libpolkit-gobject-1.ver
libtool: link:  echo "local: *; };" >> .libs/libpolkit-gobject-1.ver
libtool: link:  gcc -shared  -fPIC -DPIC  .libs/libpolkit_gobject_1_la-polkitenumtypes.o .libs/libpolkit_gobject_1_la-polkitactiondescription.o .libs/libpolkit_gobject_1_la-polkitauthorityfeatures.o .libs/libpolkit_gobject_1_la-polkitdetails.o .libs/libpolkit_gobject_1_la-polkitauthority.o .libs/libpolkit_gobject_1_la-polkiterror.o .libs/libpolkit_gobject_1_la-polkitsubject.o .libs/libpolkit_gobject_1_la-polkitunixprocess.o .libs/libpolkit_gobject_1_la-polkitsystembusname.o .libs/libpolkit_gobject_1_la-polkitidentity.o .libs/libpolkit_gobject_1_la-polkitunixuser.o .libs/libpolkit_gobject_1_la-polkitunixgroup.o .libs/libpolkit_gobject_1_la-polkitunixnetgroup.o .libs/libpolkit_gobject_1_la-polkitauthorizationresult.o .libs/libpolkit_gobject_1_la-polkitcheckauthorizationflags.o .libs/libpolkit_gobject_1_la-polkitimplicitauthorization.o .libs/libpolkit_gobject_1_la-polkittemporaryauthorization.o .libs/libpolkit_gobject_1_la-polkitpermission.o .libs/libpolkit_gobject_1_la-polkitunixsession-systemd.o   -lgmodule-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lsystemd  -pthread -g -O2 -fstack-protector-strong -Wl,--as-needed -Wl,-z -Wl,relro -Wl,--export-dynamic -pthread   -pthread -Wl,-soname -Wl,libpolkit-gobject-1.so.0 -Wl,-version-script -Wl,.libs/libpolkit-gobject-1.ver -o .libs/libpolkit-gobject-1.so.0.0.0
libtool: link: (cd ".libs" && rm -f "libpolkit-gobject-1.so.0" && ln -s "libpolkit-gobject-1.so.0.0.0" "libpolkit-gobject-1.so.0")
libtool: link: (cd ".libs" && rm -f "libpolkit-gobject-1.so" && ln -s "libpolkit-gobject-1.so.0.0.0" "libpolkit-gobject-1.so")
libtool: link: ar cru .libs/libpolkit-gobject-1.a  libpolkit_gobject_1_la-polkitenumtypes.o libpolkit_gobject_1_la-polkitactiondescription.o libpolkit_gobject_1_la-polkitauthorityfeatures.o libpolkit_gobject_1_la-polkitdetails.o libpolkit_gobject_1_la-polkitauthority.o libpolkit_gobject_1_la-polkiterror.o libpolkit_gobject_1_la-polkitsubject.o libpolkit_gobject_1_la-polkitunixprocess.o libpolkit_gobject_1_la-polkitsystembusname.o libpolkit_gobject_1_la-polkitidentity.o libpolkit_gobject_1_la-polkitunixuser.o libpolkit_gobject_1_la-polkitunixgroup.o libpolkit_gobject_1_la-polkitunixnetgroup.o libpolkit_gobject_1_la-polkitauthorizationresult.o libpolkit_gobject_1_la-polkitcheckauthorizationflags.o libpolkit_gobject_1_la-polkitimplicitauthorization.o libpolkit_gobject_1_la-polkittemporaryauthorization.o libpolkit_gobject_1_la-polkitpermission.o libpolkit_gobject_1_la-polkitunixsession-systemd.o
ar: `u' modifier ignored since `D' is the default (see `U')
libtool: link: ranlib .libs/libpolkit-gobject-1.a
libtool: link: ( cd ".libs" && rm -f "libpolkit-gobject-1.la" && ln -s "../libpolkit-gobject-1.la" "libpolkit-gobject-1.la" )
make[5]: Leaving directory '/<<PKGBUILDDIR>>/src/polkit'
make[4]: *** [Makefile:534: all] Error 2


This is due to dh compat 10 defaulting to parallel building.

Ideally the Makefile dependencies should be fixed, but in case
this is not easily possible the following patch to go back to
the compat < 10 default of non-parallel building is sufficient
to fix the FTBFS:

--- debian/rules.old	2018-03-27 10:19:11.778402893 +0000
+++ debian/rules	2018-03-27 10:19:20.650402808 +0000
@@ -4,7 +4,7 @@
 DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
 
 %:
-	dh $@ --with gir
+	dh $@ --with gir --no-parallel
 
 DPKG_GENSYMBOLS_CHECK_LEVEL=4
 export DPKG_GENSYMBOLS_CHECK_LEVEL



More information about the Pkg-utopia-maintainers mailing list