Bug#885967: #885967: FTBFS: FAILED test of gethostid ENOENT

2018-02-02 Thread Adam Borowski
On Fri, Feb 02, 2018 at 05:12:36PM +0200, Adrian Bunk wrote:
> On Sun, Jan 28, 2018 at 05:55:19AM +0100, Andreas Beckmann wrote:
> >...
> > Can this bug be reproduced in stretch or jessie buildd chroots - or can
> > we tag it sid+buster?
> 
> It cannot even be reproduced in the sid buildd chroots,
> only with "debootstrap --variant=minbase" - fixing in
> jessie or stretch is therefore not required.

「debootstrap --variant=buildd」 → no /etc/hosts either.

This said, your fix works for now, a better one is a matter for the
upstream.  And as libexplain seems to be dead upstream, despite it being a
nifty concept, no one is likely to use it in new project, meaning the issue
will fix itself.


Meow!
-- 
⢀⣴⠾⠻⢶⣦⠀ The bill with 3 years prison for mentioning Polish concentration
⣾⠁⢰⠒⠀⣿⡁ camps is back.  What about KL Warschau (operating until 1956)?
⢿⡄⠘⠷⠚⠋⠀ Zgoda?  Łambinowice?  Most ex-German KLs?  If those were "soviet
⠈⠳⣄ puppets", Bereza Kartuska?  Sikorski's camps in UK (thanks Brits!)?



Bug#885967: #885967: FTBFS: FAILED test of gethostid ENOENT

2018-02-02 Thread Adrian Bunk
Control: tags -1 buster sid

On Sun, Jan 28, 2018 at 05:55:19AM +0100, Andreas Beckmann wrote:
>...
> Can this bug be reproduced in stretch or jessie buildd chroots - or can
> we tag it sid+buster?

It cannot even be reproduced in the sid buildd chroots,
only with "debootstrap --variant=minbase" - fixing in
jessie or stretch is therefore not required.

> Andreas

cu
Adrian

-- 

   "Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
   "Only a promise," Lao Er said.
   Pearl S. Buck - Dragon Seed



Bug#885967: #885967: FTBFS: FAILED test of gethostid ENOENT

2018-01-27 Thread Andreas Beckmann
On Thu, 4 Jan 2018 21:40:48 +0100 Adam Borowski  wrote:
> } PATH=`pwd`/bin:$PATH /bin/sh test/07/t0705a.sh
> } 2,3c2,3
> } < (ENOENT) because there is no "hostid" regular file in the pathname "/etc"
> } < directory; did you mean the "hosts" regular file instead?
> } ---
> } > (ENOENT) because there is no "hostid" regular file in the pathname
> } > "/etc" directory
> } FAILED test of gethostid ENOENT
> 
> Adrian Bunk wrote:
> > /etc/hosts is created in the postinst of the netbase package,
> > so "missing build dependency on netbase" would be another way
> > to describe the problem.
> 
> Not sure if this is the best way to fix the failure, although it _would_
> make the error message find /etc/hosts there so it can be suggested.
> 
> This test is fragile, though -- if you have a file named /etc/hosting or
> such, it'll be picked instead of "hosts".
> 
> The root cause, though, is that libexplain knows about gethostid, thus it
> can rule out an user making a typo -- the function looks for /etc/hostid and
> hothing else.

At a quick glance the look_for_similar() functionality in
libexplain/buffer/errno/path_resolution.c cannot be disabled, therefore
a proper solution for making the test output deterministic (independent
of the content of /etc) is not easily possible. The tests also don't
seem to support regular expressions ...

I'd suggest to add the B-D: netbase, and reconsider this decision once
base-files ships /etc/hostile in case that is a better suggestion than
/etc/hosts :-)

Can this bug be reproduced in stretch or jessie buildd chroots - or can
we tag it sid+buster?


Andreas



Bug#885967: #885967: FTBFS: FAILED test of gethostid ENOENT

2018-01-04 Thread Adam Borowski
} PATH=`pwd`/bin:$PATH /bin/sh test/07/t0705a.sh
} 2,3c2,3
} < (ENOENT) because there is no "hostid" regular file in the pathname "/etc"
} < directory; did you mean the "hosts" regular file instead?
} ---
} > (ENOENT) because there is no "hostid" regular file in the pathname
} > "/etc" directory
} FAILED test of gethostid ENOENT

Adrian Bunk wrote:
> /etc/hosts is created in the postinst of the netbase package,
> so "missing build dependency on netbase" would be another way
> to describe the problem.

Not sure if this is the best way to fix the failure, although it _would_
make the error message find /etc/hosts there so it can be suggested.

This test is fragile, though -- if you have a file named /etc/hosting or
such, it'll be picked instead of "hosts".

The root cause, though, is that libexplain knows about gethostid, thus it
can rule out an user making a typo -- the function looks for /etc/hostid and
hothing else.


Meow!
-- 
// If you believe in so-called "intellectual property", please immediately
// cease using counterfeit alphabets.  Instead, contact the nearest temple
// of Amon, whose priests will provide you with scribal services for all
// your writing needs, for Reasonable And Non-Discriminatory prices.