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

2023-10-27 Thread Lucas Nussbaum
On 28/10/23 at 03:27 +0200, gregor herrmann wrote:
> On Sat, 28 Oct 2023 02:13:30 +0200, Santiago Vila wrote:
> 
> > El 28/10/23 a las 0:18, gregor herrmann escribió:
> > > On Fri, 27 Oct 2023 23:53:22 +0200, Lucas Nussbaum wrote:
> > > > My build chroot is still unmerged. I think it's the same on the buildd.
> > > I don't think the latter is still the case but I don't have the
> > > capacity to keep all usr-merge details in my head.
> > The buildds are already usr-merged.
> 
> Thanks for the confirmation of my "impression".

OK, I missed that it was fixed on the buildd, and this is the first bug
where is it actually an issue.

I'll change my setup, and perform another rebuild immediately, so we can
easily catch regressions the other way around (builds that succeed on
un-merged but fail on merged).

Lucas



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

2023-10-27 Thread Santiago Vila

El 28/10/23 a las 3:27, gregor herrmann escribió:

Lucas, maybe it would make sense to update your chroots to the
usr-merged flavour, as that seems to be the default now?


He knows :-)

https://salsa.debian.org/lucas/collab-qa-tools/-/issues/2

Thanks.



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

2023-10-27 Thread gregor herrmann
On Sat, 28 Oct 2023 02:13:30 +0200, Santiago Vila wrote:

> El 28/10/23 a las 0:18, gregor herrmann escribió:
> > On Fri, 27 Oct 2023 23:53:22 +0200, Lucas Nussbaum wrote:
> > > My build chroot is still unmerged. I think it's the same on the buildd.
> > I don't think the latter is still the case but I don't have the
> > capacity to keep all usr-merge details in my head.
> The buildds are already usr-merged.

Thanks for the confirmation of my "impression".

> For this reason, bugs of type "FTBFS when chroot is not usr-merged"
> (like this one) should probably not be considered RC anymore.

Agreed.

Lucas, maybe it would make sense to update your chroots to the
usr-merged flavour, as that seems to be the default now?

Cheers,
gregor

-- 
 .''`.  https://info.comodo.priv.at -- Debian Developer https://www.debian.org
 : :' : OpenPGP fingerprint D1E1 316E 93A7 60A8 104D  85FA BB3A 6801 8649 AA06
 `. `'  Member VIBE!AT & SPI Inc. -- Supporter Free Software Foundation Europe
   `-   


signature.asc
Description: Digital Signature


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

2023-10-27 Thread Santiago Vila

El 28/10/23 a las 0:18, gregor herrmann escribió:

On Fri, 27 Oct 2023 23:53:22 +0200, Lucas Nussbaum wrote:

My build chroot is still unmerged. I think it's the same on the buildd.


I don't think the latter is still the case but I don't have the
capacity to keep all usr-merge details in my head.


Summary: Starting from bookworm, we may "rely" on systems being usr-merged.
(Because the TC said so).

The buildds are already usr-merged. For example, here is the build
for the updated package that has been just uploaded for unstable:

https://buildd.debian.org/status/fetch.php?pkg=libsys-hostip-perl&arch=all&ver=2.120-4&stamp=1698447864&raw=0

At the bottom we can see this:

Build-Tainted-By:
 merged-usr-via-aliased-dirs

This means the build chroot was usr-merged.

It also means they are using an old sbuild version :-) because a
more recent sbuild will probably say nothing, as usr-merge is
already "the normal thing", not a "tainted" thing.

For this reason, bugs of type "FTBFS when chroot is not usr-merged"
(like this one) should probably not be considered RC anymore.

Thanks.



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

2023-10-27 Thread gregor herrmann
On Fri, 27 Oct 2023 23:53:22 +0200, Lucas Nussbaum wrote:

> Hi Gregor,

Hi Lucas,

and thanks for your quick help!
 
> > > > Can't exec "/sbin/ip": No such file or directory at 
> > > > /<>/blib/lib/Sys/HostIP.pm line 171.
> > 
> > That's a bit surprising … In my (usr-merged) sid cowbuilder chroots,
> > I have (after installing iproute2) lots of options of calling ip(8),
> > among them /sbin/ip:
> 
> My build chroot is still unmerged. I think it's the same on the buildd.

I don't think the latter is still the case but I don't have the
capacity to keep all usr-merge details in my head.

> And `dpkg -L iproute2` says it's /usr/sbin/ip

Oh -- I had't realized that the files were physically moved, and now
the old paths only work on merged systems. Hooray!

Alright, trivial patch incoming …


Cheers,
gregor

-- 
 .''`.  https://info.comodo.priv.at -- Debian Developer https://www.debian.org
 : :' : OpenPGP fingerprint D1E1 316E 93A7 60A8 104D  85FA BB3A 6801 8649 AA06
 `. `'  Member VIBE!AT & SPI Inc. -- Supporter Free Software Foundation Europe
   `-   


signature.asc
Description: Digital Signature


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

2023-10-27 Thread Lucas Nussbaum
Hi Gregor,

On 27/10/23 at 22:41 +0200, gregor herrmann wrote:
> Control: tag -1 + unreproducible moreinfo
> 
> On Fri, 27 Oct 2023 21:42:42 +0200, Lucas Nussbaum wrote:
> 
> > Source: libsys-hostip-perl
> > Version: 2.120-3
> > Severity: serious
> > Justification: FTBFS
> > Tags: trixie sid ftbfs
> > User: lu...@debian.org
> > Usertags: ftbfs-20231027 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 '/<>'
> > > 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 "/sbin/ip": No such file or directory at 
> > > /<>/blib/lib/Sys/HostIP.pm line 171.
> 
> That's a bit surprising … In my (usr-merged) sid cowbuilder chroots,
> I have (after installing iproute2) lots of options of calling ip(8),
> among them /sbin/ip:

My build chroot is still unmerged. I think it's the same on the buildd.
And `dpkg -L iproute2` says it's /usr/sbin/ip

Lucas



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

2023-10-27 Thread Debian Bug Tracking System
Processing control commands:

> tag -1 + unreproducible moreinfo
Bug #1054809 [src:libsys-hostip-perl] libsys-hostip-perl: FTBFS: Can't exec 
"/sbin/ip": No such file or directory at 
/<>/blib/lib/Sys/HostIP.pm line 171.
Added tag(s) moreinfo and unreproducible.

-- 
1054809: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1054809
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems



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

2023-10-27 Thread gregor herrmann
Control: tag -1 + unreproducible moreinfo

On Fri, 27 Oct 2023 21:42:42 +0200, Lucas Nussbaum wrote:

> Source: libsys-hostip-perl
> Version: 2.120-3
> Severity: serious
> Justification: FTBFS
> Tags: trixie sid ftbfs
> User: lu...@debian.org
> Usertags: ftbfs-20231027 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 '/<>'
> > 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 "/sbin/ip": No such file or directory at 
> > /<>/blib/lib/Sys/HostIP.pm line 171.

That's a bit surprising … In my (usr-merged) sid cowbuilder chroots,
I have (after installing iproute2) lots of options of calling ip(8),
among them /sbin/ip:

# ls -la /bin/ip /usr/bin/ip /sbin/ip /usr/sbin/ip
-rwxr-xr-x 1 root root 705432 Oct 24 14:24 /bin/ip
lrwxrwxrwx 1 root root  9 Oct 24 14:24 /sbin/ip -> ../bin/ip
-rwxr-xr-x 1 root root 705432 Oct 24 14:24 /usr/bin/ip
lrwxrwxrwx 1 root root  9 Oct 24 14:24 /usr/sbin/ip -> ../bin/ip

(And the tests run successfully in this chroot.)

I'm wondering if the test system misses the (/bin and) /sbin
symlink(s) into /usr? Or something else?

Of course looking for all of /bin/ip /sbin/ip /usr/bin/ip /usr/sbin/ip
or using File::Which etc. would fix this (except that I can't
reproduce the problem in the first place), but I'd like to understand
what's going on here …
 

Cheers,
gregor

-- 
 .''`.  https://info.comodo.priv.at -- Debian Developer https://www.debian.org
 : :' : OpenPGP fingerprint D1E1 316E 93A7 60A8 104D  85FA BB3A 6801 8649 AA06
 `. `'  Member VIBE!AT & SPI Inc. -- Supporter Free Software Foundation Europe
   `-   


signature.asc
Description: Digital Signature


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

2023-10-27 Thread Lucas Nussbaum
Source: libsys-hostip-perl
Version: 2.120-3
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lu...@debian.org
Usertags: ftbfs-20231027 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 '/<>'
> 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 "/sbin/ip": No such file or directory at 
> /<>/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 
> /<>/blib/lib/Sys/HostIP.pm line 136.
> Can't exec "/sbin/ip": No such file or directory at 
> /<>/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 
> /<>/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 "/sbin/ip": No such file or directory at 
> /<>/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 
> /<>/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 "/sbin/ip": No such file or directory at 
> /<>/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 
> /<>/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 'HAS