Package: src:libmail-gnupg-perl Version: 0.23-1 Severity: serious Dear maintainer:
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 build-indep dh_testdir -i dh_update_autotools_config -i dh_auto_configure -i perl -I. Build.PL --installdirs vendor --config "optimize=-g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2" --config "ld=x86_64-linux-gnu-gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro" Created MYMETA.yml and MYMETA.json Creating new 'Build' script for 'Mail-GnuPG' version '0.23' dh_auto_build -i perl Build Building Mail-GnuPG debian/rules override_dh_auto_test make[1]: Entering directory '/<<PKGBUILDDIR>>' chmod a+x t/fake-pinentry.pl dh_auto_test perl Build test --verbose 1 t/00.signature.t ......... skipped: Set the environment variable TEST_SIGNATURE to enable this test. t/05.load.t .............. 1..1 ok 1 - use Mail::GnuPG; ok t/20.inline-verify.t ..... gpg: keyring `mgtwUFmz/secring.gpg' created gpg: keyring `mgtwUFmz/pubring.gpg' created gpg: mgtwUFmz/trustdb.gpg: trustdb created gpg: key 7B75921E: public key "Antoine Beaupré <anar...@koumbit.org>" imported gpg: key 784206AD: public key "David Bremner <brem...@debian.org>" imported gpg: key 9456D16A: public key "Mauricio Campiglia <mauri...@campiglia.org>" imported gpg: Total number processed: 3 gpg: imported: 3 (RSA: 2) gpg: no ultimately trusted keys found 1..5 ok 1 - An object of class 'MIME::Entity' isa 'MIME::Entity' ok 2 - An object of class 'Mail::GnuPG' isa 'Mail::GnuPG' ok 3 - verify success ok 4 - verify keyid ok 5 - verify uid ok t/25.multipart-verify.t .. gpg: keyring `mgth3uMA/secring.gpg' created gpg: keyring `mgth3uMA/pubring.gpg' created gpg: mgth3uMA/trustdb.gpg: trustdb created gpg: key 7B75921E: public key "Antoine Beaupré <anar...@koumbit.org>" imported gpg: key 784206AD: public key "David Bremner <brem...@debian.org>" imported gpg: key 9456D16A: public key "Mauricio Campiglia <mauri...@campiglia.org>" imported gpg: Total number processed: 3 gpg: imported: 3 (RSA: 2) gpg: no ultimately trusted keys found 1..5 ok 1 - An object of class 'MIME::Entity' isa 'MIME::Entity' ok 2 - An object of class 'Mail::GnuPG' isa 'Mail::GnuPG' ok 3 - verify success ok 4 - verify keyid ok 5 - verify uid ok t/30.inline-decrypt.t .... 1..5 ok 1 - An object of class 'MIME::Entity' isa 'MIME::Entity' gpg: keyring `mgtItzND/secring.gpg' created gpg: keyring `mgtItzND/pubring.gpg' created gpg: key EFEA4EAD: secret key imported gpg: mgtItzND/trustdb.gpg: trustdb created gpg: key EFEA4EAD marked as ultimately trusted gpg: key EFEA4EAD: public key "Mail::GnuPG Test Key <m...@gnupg.dom>" imported gpg: key EFEA4EAD: "Mail::GnuPG Test Key <m...@gnupg.dom>" 1 new signature gpg: Total number processed: 2 gpg: imported: 1 gpg: new signatures: 1 gpg: secret keys read: 1 gpg: secret keys imported: 1 gpg: 3 marginal(s) needed, 1 complete(s) needed, PGP trust model gpg: depth: 0 valid: 1 signed: 0 trust: 0-, 0q, 0n, 0m, 0f, 1u ok 2 - An object of class 'Mail::GnuPG' isa 'Mail::GnuPG' ok 3 - decrypt success ok 4 - message unsigned ok 5 - plaintext ok t/35.has-public-key.t .... gpg: keyring `mgtwmP26/secring.gpg' created gpg: keyring `mgtwmP26/pubring.gpg' created gpg: key EFEA4EAD: secret key imported gpg: mgtwmP26/trustdb.gpg: trustdb created gpg: key EFEA4EAD: public key "Mail::GnuPG Test Key <m...@gnupg.dom>" imported gpg: key EFEA4EAD: "Mail::GnuPG Test Key <m...@gnupg.dom>" 1 new signature gpg: Total number processed: 2 gpg: imported: 1 gpg: new signatures: 1 gpg: secret keys read: 1 gpg: secret keys imported: 1 1..3 ok 1 - An object of class 'Mail::GnuPG' isa 'Mail::GnuPG' ok 2 - public key exists ok 3 - bogus key doesn't exist ok t/99.pod.t ............... 1..1 ok 1 - POD test for blib/lib/Mail/GnuPG.pm ok Unknown Content-Type or no PGP message in body at /<<PKGBUILDDIR>>/blib/lib/Mail/GnuPG.pm line 402. # Looks like you planned 20 tests but ran 8. # Looks like your test exited with 2 just after 8. t/agent.t ................ sh: 1: gpg2: not found gpg-agent[26728]: gpg-agent running and available gpg: key EFEA4EAD marked as ultimately trusted gpg: 3 marginal(s) needed, 1 complete(s) needed, PGP trust model gpg: depth: 0 valid: 1 signed: 0 trust: 0-, 0q, 0n, 0m, 0f, 1u 1..20 ok 1 - An object of class 'Mail::GnuPG' isa 'Mail::GnuPG' # TODO agent test unreliable with pre 2.11 gnupg not ok 2 # TODO agent test unreliable with pre 2.11 gnupg # Failed (TODO) test at t/agent.t line 102. # got: '2' # expected: '0' not ok 3 # TODO agent test unreliable with pre 2.11 gnupg # Failed (TODO) test at t/agent.t line 105. # got: '2' # expected: '0' not ok 4 # TODO agent test unreliable with pre 2.11 gnupg # Failed (TODO) test at t/agent.t line 106. # got: undef # expected: 'EFEA4EAD' not ok 5 # TODO agent test unreliable with pre 2.11 gnupg # Failed (TODO) test at t/agent.t line 107. # got: undef # expected: 'Mail::GnuPG Test Key <m...@gnupg.dom>' ok 6 # TODO agent test unreliable with pre 2.11 gnupg ok 7 # TODO agent test unreliable with pre 2.11 gnupg not ok 8 # TODO agent test unreliable with pre 2.11 gnupg # Failed (TODO) test at t/agent.t line 116. # got: '2' # expected: '0' Dubious, test returned 2 (wstat 512, 0x200) Failed 12/20 subtests (3 TODO tests unexpectedly succeeded) t/base.t ................. 1..1 ok 1 ok t/round-trip.t ........... gpg: keyring `mgtTbuAg/secring.gpg' created gpg: keyring `mgtTbuAg/pubring.gpg' created gpg: key EFEA4EAD: secret key imported gpg: mgtTbuAg/trustdb.gpg: trustdb created gpg: key EFEA4EAD marked as ultimately trusted gpg: key EFEA4EAD: public key "Mail::GnuPG Test Key <m...@gnupg.dom>" imported gpg: key EFEA4EAD: "Mail::GnuPG Test Key <m...@gnupg.dom>" 1 new signature gpg: Total number processed: 2 gpg: imported: 1 gpg: new signatures: 1 gpg: secret keys read: 1 gpg: secret keys imported: 1 gpg: 3 marginal(s) needed, 1 complete(s) needed, PGP trust model gpg: depth: 0 valid: 1 signed: 0 trust: 0-, 0q, 0n, 0m, 0f, 1u 1..20 ok 1 - An object of class 'Mail::GnuPG' isa 'Mail::GnuPG' ok 2 ok 3 ok 4 ok 5 ok 6 ok 7 ok 8 ok 9 ok 10 ok 11 ok 12 ok 13 ok 14 ok 15 ok 16 ok 17 ok 18 ok 19 ok 20 ok Test Summary Report ------------------- t/agent.t (Wstat: 512 Tests: 8 Failed: 0) TODO passed: 1, 6-7 Non-zero exit status: 2 Parse errors: Bad plan. You planned 20 tests but ran 8. Files=10, Tests=49, 3 wallclock secs ( 0.03 usr 0.00 sys + 1.94 cusr 0.14 csys = 2.11 CPU) Result: FAIL Failed 1/10 test programs. 0/49 subtests failed. dh_auto_test: perl Build test --verbose 1 returned exit code 255 debian/rules:10: recipe for target 'override_dh_auto_test' failed make[1]: *** [override_dh_auto_test] Error 2 make[1]: Leaving directory '/<<PKGBUILDDIR>>' debian/rules:4: recipe for target 'build-indep' failed make: *** [build-indep] Error 2 dpkg-buildpackage: error: debian/rules build-indep gave error exit status 2 -------------------------------------------------------------------------------- Most of the build log is included above. Comments: If this is really a bug in one of the build-depends, please use reassign and affects, so that this is still visible in the page for this package. If this is only meant to be built with gnupg2, I would use gnupg (>= 2) in build-depends. OTOH, if this is meant to be built with either gnupg 1 or gnupg 2, then I would use something like "gnupg1 | gnupg2 (>= 2)". Maybe this is not necessary in the long run, I don't know, but as far as some packages reach testing a lot before than their build-dependencies, it seems it is now. Thanks.