Bug#1016295: libconfig-model-openssh-perl: FTBFS: dh_auto_test: error: /usr/bin/perl Build test --verbose 1 returned exit code 255

Lucas Nussbaum lucas at debian.org
Fri Jul 29 19:21:20 BST 2022


Source: libconfig-model-openssh-perl
Version: 2.9.0.1-1
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20220728 ftbfs-bookworm

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
>  debian/rules binary
> dh binary
>    dh_update_autotools_config
>    dh_autoreconf
>    dh_auto_configure
> 	/usr/bin/perl Build.PL --installdirs vendor --config "optimize=-g -O2 -ffile-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 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro"
> Checking prerequisites...
>   recommends:
>     *  App::Cme is not installed
>     *  Config::Model::TkUI is not installed
> 
> ERRORS/WARNINGS FOUND IN PREREQUISITES.  You may wish to install the versions
> of the modules indicated above before proceeding with this installation
> 
> Run 'Build installdeps' to install missing prerequisites.
> 
> Created MYMETA.yml and MYMETA.json
> Creating new 'Build' script for 'Config-Model-OpenSsh' version 'v2.9.0.1'
>    dh_auto_build
> 	/usr/bin/perl Build
> Checking doc for model Ssh
> Checking doc for model SystemSsh
> Checking doc for model Sshd
> Building Config-Model-OpenSsh
>    dh_auto_test
> 	/usr/bin/perl Build test --verbose 1
> t/author-critic.t ...... skipped: these tests are for testing by the author
> Unknown attribute passed to the constructor of Config::Model::Instance: backend at /usr/share/perl5/Config/Model.pm line 312, <DATA> line 84.
> 	Config::Model::instance(Config::Model=HASH(0x563a347c33e0), "root_class_name", "Sshd", "instance_name", "sshd_instance", "root_dir", Path::Tiny=ARRAY(0x563a34875a78), "backend", "OpenSsh::Sshd") called at t/custom_sshd.t line 28
> # Tests were run but no plan was declared and done_testing() was not seen.
> # Looks like your test exited with 255 just after 1.
> t/custom_sshd.t ........ 
> ok 1 - compiled
> # Running tests in wr_root/custom_sshd
> Dubious, test returned 255 (wstat 65280, 0xff00)
> All 1 subtests passed 
> Unknown attribute passed to the constructor of Config::Model::Instance: backend at /usr/share/perl5/Config/Model.pm line 312, <DATA> line 19.
> 	Config::Model::instance(Config::Model=HASH(0x563e2f19a000), "root_class_name", "Sshd", "instance_name", "sshd_instance", "root_dir", Path::Tiny=ARRAY(0x563e2f441fe8), "backend", "OpenSsh::Sshd") called at t/custom_sshd_match.t line 29
> # Tests were run but no plan was declared and done_testing() was not seen.
> # Looks like your test exited with 255 just after 1.
> t/custom_sshd_match.t .. 
> ok 1 - compiled
> # Running tests in wr_root/custom_sshd_match
> Dubious, test returned 255 (wstat 65280, 0xff00)
> All 1 subtests passed 
> t/model_tests.t ........ 
> ok 1 - compiled
> # Running tests in wr_root/model_tests
> # Beginning ssh test (t/model_tests.d/ssh-test-conf.pl)
> # ssh uses Ssh model
> # Beginning subtest ssh basic
> ok 2 - Copied ssh example basic
> ok 3 - Read configuration and created instance with init() method with warning check 
> ok 4 - Ran dump_tree
> ok 5 - Dumped ssh config tree in full mode
> ok 6 - Ran dump_tree
> ok 7 - Dumped ssh config tree in custom mode
> ok 8 - first check 'Host:"*" Port' value
> ok 9 - first check 'Host:"*" Ciphers' value (mode user)
> ok 10 - first check 'Host:"*" Ciphers' value
> ok 11 - first check 'Host:picosgw LocalForward:0 port' value
> ok 12 - first check 'Host:picosgw LocalForward:0 host' value
> ok 13 - first check 'Host:picosgw LocalForward:1 ipv6' value
> ok 14 - first check 'Host:picosgw LocalForward:1 port' value
> ok 15 - first check 'Host:picosgw LocalForward:1 host' value
> ok 16 - check Host:"foo.*,*.bar" annotation
> ok 17 - check Host:"*" SendEnv annotation
> ok 18 - check  annotation
> ok 19 - ssh write back done
> ok 20 - check added or removed files
> ok 21 - Created instance ssh-test-basic-w
> ok 22 - Ran dump_tree
> ok 23 - Dumped second ssh config tree in custom mode
> ok 24 - compare original ssh custom data with 2nd instance custom data
> # End of subtest ssh basic
> # Beginning subtest ssh legacy
> ok 25 - Copied ssh example legacy
> ok 26 - Log4perl test
> ok 27 - Ran dump_tree
> ok 28 - Dumped ssh config tree in full mode
> ok 29 - Ran dump_tree
> ok 30 - Dumped ssh config tree in custom mode
> ok 31 - ssh write back done
> ok 32 - check added or removed files
> ok 33 - Created instance ssh-test-legacy-w
> ok 34 - Ran dump_tree
> ok 35 - Dumped second ssh config tree in custom mode
> ok 36 - compare original ssh custom data with 2nd instance custom data
> # End of subtest ssh legacy
> # Beginning subtest ssh bad-forward
> ok 37 - Copied ssh example bad-forward
> ok 38 - Log4perl test
> ok 39 - load called
> ok 40 - Ran dump_tree
> ok 41 - Dumped ssh config tree in full mode
> ok 42 - Ran dump_tree
> ok 43 - Dumped ssh config tree in custom mode
> ok 44 - ssh write back done
> ok 45 - check added or removed files
> ok 46 - Created instance ssh-test-bad-forward-w
> ok 47 - Ran dump_tree
> ok 48 - Dumped second ssh config tree in custom mode
> ok 49 - compare original ssh custom data with 2nd instance custom data
> # End of subtest ssh bad-forward
> # Beginning subtest ssh bad-pref-auth
> ok 50 - Copied ssh example bad-pref-auth
> ok 51 - Log4perl test
> ok 52 - Ran dump_tree
> ok 53 - Dumped ssh config tree in full mode
> ok 54 - Ran dump_tree
> ok 55 - Dumped ssh config tree in custom mode
> ok 56 - ssh write back done
> ok 57 - check added or removed files
> ok 58 - Created instance ssh-test-bad-pref-auth-w
> ok 59 - Ran dump_tree
> ok 60 - Dumped second ssh config tree in custom mode
> ok 61 - compare original ssh custom data with 2nd instance custom data
> # End of subtest ssh bad-pref-auth
> # Beginning subtest ssh no-user-file
> # starting test without original config data, i.e. from scratch
> ok 62 - Copied ssh example no-user-file
> ok 63 - Read configuration and created instance with init() method with warning check 
> ok 64 - Ran dump_tree
> ok 65 - Dumped ssh config tree in full mode
> ok 66 - Ran dump_tree
> ok 67 - Dumped ssh config tree in custom mode
> ok 68 - ssh write back done
> ok 69 - Created instance ssh-test-no-user-file-w
> ok 70 - Ran dump_tree
> ok 71 - Dumped second ssh config tree in custom mode
> ok 72 - compare original ssh custom data with 2nd instance custom data
> # End of subtest ssh no-user-file
> # Beginning subtest ssh check-host-order
> ok 73 - Copied ssh example check-host-order
> ok 74 - Read configuration and created instance with init() method with warning check 
> ok 75 - Ran dump_tree
> ok 76 - Dumped ssh config tree in full mode
> ok 77 - Ran dump_tree
> ok 78 - Dumped ssh config tree in custom mode
> ok 79 - ssh write back done
> ok 80 - check that /home/joe/.ssh/config matches regexp (?^s:Host\s+picos.*?Host\s+foo)
> ok 81 - check added or removed files
> ok 82 - Created instance ssh-test-check-host-order-w
> ok 83 - Ran dump_tree
> ok 84 - Dumped second ssh config tree in custom mode
> ok 85 - compare original ssh custom data with 2nd instance custom data
> # End of subtest ssh check-host-order
> # Beginning subtest ssh delete-user-file
> ok 86 - Copied ssh example delete-user-file
> ok 87 - Read configuration and created instance with init() method with warning check 
> ok 88 - load called
> ok 89 - Ran dump_tree
> ok 90 - Dumped ssh config tree in full mode
> ok 91 - Ran dump_tree
> ok 92 - Dumped ssh config tree in custom mode
> ok 93 - ssh write back done
> ok 94 - check added or removed files
> ok 95 - Created instance ssh-test-delete-user-file-w
> ok 96 - Ran dump_tree
> ok 97 - Dumped second ssh config tree in custom mode
> ok 98 - compare original ssh custom data with 2nd instance custom data
> # End of subtest ssh delete-user-file
> # End of ssh test
> # Beginning sshd test (t/model_tests.d/sshd-test-conf.pl)
> # sshd uses Sshd model
> # Beginning subtest sshd debian-bug-671367
> ok 99 - Copied sshd example debian-bug-671367
> ok 100 - Read configuration and created instance with init() method with warning check 
> ok 101 - Ran dump_tree
> ok 102 - Dumped sshd config tree in full mode
> ok 103 - Ran dump_tree
> ok 104 - Dumped sshd config tree in custom mode
> ok 105 - first check 'AuthorizedKeysFile:0' value
> ok 106 - first check 'AuthorizedKeysFile:1' value
> ok 107 - sshd write back done
> ok 108 - check that /etc/ssh/sshd_config matches regexp (?^:/etc/ssh/userkeys/%u /var/lib/misc/userkeys2/%u)
> ok 109 - check added or removed files
> ok 110 - Created instance sshd-test-debian-bug-671367-w
> ok 111 - Ran dump_tree
> ok 112 - Dumped second sshd config tree in custom mode
> ok 113 - compare original sshd custom data with 2nd instance custom data
> # End of subtest sshd debian-bug-671367
> # Beginning subtest sshd bad-password-authentication
> ok 114 - Copied sshd example bad-password-authentication
> ok 115 - Read configuration and created instance with init() method with warning check 
> ok 116 - Ran dump_tree
> ok 117 - Dumped sshd config tree in full mode
> ok 118 - Ran dump_tree
> ok 119 - Dumped sshd config tree in custom mode
> ok 120 - first check 'Match:0 Settings PermitRootLogin' value
> ok 121 - sshd write back done
> ok 122 - check added or removed files
> ok 123 - Created instance sshd-test-bad-password-authentication-w
> ok 124 - Ran dump_tree
> ok 125 - Dumped second sshd config tree in custom mode
> ok 126 - compare original sshd custom data with 2nd instance custom data
> # End of subtest sshd bad-password-authentication
> # End of sshd test
> # Beginning system-ssh test (t/model_tests.d/system-ssh-test-conf.pl)
> # system-ssh uses SystemSsh model
> # Beginning subtest system-ssh basic
> ok 127 - Copied system-ssh example basic
> ok 128 - Read configuration and created instance with init() method with warning check 
> ok 129 - Ran dump_tree
> ok 130 - Dumped system-ssh config tree in full mode
> ok 131 - Ran dump_tree
> ok 132 - Dumped system-ssh config tree in custom mode
> ok 133 - first check 'Host:"*" Ciphers' value
> ok 134 - first check 'Host:"*" IdentityFile:1' value
> ok 135 - system-ssh write back done
> ok 136 - check added or removed files
> ok 137 - Created instance system-ssh-test-basic-w
> ok 138 - Ran dump_tree
> ok 139 - Dumped second system-ssh config tree in custom mode
> ok 140 - compare original system-ssh custom data with 2nd instance custom data
> # End of subtest system-ssh basic
> # End of system-ssh test
> ok 141 - test memory cycle
> 1..141
> ok
> t/pod.t ................ 
> 1..22
> ok 1 - POD test for blib/lib/Config/Model/OpenSsh.pm
> ok 2 - POD test for blib/lib/Config/Model/models/SystemSsh.pod
> ok 3 - POD test for blib/lib/Config/Model/models/Ssh.pl (no pod)
> ok 4 - POD test for blib/lib/Config/Model/models/Sshd.pl (no pod)
> ok 5 - POD test for blib/lib/Config/Model/models/Sshd.pod
> ok 6 - POD test for blib/lib/Config/Model/models/Ssh.pod
> ok 7 - POD test for blib/lib/Config/Model/models/SystemSsh.pl (no pod)
> ok 8 - POD test for blib/lib/Config/Model/models/Sshd/MatchElement.pl (no pod)
> ok 9 - POD test for blib/lib/Config/Model/models/Sshd/MatchElement.pod
> ok 10 - POD test for blib/lib/Config/Model/models/Sshd/MatchCondition.pod
> ok 11 - POD test for blib/lib/Config/Model/models/Sshd/MatchBlock.pl (no pod)
> ok 12 - POD test for blib/lib/Config/Model/models/Sshd/MatchBlock.pod
> ok 13 - POD test for blib/lib/Config/Model/models/Sshd/MatchCondition.pl (no pod)
> ok 14 - POD test for blib/lib/Config/Model/models/Ssh/HostElement.pod
> ok 15 - POD test for blib/lib/Config/Model/models/Ssh/HostElement.pl (no pod)
> ok 16 - POD test for blib/lib/Config/Model/models/Ssh/PortForward.pod
> ok 17 - POD test for blib/lib/Config/Model/models/Ssh/PortForward.pl (no pod)
> ok 18 - POD test for blib/lib/Config/Model/Backend/OpenSsh/Sshd.pm
> ok 19 - POD test for blib/lib/Config/Model/Backend/OpenSsh/Ssh.pm
> ok 20 - POD test for blib/lib/Config/Model/Backend/OpenSsh/Role/MatchBlock.pm
> ok 21 - POD test for blib/lib/Config/Model/Backend/OpenSsh/Role/Reader.pm
> ok 22 - POD test for blib/lib/Config/Model/Backend/OpenSsh/Role/Writer.pm
> ok
> t/ssh_config.t ......... 
> ok 1 - compiled
> # Running tests in wr_root/ssh_config
> # Running test like root (no layered config)
> ok 2 - Read wr_root/ssh_config/etc/ssh/ssh_config and created instance
> ok 3 - check global comment pattern
> ok 4 - check Ciphers comment
> ok 5 - check SendEnv comment
> ok 6 - check Host pattern
> ok 7 - check user LocalForward port
> ok 8 - check user LocalForward host
> ok 9 - check user LocalForward ipv6
> ok 10 - check user LocalForward port ipv6
> ok 11 - check user LocalForward host ipv6
> ok 12 - wrote ssh_config data in wr_root/ssh_config
> ok 13 - check if both root_ssh dumps are identical
> 1..13
> ok
> 
> Test Summary Report
> -------------------
> t/custom_sshd.t      (Wstat: 65280 Tests: 1 Failed: 0)
>   Non-zero exit status: 255
>   Parse errors: No plan found in TAP output
> t/custom_sshd_match.t (Wstat: 65280 Tests: 1 Failed: 0)
>   Non-zero exit status: 255
>   Parse errors: No plan found in TAP output
> Files=6, Tests=178,  4 wallclock secs ( 0.07 usr  0.02 sys +  4.10 cusr  0.26 csys =  4.45 CPU)
> Result: FAIL
> Failed 2/6 test programs. 0/178 subtests failed.
> dh_auto_test: error: /usr/bin/perl Build test --verbose 1 returned exit code 255


The full build log is available from:
http://qa-logs.debian.net/2022/07/28/libconfig-model-openssh-perl_2.9.0.1-1_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20220728;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20220728&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.



More information about the pkg-perl-maintainers mailing list