Bug#615963: libvendorlib-perl: tilde expansion tests failing

Salvatore Bonaccorso carnil at debian.org
Sun Mar 6 20:58:38 UTC 2011


Hi Gregor

On Sun, Mar 06, 2011 at 07:50:42PM +0100, gregor herrmann wrote:
> On Sun, 06 Mar 2011 18:46:59 +0100, gregor herrmann wrote:
> 
> > #   Failed test 'bare tilde expansion'
> > #   at t/01basic.t line 38.
> > #          got: '/usr/share/perl5'
> > #     expected: '/home/jon/'
>  
> More info:
> 
> Sticking 
>     diag '@INC is now: ', Dumper(\@INC);
> into t/01basic.t after the shift we get:
> 
> 
> in jawnsy's sbuild:
> 
> # @INC is now: $VAR1 = [
> #           '/usr/share/perl5',
> #           '/usr/lib/perl/5.10',
> #           '/usr/share/perl/5.10'
> #         ];
> 
> in my cowbuilder:
> 
> # @INC is now: $VAR1 = [
> #           '/tmp/buildd/',
> #           '/usr/share/perl5',
> #           '/usr/lib/perl/5.10',
> #           '/usr/share/perl/5.10'
> 
> in my normal environment:
> 
> # @INC is now: $VAR1 = [
> #           '/home/gregoa/',
> #           '/usr/share/perl5',
> #           '/usr/lib/perl/5.10',
> #           '/usr/share/perl/5.10'
> #         ];
> 
> 
> Looking at lib/vendorlib.pm:
> Maybe the path is removed by
> 
>     # remove any directories that don't actually exist
>     # this will also remove /etc/perl on non-Debian systems
>     @paths = grep -d, @paths;
> 
> i.e. /home/$user doesn't exist in exist but is reported by
> getpwuid($<))[7] ?

Good catch! Well /home/$user get's not mounted inside the chroot, but
you are right, the /etc/passwd is from chroot creation time? So
contains /home/$user thus returned by getpwuid($<)[7]? But then
/home/$user is removed from @paths by the above, as it really does not
exists.

If I'm right, then buildd's work like that, that building user has
no exiting home (we already fixed some bugs going in that direction).

Currently I have not a good idea how to proceed. :(

Bests
Salvatore
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20110306/dd4b4427/attachment-0001.pgp>


More information about the pkg-perl-maintainers mailing list