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
signature.asc
Description: Digital signature