Package: src:policycoreutils Version: 2.4-2 User: sanv...@debian.org Usertags: binary-indep Severity: important
Dear maintainer: I tried to build this package with "dpkg-buildpackage -A" (i.e. only architecture-independent packages), and it failed: -------------------------------------------------------------------------------- [...] debian/rules build-indep dh build-indep --with python2 --with systemd dh_testdir -i dh_auto_configure -i dh_auto_build -i make -j1 make[1]: Entering directory '/<<PKGBUILDDIR>>' make[2]: Entering directory '/<<PKGBUILDDIR>>/sepolicy' python setup.py build running build running build_py creating build [... snipped ...] test -d /<<PKGBUILDDIR>>/debian/tmp/lib/systemd/system || install -m 755 -d /<<PKGBUILDDIR>>/debian/tmp/lib/systemd/system install -m 644 mcstrans.service /<<PKGBUILDDIR>>/debian/tmp/lib/systemd/system/ make[4]: Leaving directory '/<<PKGBUILDDIR>>/mcstrans/src' make -C man install make[4]: Entering directory '/<<PKGBUILDDIR>>/mcstrans/man' mkdir -p /<<PKGBUILDDIR>>/debian/tmp/usr/share/man/man8 install -m 644 man8/*.8 /<<PKGBUILDDIR>>/debian/tmp/usr/share/man/man8 make[4]: Leaving directory '/<<PKGBUILDDIR>>/mcstrans/man' make[3]: Leaving directory '/<<PKGBUILDDIR>>/mcstrans' make[2]: Leaving directory '/<<PKGBUILDDIR>>' make[1]: Leaving directory '/<<PKGBUILDDIR>>' debian/rules override_dh_install make[1]: Entering directory '/<<PKGBUILDDIR>>' dh_install --list-missing dh_install: etc/default/sandbox exists in debian/tmp but is not installed to anywhere dh_install: etc/init.d/mcstrans exists in debian/tmp but is not installed to anywhere dh_install: etc/init.d/restorecond exists in debian/tmp but is not installed to anywhere dh_install: etc/pam.d/newrole exists in debian/tmp but is not installed to anywhere dh_install: etc/pam.d/run_init exists in debian/tmp but is not installed to anywhere dh_install: usr/lib/python2.7/dist-packages/sepolicy/generate.pyc exists in debian/tmp but is not installed to anywhere dh_install: usr/lib/python2.7/dist-packages/sepolicy/network.pyc exists in debian/tmp but is not installed to anywhere dh_install: usr/lib/python2.7/dist-packages/sepolicy/communicate.pyc exists in debian/tmp but is not installed to anywhere dh_install: usr/lib/python2.7/dist-packages/sepolicy/__init__.pyc exists in debian/tmp but is not installed to anywhere dh_install: usr/lib/python2.7/dist-packages/sepolicy/gui.pyc exists in debian/tmp but is not installed to anywhere dh_install: usr/lib/python2.7/dist-packages/sepolicy/booleans.pyc exists in debian/tmp but is not installed to anywhere dh_install: usr/lib/python2.7/dist-packages/sepolicy/interface.pyc exists in debian/tmp but is not installed to anywhere dh_install: usr/lib/python2.7/dist-packages/sepolicy/transition.pyc exists in debian/tmp but is not installed to anywhere dh_install: usr/lib/python2.7/dist-packages/sepolicy/manpage.pyc exists in debian/tmp but is not installed to anywhere dh_install: usr/lib/python2.7/dist-packages/sepolicy/sedbus.pyc exists in debian/tmp but is not installed to anywhere dh_install: usr/lib/python2.7/dist-packages/sepolicy/help/__init__.py exists in debian/tmp but is not installed to anywhere dh_install: usr/lib/python2.7/dist-packages/sepolicy/help/__init__.pyc exists in debian/tmp but is not installed to anywhere dh_install: usr/share/man/man5/sandbox.5 exists in debian/tmp but is not installed to anywhere rm -f /<<PKGBUILDDIR>>/debian/policycoreutils/usr/sbin/load_policy ln -s /sbin/load_policy /<<PKGBUILDDIR>>/debian/policycoreutils/usr/sbin/load_policy ln: failed to create symbolic link '/<<PKGBUILDDIR>>/debian/policycoreutils/usr/sbin/load_policy': No such file or directory debian/rules:35: recipe for target 'override_dh_install' failed make[1]: *** [override_dh_install] Error 1 make[1]: Leaving directory '/<<PKGBUILDDIR>>' debian/rules:29: recipe for target 'binary-indep' failed make: *** [binary-indep] Error 2 dpkg-buildpackage: error: fakeroot debian/rules binary-indep gave error exit status 2 -------------------------------------------------------------------------------- Sorry not to have a fix, as I am reporting many bugs similar to this one. The common hints are: * If the only architecture-independent packages are dummy transitional ones and they were released with jessie, the easy fix is to drop them now. * When using "dh", it is allowed to use (independently) optional targets override_dh_foo-arch and override_dh_foo-indep (for several values of "foo"). Once that both "dpkg-buildpackage -A" and "dpkg-buildpackage -B" work properly, the package would be suitable to be uploaded in source-only form if you wish. Thanks.