Control: tag -1 + moreinfo Hi, and thanks for the report.
On Wed, Apr 10, 2019 at 03:19:05PM -0400, Alex Chernyakhovsky wrote: > The package yubikey-manager currently appears to fail to build, using > a stretch host with an sbuild chroot for sid-amd64: > > [...] > yubikey-manager-2.1.0$ sbuild -A -c sid-amd64 > dh clean --with python3 --buildsystem=pybuild > dh: Compatibility levels before 5 are no longer supported (level 1 requested) > debian/rules:6: recipe for target 'clean' failed > [...] > If I then `echo 10 > debian/compat`, sbuild is able to proceed. The > package builds normally against a sid schroot. That one should be simple enough: since yubikey-manager/2.0.0-2, I use a Build-Depends on debhelper-compat to control the dh compatibility level. The version of dh in stretch is too old for this, and sbuild calls the clean pass outside the schroot; pass --no-clean-source to sbuild (or specify it in your configuration) if you expect to build packages from sid on a host running stable. Could you confirm that the package builds correctly, without patching, if you pass --no-clean-source ? > If I try to use debuild normally, the package FTBFS with > help2man -o debian/ykman.1 \ > --no-info --version-string=2.1.0 \ > --name 'YubiKey Manager' -- /tmp/tmp.3fY41n5LsH/bin/ykman > help2man: can't get `--help' info from /tmp/tmp.3fY41n5LsH/bin/ykman > Try `--no-discard-stderr' if option outputs to stderr > debian/rules:15: recipe for target 'override_dh_installman' failed > > Interestingly enough, I cannot reproduce with a buster schroot; the > behavior seems to be dependent on debuild vs sbuild. > > Some further > investigation with with --no-discard-stderr shows a Python stacktrace > in python3-click, complaining about the locale. If we pass > --locale=C.UTF-8 to help2man, then everything builds properly, even > with debuild in this situation. OK, I'll try passing --locale=C.UTF-8 (what does `locale` output, in your environment?) and check this doesn't break anything under sbuild or debuild. > I've attached a debdiff that makes this package build more reliably. I'd prefer not to rollback the debhelper compatibility level to 10; however, I'll happily commit the locale-related changes and credit you. Best, nicoo
signature.asc
Description: PGP signature