Bug#1077440: libsys-hostip-perl: FTBFS: Can't exec "/usr/sbin/ip": No such file or directory at /<<PKGBUILDDIR>>/blib/lib/Sys/HostIP.pm line 171.

Lucas Nussbaum lucas at debian.org
Mon Jul 29 06:53:32 BST 2024


Source: libsys-hostip-perl
Version: 2.120-4
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20240728 ftbfs-trixie

Hi,

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


Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(1, 'blib/lib', 'blib/arch')" t/*.t
> t/00-compile.t .............. 
> 1..1
> ok 1 - Sys/HostIP.pm loaded ok
> ok
> Can't exec "/usr/sbin/ip": No such file or directory at /<<PKGBUILDDIR>>/blib/lib/Sys/HostIP.pm line 171.
> Unable to detect interface information!
> Please open an issue on https://github.com/xsawyerx/sys-hostip/issues with your 'ipconfig' or 'ifconfig' output at /<<PKGBUILDDIR>>/blib/lib/Sys/HostIP.pm line 136.
> Can't exec "/usr/sbin/ip": No such file or directory at /<<PKGBUILDDIR>>/blib/lib/Sys/HostIP.pm line 171.
> Unable to detect interface information!
> Please open an issue on https://github.com/xsawyerx/sys-hostip/issues with your 'ipconfig' or 'ifconfig' output at /<<PKGBUILDDIR>>/blib/lib/Sys/HostIP.pm line 136.
> # Class IP: 
> 
> #   Failed test 'IP by class looks ok'
> #   at t/lib/Utils.pm line 70.
> #                   ''
> #     doesn't match '(?^x:^ \d+ (?: \. \d+ ){3} $)'
> Can't exec "/usr/sbin/ip": No such file or directory at /<<PKGBUILDDIR>>/blib/lib/Sys/HostIP.pm line 171.
> Unable to detect interface information!
> Please open an issue on https://github.com/xsawyerx/sys-hostip/issues with your 'ipconfig' or 'ifconfig' output at /<<PKGBUILDDIR>>/blib/lib/Sys/HostIP.pm line 136.
> 
> #   Failed test 'Found IP in IPs by class'
> #   at t/lib/Utils.pm line 78.
> Can't exec "/usr/sbin/ip": No such file or directory at /<<PKGBUILDDIR>>/blib/lib/Sys/HostIP.pm line 171.
> Unable to detect interface information!
> Please open an issue on https://github.com/xsawyerx/sys-hostip/issues with your 'ipconfig' or 'ifconfig' output at /<<PKGBUILDDIR>>/blib/lib/Sys/HostIP.pm line 136.
> # Looks like you failed 2 tests of 11.
> t/01-base.t ................. 
> 1..11
> not ok 1 - IP by class looks ok
> ok 2 - IP by class matches IP by sub
> ok 3 - 'scalar context ips() gets arrayref' isa 'ARRAY'
> not ok 4 - Found IP in IPs by class
> ok 5 - Length of class and sub ips() output is equal
> ok 6 - IPs by class match IPs by sub
> ok 7 - 'scalar context interfaces() gets hashref' isa 'HASH'
> ok 8 - Matching number of interfaces and ips
> ok 9 - interfaces() output by class and sub are equal
> ok 10 - 'scalar context if_info() gets hashref' isa 'HASH'
> ok 11 - if_info set as attribute
> Dubious, test returned 2 (wstat 512, 0x200)
> Failed 2/11 subtests 
> # Class IP: 169.254.109.232
> # Class IP: 192.168.1.100
> # Class IP: 192.168.40.241
> # Class IP: 10.0.2.15
> # Class IP: 192.168.1.101
> # Class IP: 192.168.2.118
> # Class IP: 192.168.2.118
> # Class IP: 192.168.2.118
> # Class IP: 192.168.56.1
> # Class IP: 192.168.0.10
> # Class IP: 0.0.0.0
> # Class IP: 10.0.2.15
> t/02-base-mocked-windows.t .. 
> 1..180
> # ipconfig-2k.txt
> ok 1 - Windows was called
> ok 2 - Windows was called
> ok 3 - IP by class looks ok
> ok 4 - IP by class matches IP by sub
> ok 5 - Windows was called
> ok 6 - 'scalar context ips() gets arrayref' isa 'ARRAY'
> ok 7 - Found IP in IPs by class
> ok 8 - Length of class and sub ips() output is equal
> ok 9 - IPs by class match IPs by sub
> ok 10 - Windows was called
> ok 11 - 'scalar context interfaces() gets hashref' isa 'HASH'
> ok 12 - Matching number of interfaces and ips
> ok 13 - interfaces() output by class and sub are equal
> ok 14 - 'scalar context if_info() gets hashref' isa 'HASH'
> ok 15 - if_info set as attribute
> # ipconfig-win10.txt
> ok 16 - Windows was called
> ok 17 - Windows was called
> ok 18 - IP by class looks ok
> ok 19 - IP by class matches IP by sub
> ok 20 - Windows was called
> ok 21 - 'scalar context ips() gets arrayref' isa 'ARRAY'
> ok 22 - Found IP in IPs by class
> ok 23 - Length of class and sub ips() output is equal
> ok 24 - IPs by class match IPs by sub
> ok 25 - Windows was called
> ok 26 - 'scalar context interfaces() gets hashref' isa 'HASH'
> ok 27 - Matching number of interfaces and ips
> ok 28 - interfaces() output by class and sub are equal
> ok 29 - 'scalar context if_info() gets hashref' isa 'HASH'
> ok 30 - if_info set as attribute
> # ipconfig-win2008-sv_SE.txt
> ok 31 - Windows was called
> ok 32 - Windows was called
> ok 33 - IP by class looks ok
> ok 34 - IP by class matches IP by sub
> ok 35 - Windows was called
> ok 36 - 'scalar context ips() gets arrayref' isa 'ARRAY'
> ok 37 - Found IP in IPs by class
> ok 38 - Length of class and sub ips() output is equal
> ok 39 - IPs by class match IPs by sub
> ok 40 - Windows was called
> ok 41 - 'scalar context interfaces() gets hashref' isa 'HASH'
> ok 42 - Matching number of interfaces and ips
> ok 43 - interfaces() output by class and sub are equal
> ok 44 - 'scalar context if_info() gets hashref' isa 'HASH'
> ok 45 - if_info set as attribute
> # ipconfig-win7-de_DE.txt
> ok 46 - Windows was called
> ok 47 - Windows was called
> ok 48 - IP by class looks ok
> ok 49 - IP by class matches IP by sub
> ok 50 - Windows was called
> ok 51 - 'scalar context ips() gets arrayref' isa 'ARRAY'
> ok 52 - Found IP in IPs by class
> ok 53 - Length of class and sub ips() output is equal
> ok 54 - IPs by class match IPs by sub
> ok 55 - Windows was called
> ok 56 - 'scalar context interfaces() gets hashref' isa 'HASH'
> ok 57 - Matching number of interfaces and ips
> ok 58 - interfaces() output by class and sub are equal
> ok 59 - 'scalar context if_info() gets hashref' isa 'HASH'
> ok 60 - if_info set as attribute
> # ipconfig-win7-empty-name.txt
> ok 61 - Windows was called
> ok 62 - Windows was called
> ok 63 - IP by class looks ok
> ok 64 - IP by class matches IP by sub
> ok 65 - Windows was called
> ok 66 - 'scalar context ips() gets arrayref' isa 'ARRAY'
> ok 67 - Found IP in IPs by class
> ok 68 - Length of class and sub ips() output is equal
> ok 69 - IPs by class match IPs by sub
> ok 70 - Windows was called
> ok 71 - 'scalar context interfaces() gets hashref' isa 'HASH'
> ok 72 - Matching number of interfaces and ips
> ok 73 - interfaces() output by class and sub are equal
> ok 74 - 'scalar context if_info() gets hashref' isa 'HASH'
> ok 75 - if_info set as attribute
> # ipconfig-win7-fi_FI.txt
> ok 76 - Windows was called
> ok 77 - Windows was called
> ok 78 - IP by class looks ok
> ok 79 - IP by class matches IP by sub
> ok 80 - Windows was called
> ok 81 - 'scalar context ips() gets arrayref' isa 'ARRAY'
> ok 82 - Found IP in IPs by class
> ok 83 - Length of class and sub ips() output is equal
> ok 84 - IPs by class match IPs by sub
> ok 85 - Windows was called
> ok 86 - 'scalar context interfaces() gets hashref' isa 'HASH'
> ok 87 - Matching number of interfaces and ips
> ok 88 - interfaces() output by class and sub are equal
> ok 89 - 'scalar context if_info() gets hashref' isa 'HASH'
> ok 90 - if_info set as attribute
> # ipconfig-win7-fr_FR.txt
> ok 91 - Windows was called
> ok 92 - Windows was called
> ok 93 - IP by class looks ok
> ok 94 - IP by class matches IP by sub
> ok 95 - Windows was called
> ok 96 - 'scalar context ips() gets arrayref' isa 'ARRAY'
> ok 97 - Found IP in IPs by class
> ok 98 - Length of class and sub ips() output is equal
> ok 99 - IPs by class match IPs by sub
> ok 100 - Windows was called
> ok 101 - 'scalar context interfaces() gets hashref' isa 'HASH'
> ok 102 - Matching number of interfaces and ips
> ok 103 - interfaces() output by class and sub are equal
> ok 104 - 'scalar context if_info() gets hashref' isa 'HASH'
> ok 105 - if_info set as attribute
> # ipconfig-win7-it_IT.txt
> ok 106 - Windows was called
> ok 107 - Windows was called
> ok 108 - IP by class looks ok
> ok 109 - IP by class matches IP by sub
> ok 110 - Windows was called
> ok 111 - 'scalar context ips() gets arrayref' isa 'ARRAY'
> ok 112 - Found IP in IPs by class
> ok 113 - Length of class and sub ips() output is equal
> ok 114 - IPs by class match IPs by sub
> ok 115 - Windows was called
> ok 116 - 'scalar context interfaces() gets hashref' isa 'HASH'
> ok 117 - Matching number of interfaces and ips
> ok 118 - interfaces() output by class and sub are equal
> ok 119 - 'scalar context if_info() gets hashref' isa 'HASH'
> ok 120 - if_info set as attribute
> # ipconfig-win7-ru-utf8.txt
> ok 121 - Windows was called
> ok 122 - Windows was called
> ok 123 - IP by class looks ok
> ok 124 - IP by class matches IP by sub
> ok 125 - Windows was called
> ok 126 - 'scalar context ips() gets arrayref' isa 'ARRAY'
> ok 127 - Found IP in IPs by class
> ok 128 - Length of class and sub ips() output is equal
> ok 129 - IPs by class match IPs by sub
> ok 130 - Windows was called
> ok 131 - 'scalar context interfaces() gets hashref' isa 'HASH'
> ok 132 - Matching number of interfaces and ips
> ok 133 - interfaces() output by class and sub are equal
> ok 134 - 'scalar context if_info() gets hashref' isa 'HASH'
> ok 135 - if_info set as attribute
> # ipconfig-win7.txt
> ok 136 - Windows was called
> ok 137 - Windows was called
> ok 138 - IP by class looks ok
> ok 139 - IP by class matches IP by sub
> ok 140 - Windows was called
> ok 141 - 'scalar context ips() gets arrayref' isa 'ARRAY'
> ok 142 - Found IP in IPs by class
> ok 143 - Length of class and sub ips() output is equal
> ok 144 - IPs by class match IPs by sub
> ok 145 - Windows was called
> ok 146 - 'scalar context interfaces() gets hashref' isa 'HASH'
> ok 147 - Matching number of interfaces and ips
> ok 148 - interfaces() output by class and sub are equal
> ok 149 - 'scalar context if_info() gets hashref' isa 'HASH'
> ok 150 - if_info set as attribute
> # ipconfig-xp.txt
> ok 151 - Windows was called
> ok 152 - Windows was called
> ok 153 - IP by class looks ok
> ok 154 - IP by class matches IP by sub
> ok 155 - Windows was called
> ok 156 - 'scalar context ips() gets arrayref' isa 'ARRAY'
> ok 157 - Found IP in IPs by class
> ok 158 - Length of class and sub ips() output is equal
> ok 159 - IPs by class match IPs by sub
> ok 160 - Windows was called
> ok 161 - 'scalar context interfaces() gets hashref' isa 'HASH'
> ok 162 - Matching number of interfaces and ips
> ok 163 - interfaces() output by class and sub are equal
> ok 164 - 'scalar context if_info() gets hashref' isa 'HASH'
> ok 165 - if_info set as attribute
> # ipconfig-winxp-ru-utf8.txt
> ok 166 - Windows was called
> ok 167 - Windows was called
> ok 168 - IP by class looks ok
> ok 169 - IP by class matches IP by sub
> ok 170 - Windows was called
> ok 171 - 'scalar context ips() gets arrayref' isa 'ARRAY'
> ok 172 - Found IP in IPs by class
> ok 173 - Length of class and sub ips() output is equal
> ok 174 - IPs by class match IPs by sub
> ok 175 - Windows was called
> ok 176 - 'scalar context interfaces() gets hashref' isa 'HASH'
> ok 177 - Matching number of interfaces and ips
> ok 178 - interfaces() output by class and sub are equal
> ok 179 - 'scalar context if_info() gets hashref' isa 'HASH'
> ok 180 - if_info set as attribute
> ok
> t/03-iface-undetected.t ..... 
> 1..4
> ok 1 - Inform user if interface info not detectable
> ok 2 - Empty ip info returned
> ok 3 - Inform user if interface info not detectable
> ok 4 - Empty ip info returned
> ok
> t/10-ifconfig.t ............. 
> 1..7
> ok 1 - The class (or class-like) 'Sys::HostIP' isa 'Sys::HostIP'
> ok 2 - Got no parameters
> ok 3 - ifconfig without object
> ok 4 - An object of class 'Sys::HostIP' isa 'Sys::HostIP'
> ok 5 - Got no parameters
> ok 6 - ifconfig with object and param
> ok 7 - ifconfig without path
> ok
> t/11-ipconfig.t ............. 
> 1..48
> ok 1 - Windows was called
> ok 2 - An object of class 'Sys::HostIP' isa 'Sys::HostIP'
> ok 3 - Windows was called
> ok 4 - Correct Windows 2000 interface
> ok 5 - Windows was called
> ok 6 - An object of class 'Sys::HostIP' isa 'Sys::HostIP'
> ok 7 - Windows was called
> ok 8 - Correct Windows XP interface
> ok 9 - Windows was called
> ok 10 - An object of class 'Sys::HostIP' isa 'Sys::HostIP'
> ok 11 - Windows was called
> ok 12 - Correct Windows 7 interface
> ok 13 - Windows was called
> ok 14 - An object of class 'Sys::HostIP' isa 'Sys::HostIP'
> ok 15 - Windows was called
> ok 16 - Windows 7 interface, empty name
> ok 17 - Windows was called
> ok 18 - An object of class 'Sys::HostIP' isa 'Sys::HostIP'
> ok 19 - Windows was called
> ok 20 - Correct Windows 10 interface
> ok 21 - Windows was called
> ok 22 - An object of class 'Sys::HostIP' isa 'Sys::HostIP'
> ok 23 - Windows was called
> ok 24 - Correct Windows Server 2008 interface in Swedish locale
> ok 25 - Windows was called
> ok 26 - An object of class 'Sys::HostIP' isa 'Sys::HostIP'
> ok 27 - Windows was called
> ok 28 - Correct Windows 7 interface in German locale
> ok 29 - Windows was called
> ok 30 - An object of class 'Sys::HostIP' isa 'Sys::HostIP'
> ok 31 - Windows was called
> ok 32 - Correct Windows 7 interface in French locale
> ok 33 - Windows was called
> ok 34 - An object of class 'Sys::HostIP' isa 'Sys::HostIP'
> ok 35 - Windows was called
> ok 36 - Correct Windows 7 interface in Italian locale
> ok 37 - Windows was called
> ok 38 - An object of class 'Sys::HostIP' isa 'Sys::HostIP'
> ok 39 - Windows was called
> ok 40 - Correct Windows 7 interface in Finnish locale
> ok 41 - Windows was called
> ok 42 - An object of class 'Sys::HostIP' isa 'Sys::HostIP'
> ok 43 - Windows was called
> ok 44 - Correct Windows XP interface in Russian locale
> ok 45 - Windows was called
> ok 46 - An object of class 'Sys::HostIP' isa 'Sys::HostIP'
> ok 47 - Windows was called
> ok 48 - Correct Windows 7 interface in Russian locale
> ok
> Can't exec "/usr/sbin/ip": No such file or directory at /<<PKGBUILDDIR>>/blib/lib/Sys/HostIP.pm line 171.
> Unable to detect interface information!
> Please open an issue on https://github.com/xsawyerx/sys-hostip/issues with your 'ipconfig' or 'ifconfig' output at /<<PKGBUILDDIR>>/blib/lib/Sys/HostIP.pm line 136.
> Can't exec "/usr/sbin/ip": No such file or directory at /<<PKGBUILDDIR>>/blib/lib/Sys/HostIP.pm line 171.
> Unable to detect interface information!
> Please open an issue on https://github.com/xsawyerx/sys-hostip/issues with your 'ipconfig' or 'ifconfig' output at /<<PKGBUILDDIR>>/blib/lib/Sys/HostIP.pm line 136.
> # Class IP: 
> 
> #   Failed test 'IP by class looks ok'
> #   at t/lib/Utils.pm line 70.
> #                   ''
> #     doesn't match '(?^x:^ \d+ (?: \. \d+ ){3} $)'
> Can't exec "/usr/sbin/ip": No such file or directory at /<<PKGBUILDDIR>>/blib/lib/Sys/HostIP.pm line 171.
> Unable to detect interface information!
> Please open an issue on https://github.com/xsawyerx/sys-hostip/issues with your 'ipconfig' or 'ifconfig' output at /<<PKGBUILDDIR>>/blib/lib/Sys/HostIP.pm line 136.
> 
> #   Failed test 'Found IP in IPs by class'
> #   at t/lib/Utils.pm line 78.
> Can't exec "/usr/sbin/ip": No such file or directory at /<<PKGBUILDDIR>>/blib/lib/Sys/HostIP.pm line 171.
> Unable to detect interface information!
> Please open an issue on https://github.com/xsawyerx/sys-hostip/issues with your 'ipconfig' or 'ifconfig' output at /<<PKGBUILDDIR>>/blib/lib/Sys/HostIP.pm line 136.
> # Looks like you failed 2 tests of 11.
> t/12-ip.t ................... 
> 1..11
> not ok 1 - IP by class looks ok
> ok 2 - IP by class matches IP by sub
> ok 3 - 'scalar context ips() gets arrayref' isa 'ARRAY'
> not ok 4 - Found IP in IPs by class
> ok 5 - Length of class and sub ips() output is equal
> ok 6 - IPs by class match IPs by sub
> ok 7 - 'scalar context interfaces() gets hashref' isa 'HASH'
> ok 8 - Matching number of interfaces and ips
> ok 9 - interfaces() output by class and sub are equal
> ok 10 - 'scalar context if_info() gets hashref' isa 'HASH'
> ok 11 - if_info set as attribute
> Dubious, test returned 2 (wstat 512, 0x200)
> Failed 2/11 subtests 
> t/99-kwalitee.t ............. skipped: Disabled until we can install Test::Kwalitee::Extra
> t/author-pod-syntax.t ....... skipped: these tests are for testing by the author
> t/release-distmeta.t ........ skipped: these tests are for release candidate testing
> 
> Test Summary Report
> -------------------
> t/01-base.t               (Wstat: 512 (exited 2) Tests: 11 Failed: 2)
>   Failed tests:  1, 4
>   Non-zero exit status: 2
> t/12-ip.t                 (Wstat: 512 (exited 2) Tests: 11 Failed: 2)
>   Failed tests:  1, 4
>   Non-zero exit status: 2
> Files=10, Tests=262,  1 wallclock secs ( 0.07 usr  0.00 sys +  0.60 cusr  0.10 csys =  0.77 CPU)
> Result: FAIL
> Failed 2/10 test programs. 4/262 subtests failed.
> make[1]: *** [Makefile:854: test_dynamic] Error 255
> make[1]: Leaving directory '/<<PKGBUILDDIR>>'
> dh_auto_test: error: make -j8 test TEST_VERBOSE=1 returned exit code 2


The full build log is available from:
http://qa-logs.debian.net/2024/07/28/libsys-hostip-perl_2.120-4_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20240728;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20240728&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 mark 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