Package: pbuilder Version: 0.159 Severity: normal Tags: patch pbuilder copies the system's /etc/{resolv.conf,hosts,hostname} to the build chroot. This is wrong for pbuilder-user-mode-linux, since the host information is not necessary correct for the guest.
For example if the host has "nameserver 0.0.0.0" in /etc/resolv.conf, then the UML guest will have a broken network configuration. The following patch appears to fix it. --- /usr/lib/pbuilder/pbuilder-modules 2006-10-09 14:26:34.000000000 +0200 +++ /usr/lib/pbuilder/pbuilder-modules 2006-10-09 14:26:11.000000000 +0200 @@ -268,14 +268,16 @@ } function copy_local_configuration () { - echo " -> copying local configuration" - for a in hosts hostname resolv.conf; do - rm -f "$BUILDPLACE/etc/$a" - if [ ! -f "/etc/$a" ]; then - echo "E: /etc/$a does not exist, your setup is insane. fix it" >&2 - fi - cp $( readlink -f "/etc/$a" ) "$BUILDPLACE/etc/$a"; - done + if [ "${INTERNAL_BUILD_UML}" != "yes" ]; then + echo " -> copying local configuration" + for a in hosts hostname resolv.conf; do + rm -f "$BUILDPLACE/etc/$a" + if [ ! -f "/etc/$a" ]; then + echo "E: /etc/$a does not exist, your setup is insane. fix it" >&2 + fi + cp $( readlink -f "/etc/$a" ) "$BUILDPLACE/etc/$a"; + done + fi } function extractbuildplace () { -- System Information: Debian Release: testing/unstable APT prefers testing APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 'experimental') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.17-1-686 Locale: LANG=sv_SE.UTF-8, LC_CTYPE=sv_SE.UTF-8 (charmap=UTF-8) Versions of packages pbuilder depends on: ii cdebootstrap 0.3.11 Bootstrap a Debian system ii coreutils 5.97-5 The GNU core utilities ii debianutils 2.17 Miscellaneous utilities specific t ii debootstrap 0.3.3 Bootstrap a basic Debian system ii gcc 4:4.1.1-7 The GNU C compiler ii wget 1.10.2-2 retrieves files from the web Versions of packages pbuilder recommends: ii cowdancer 0.23 Copy-on-write directory tree utili ii devscripts 2.9.21 Scripts to make the life of a Debi ii fakeroot 1.5.10 Gives a fake root environment ii sudo 1.6.8p12-4 Provide limited super user privile -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]