Package: src:dlib Version: 19.10-2 Severity: serious Tags: ftbfs patch Dear maintainer:
I tried to build this package in buster with "dpkg-buildpackage -A" but it failed: -------------------------------------------------------------------------------- [...] debian/rules build-indep dh build-indep --buildsystem=cmake dh_update_autotools_config -i -O--buildsystem=cmake dh_autoreconf -i -O--buildsystem=cmake debian/rules override_dh_auto_configure make[1]: Entering directory '/<<PKGBUILDDIR>>' dh_auto_configure -Bconfig_shared -- -DDLIB_NO_GUI_SUPPORT=ON -DBUILD_SHARED_LIBS=ON cd config_shared && cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=None -DCMAKE_INSTALL_SYSCONFDIR=/etc -DCMAKE_INSTALL_LOCALSTATEDIR=/var -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON -DCMAKE_INSTALL_RUNSTATEDIR=/run "-GUnix Makefiles" -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_INSTALL_LIBDIR=lib/x86_64-linux-gnu -DDLIB_NO_GUI_SUPPORT=ON -DBUILD_SHARED_LIBS=ON .. -- The C compiler identification is GNU 8.2.0 [... snipped ...] -- Installing: /<<PKGBUILDDIR>>/debian/tmp/usr/lib/x86_64-linux-gnu/cmake/dlib/dlib.cmake -- Installing: /<<PKGBUILDDIR>>/debian/tmp/usr/lib/x86_64-linux-gnu/cmake/dlib/dlib-none.cmake -- Installing: /<<PKGBUILDDIR>>/debian/tmp/usr/lib/x86_64-linux-gnu/cmake/dlib/dlibConfig.cmake -- Installing: /<<PKGBUILDDIR>>/debian/tmp/usr/lib/x86_64-linux-gnu/cmake/dlib/dlibConfigVersion.cmake -- Installing: /<<PKGBUILDDIR>>/debian/tmp/usr/lib/x86_64-linux-gnu/pkgconfig/dlib-1.pc make[2]: Leaving directory '/<<PKGBUILDDIR>>/config_shared' # Remove empty directories find /<<PKGBUILDDIR>>/debian/tmp/usr/include/dlib -type d -empty -delete make[1]: Leaving directory '/<<PKGBUILDDIR>>' dh_install -i -O--buildsystem=cmake dh_installdocs -i -O--buildsystem=cmake dh_installchangelogs -i -O--buildsystem=cmake dh_installexamples -i -O--buildsystem=cmake dh_installinit -i -O--buildsystem=cmake dh_perl -i -O--buildsystem=cmake dh_link -i -O--buildsystem=cmake dh_strip_nondeterminism -i -O--buildsystem=cmake dh_compress -i -O--buildsystem=cmake debian/rules override_dh_fixperms make[1]: Entering directory '/<<PKGBUILDDIR>>' dh_fixperms # Fix wrong permissions in examples/ chmod 644 debian/libdlib19/usr/share/doc/libdlib19/examples//max_cost_assignment_ex.cpp chmod: cannot access 'debian/libdlib19/usr/share/doc/libdlib19/examples//max_cost_assignment_ex.cpp': No such file or directory make[1]: *** [debian/rules:49: override_dh_fixperms] Error 1 make[1]: Leaving directory '/<<PKGBUILDDIR>>' make: *** [debian/rules:19: binary-indep] Error 2 dpkg-buildpackage: error: fakeroot debian/rules binary-indep subprocess returned exit status 2 -------------------------------------------------------------------------------- The usual recipe here is to split override_dh_fixperms into override_dh_fixperms-arch and override_dh_fixperms-indep. In this case I believe the (untested) patch below will work. To be sure, please try both "dpkg-buildpackage -A" and "dpkg-buildpackage -B". Also, please consider uploading in source-only form (dpkg-buildpackage -S) so that these kind of bugs never propagate to testing. Thanks. --- a/debian/rules +++ b/debian/rules @@ -43,7 +43,7 @@ override_dh_auto_install: # Remove empty directories find $(CURDIR)/debian/tmp/usr/include/dlib -type d -empty -delete -override_dh_fixperms: +override_dh_fixperms-arch: dh_fixperms # Fix wrong permissions in examples/ chmod 644 $(EXAMPLES_PATH)/max_cost_assignment_ex.cpp