[buildd-tools-devel] Bug#606143: Bug#606143: netbase: Installation in build chroot breaks package builds

Roger Leigh rleigh at codelibre.net
Tue Dec 7 11:59:34 UTC 2010


On Mon, Dec 06, 2010 at 08:41:32PM +0100, Julian Andres Klode wrote:
> => file from netbase&host not equal to the one in chroot
> 
> Explanation
> -----------
> <jcristau> ah right
> <jcristau> because schroot iterates around getservent, it doesn't just
> copy the file
> 
> Solution
> ========
> Copy the files instead?

NSS databases can't simply be copied.  In the simple case, this is
certainly possible.  But for arbitrary NSS configurations where
/etc/nsswitch.conf is using configurations other than the basic
files, this is not the correct behaviour.  By default, we dump the
database using getent(1) to the flat file in the chroot.  This
covers all configurations (except for very large sites, where you
don't want to dump the entire LDAP passwd/group dbs on each
session startup for performance reasons, so copying a subset of
selected entries should be done instead).

Now, historically we did copy the files until we got into the
above problems.  The copyfiles mechanism is still present and
can still be used to copy the files if you want to do it this way.
It's not the default, because it's too inflexible and fragile,
but if you want to configure schroot this way, it's entirely
possible.


Regards,
Roger

-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux             http://people.debian.org/~rleigh/
 `. `'   Printing on GNU/Linux?       http://gutenprint.sourceforge.net/
   `-    GPG Public Key: 0x25BFB848   Please GPG sign your mail.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20101207/889ac569/attachment-0001.pgp>


More information about the Buildd-tools-devel mailing list