Package: src:tunnelx Severity: serious Hello Wookey (and Niels).
I tried to build this package in stretch with "dpkg-buildpackage -A" (which is what the "Arch: all" autobuilder would do to build it) but it failed: -------------------------------------------------------------------------------- [...] debian/rules build-indep dh --with javahelper build-indep dh: Compatibility levels before 9 are deprecated (level 7 in use) dh_testdir -i dh_update_autotools_config -i dh_auto_configure -i dh_auto_configure: Compatibility levels before 9 are deprecated (level 7 in use) jh_linkjars -i debian/rules override_dh_auto_build make[1]: Entering directory '/<<PKGBUILDDIR>>' docbook-to-man debian/manpage.sgml > tunnelx.1 dh_installman --verbose dh_installman: Compatibility levels before 9 are deprecated (level 7 in use) install -d debian/tunnelx/usr/share/man/man1/ install -p -m0644 tunnelx.1 debian/tunnelx/usr/share/man/man1/tunnelx.1 man --recode UTF-8 ./tunnelx\.1 > tunnelx\.1\.new chmod 0755 -- tunnelx.1.new chown 0:0 -- tunnelx.1.new chown: changing ownership of 'tunnelx.1.new': Operation not permitted dh_installman: chown 0:0 -- tunnelx.1.new returned exit code 1 debian/rules:11: recipe for target 'override_dh_auto_build' failed make[1]: *** [override_dh_auto_build] Error 1 make[1]: Leaving directory '/<<PKGBUILDDIR>>' debian/rules:8: recipe for target 'build-indep' failed make: *** [build-indep] Error 2 dpkg-buildpackage: error: debian/rules build-indep gave error exit status 2 -------------------------------------------------------------------------------- The reason seems to be that there is a "dh_installman" command inside override_dh_auto_build target, which runs as a normal user, but dh_installman makes a chown and it fails, because we are not root yet. Since we are already using "dh" here, the easy fix is not to call dh_installman yet but instead let it happen automatically as part of the dh sequence. Trivial patch below. The funny thing is that "dpkg-buildpackage" alone does not fail and I don't know why. I'm Cc:ing Niels (with X-Debbugs-Cc) in case he wants to say something about this. Thanks. --- a/debian/rules +++ b/debian/rules @@ -9,7 +9,6 @@ export JAVE_HOME=/usr/lib/jvm/default-java override_dh_auto_build: docbook-to-man debian/manpage.sgml > tunnelx.1 - dh_installman --verbose override_dh_clean: dh_clean