Source: dpkg Version: 1.22.5 Severity: normal Tags: ftbfs X-Debbugs-Cc: sweetyf...@deepin.org
Hi, When building dpkg in some environment with gpg installed or lintian installed (lintian depends on gpg), dh_auto_test failed in Dpkg_OpenPGP.t. But when gnupg is installed, dpkg builds successfully. In those circumstances, Dpkg_OpenPGP.t should skip subtests instead of fail. Best regards, Tianyu Chen @ deepin -- System Information: Distributor ID: Deepin Description: Deepin 23 Release: 23 Codename: beige Architecture: x86_64 Kernel: Linux 6.6.7-amd64-desktop-hwe (SMP w/16 CPU threads; PREEMPT) Locale: LANG=zh_CN.UTF-8, LC_CTYPE=zh_CN.UTF-8 (charmap=UTF-8), LANGUAGE=zh_CN Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled
../../scripts/t/Dpkg_Path.t ................ ok ../../scripts/t/Dpkg_Control_Tests.t ....... ok ../../scripts/t/Dpkg_Source_Functions.t .... ok # Failed test '(auto:auto) dearmoring OpenPGP ASCII Armored certificate' # at ../../scripts/t/Dpkg_OpenPGP.t line 67. # Failed test '(auto:auto) armoring OpenPGP binary certificate' # at ../../scripts/t/Dpkg_OpenPGP.t line 69. diff: t.tmp/Dpkg_OpenPGP/dpkg-test-pub.asc: No such file or directory # Failed test '(auto:auto) OpenPGP certificate dearmor/armor round-trip correctly (../../scripts/t/Dpkg_OpenPGP/dpkg-test-pub.asc vs t.tmp/Dpkg_OpenPGP/dpkg-test-pub.asc)' # at ../../scripts/t/Dpkg_OpenPGP.t line 54. # Failed test '(auto:auto) armoring OpenPGP binary signature succeeded' # at ../../scripts/t/Dpkg_OpenPGP.t line 74. # Failed test '(auto:auto) armoring OpenPGP armored signature succeeded' # at ../../scripts/t/Dpkg_OpenPGP.t line 78. diff: t.tmp/Dpkg_OpenPGP/sign-file-rearmor.asc: No such file or directory # Failed test '(auto:auto) rearmoring OpenPGP ASCII Armor changed the file (../../scripts/t/Dpkg_OpenPGP/sign-file.asc vs t.tmp/Dpkg_OpenPGP/sign-file-rearmor.asc)' # at ../../scripts/t/Dpkg_OpenPGP.t line 54. # Failed test '(auto:auto) dearmoring OpenPGP armored signature succeeded' # at ../../scripts/t/Dpkg_OpenPGP.t line 83. diff: t.tmp/Dpkg_OpenPGP/sign-file.sig: No such file or directory ../../scripts/t/Dpkg_Deps.t ................ ok ../../scripts/t/Dpkg_Control.t ............. ok # Failed test '(auto:auto) dearmored OpenPGP ASCII Armor signature matches (../../scripts/t/Dpkg_OpenPGP/sign-file.sig vs t.tmp/Dpkg_OpenPGP/sign-file.sig)' # at ../../scripts/t/Dpkg_OpenPGP.t line 54. # Failed test '(auto:auto) verify OpenPGP ASCII Armor inline signature' # at ../../scripts/t/Dpkg_OpenPGP.t line 90. # Failed test '(auto:auto) verify OpenPGP binary inline signature' # at ../../scripts/t/Dpkg_OpenPGP.t line 92. # Failed test '(auto:auto) verify OpenPGP ASCII Armor detached signature' # at ../../scripts/t/Dpkg_OpenPGP.t line 95. # Failed test '(auto:auto) verify OpenPGP binary detached signature' # at ../../scripts/t/Dpkg_OpenPGP.t line 97. ../../scripts/t/Dpkg_Substvars.t ........... ok ../../scripts/t/Dpkg_Source_Format.t ....... ok ../../scripts/t/Dpkg_Changelog.t ........... ok ../../scripts/t/Dpkg_Source_Patch.t ........ ok ../../scripts/t/Dpkg_Changelog_Ubuntu.t .... ok # Looks like you failed 12 tests of 32. ../../scripts/t/Dpkg_OpenPGP.t ............. not ok 3 - (auto:auto) dearmoring OpenPGP ASCII Armored certificate not ok 4 - (auto:auto) armoring OpenPGP binary certificate not ok 5 - (auto:auto) OpenPGP certificate dearmor/armor round-trip correctly (../../scripts/t/Dpkg_OpenPGP/dpkg-test-pub.asc vs t.tmp/Dpkg_OpenPGP/dpkg-test-pub.asc) not ok 6 - (auto:auto) armoring OpenPGP binary signature succeeded not ok 8 - (auto:auto) armoring OpenPGP armored signature succeeded not ok 9 - (auto:auto) rearmoring OpenPGP ASCII Armor changed the file (../../scripts/t/Dpkg_OpenPGP/sign-file.asc vs t.tmp/Dpkg_OpenPGP/sign-file-rearmor.asc) not ok 10 - (auto:auto) dearmoring OpenPGP armored signature succeeded not ok 11 - (auto:auto) dearmored OpenPGP ASCII Armor signature matches (../../scripts/t/Dpkg_OpenPGP/sign-file.sig vs t.tmp/Dpkg_OpenPGP/sign-file.sig) not ok 12 - (auto:auto) verify OpenPGP ASCII Armor inline signature not ok 13 - (auto:auto) verify OpenPGP binary inline signature not ok 14 - (auto:auto) verify OpenPGP ASCII Armor detached signature not ok 15 - (auto:auto) verify OpenPGP binary detached signature Dubious, test returned 12 (wstat 3072, 0xc00) Failed 12/32 subtests (less 4 skipped subtests: 16 okay) ../../scripts/t/Dpkg_Compression.t ......... ok ../../scripts/t/Dpkg_Source_Quilt.t ........ ok ../../scripts/t/Dpkg_Dist_Files.t .......... ok ../../scripts/t/Dpkg_Source_Archive.t ...... ok ../../scripts/t/Dpkg_Source_Package.t ...... ok ../../scripts/t/Dpkg_Control_Fields.t ...... ok ../../scripts/t/dpkg_mergechangelogs.t ..... ok ../../scripts/t/Dpkg_Arch.t ................ ok ../../scripts/t/Dpkg_IPC.t ................. ok ../../scripts/t/dpkg_source.t .............. ok ../../scripts/t/Dpkg_Shlibs.t .............. ok ../../scripts/t/Dpkg_Version.t ............. ok ../../scripts/t/mk.t ....................... ok ../../scripts/t/dpkg_buildpackage.t ........ ok Test Summary Report ------------------- ../../scripts/t/Dpkg_OpenPGP.t (Wstat: 3072 (exited 12) Tests: 32 Failed: 12) Failed tests: 3-6, 8-15 Non-zero exit status: 12 Files=48, Tests=12737, 7 wallclock secs ( 1.43 usr 0.19 sys + 20.16 cusr 7.47 csys = 29.25 CPU) Result: FAIL FAIL: test suite has errors make[5]: *** [Makefile:1462: tap-check] Error 255 make[5]: Leaving directory '/<<PKGBUILDDIR>>/build-tree/scripts' make[4]: *** [Makefile:1221: check-am] Error 2 make[4]: Leaving directory '/<<PKGBUILDDIR>>/build-tree/scripts' make[3]: *** [Makefile:1071: check-recursive] Error 1 make[3]: Leaving directory '/<<PKGBUILDDIR>>/build-tree/scripts' make[2]: *** [Makefile:757: check-recursive] Error 1 make[2]: Leaving directory '/<<PKGBUILDDIR>>/build-tree' dh_auto_test: error: cd build-tree && make -j16 check "TESTSUITEFLAGS=-j16 --verbose" VERBOSE=1 TESTSUITEFLAGS=--verbose -j16 TEST_PARALLEL=16 returned exit code 2 make[1]: *** [debian/rules:70: override_dh_auto_test] Error 25 make[1]: Leaving directory '/<<PKGBUILDDIR>>' make: *** [debian/rules:49: binary] Error 2 dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2 -------------------------------------------------------------------------------- Build finished at 2024-03-08T06:12:44Z