[Pkg-auth-maintainers] Bug#926816: yubikey-manager FTBFS in some common situations

Nicolas Braud-Santoni nicoo at debian.org
Sat Jul 20 15:33:50 BST 2019


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-auth-maintainers/attachments/20190720/7c713042/attachment.sig>


More information about the Pkg-auth-maintainers mailing list