[Bug 764096] Re: DNS hostname lookups fail in chroot after natty upgrade

Kenyon Ralph kenyon at kenyonralph.com
Mon May 2 00:10:57 UTC 2011


On 2011-05-01T07:13:14-0000, Tom <764096 at bugs.launchpad.net> wrote:
> I found it!
> 
> /etc/init.d/postfix:
> 
> replace these two lines:
> 
> rm -f lib/libnss_*so*
> tar cf - /lib/libnss_*so* 2>/dev/null |tar xf -
> 
> with these two:
> 
> rm -f lib/x86_64-linux-gnu/libnss_*so*
> tar cf - /lib/x86_64-linux-gnu/libnss_*so* 2>/dev/null |tar xf -
> 
> My fix is specific for x64 architecture, change it if you use x86.
> It should be possible to create architecture independent fix, but I don't know how.

Nice! On my i386 natty machine, this is the pattern:
/lib/i386-linux-gnu/libnss_*so*

I think the architecture independent fix would include a call to
dpkg-architecture. dpkg-architecture returns this on my Ubuntu natty
system:

DEB_BUILD_ARCH=i386
DEB_BUILD_ARCH_OS=linux
DEB_BUILD_ARCH_CPU=i386
DEB_BUILD_ARCH_BITS=32
DEB_BUILD_ARCH_ENDIAN=little
DEB_BUILD_GNU_CPU=i686
DEB_BUILD_GNU_SYSTEM=linux-gnu
DEB_BUILD_GNU_TYPE=i686-linux-gnu
DEB_BUILD_MULTIARCH=i386-linux-gnu
DEB_HOST_ARCH=i386
DEB_HOST_ARCH_OS=linux
DEB_HOST_ARCH_CPU=i386
DEB_HOST_ARCH_BITS=32
DEB_HOST_ARCH_ENDIAN=little
DEB_HOST_GNU_CPU=i686
DEB_HOST_GNU_SYSTEM=linux-gnu
DEB_HOST_GNU_TYPE=i686-linux-gnu
DEB_HOST_MULTIARCH=i386-linux-gnu

So DEB_HOST_MULTIARCH would be correct. But my Debian squeeze x86_64
system doesn't have MULTIARCH variables, this is its output:

DEB_BUILD_ARCH=amd64
DEB_BUILD_ARCH_OS=linux
DEB_BUILD_ARCH_CPU=amd64
DEB_BUILD_ARCH_BITS=64
DEB_BUILD_ARCH_ENDIAN=little
DEB_BUILD_GNU_CPU=x86_64
DEB_BUILD_GNU_SYSTEM=linux-gnu
DEB_BUILD_GNU_TYPE=x86_64-linux-gnu
DEB_HOST_ARCH=amd64
DEB_HOST_ARCH_OS=linux
DEB_HOST_ARCH_CPU=amd64
DEB_HOST_ARCH_BITS=64
DEB_HOST_ARCH_ENDIAN=little
DEB_HOST_GNU_CPU=x86_64
DEB_HOST_GNU_SYSTEM=linux-gnu
DEB_HOST_GNU_TYPE=x86_64-linux-gnu

I guess this change will have to go into the Debian package too, since
Debian will have multiarch support eventually:
http://wiki.debian.org/Multiarch

-- 
Kenyon Ralph

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to postfix in Ubuntu.
https://bugs.launchpad.net/bugs/764096

Title:
  DNS hostname lookups fail in chroot after natty upgrade



More information about the Ubuntu-server-bugs mailing list