• Bug#1065648: dpkg: FTBFS when gpg is installed (1/2)

    From Tianyu Chen@1:229/2 to All on Fri Mar 8 07:40:01 2024
    XPost: linux.debian.bugs.dist
    From: sweetyfish@deepin.org

    This is a multi-part MIME message sent by reportbug.


    Source: dpkg
    Version: 1.22.5
    Severity: normal
    Tags: ftbfs
    X-Debbugs-Cc: sweetyfish@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

    [continued in next message]

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)