On 2011-05-01T07:13:14-0000, Tom <email address hidden> 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:
On 2011-05- 01T07:13: 14-0000, Tom <email address hidden> wrote: d/postfix: 64-linux- gnu/libnss_ *so* 64-linux- gnu/libnss_ *so* 2>/dev/null |tar xf -
> I found it!
>
> /etc/init.
>
> 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_
> tar cf - /lib/x86_
>
> 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: linux-gnu/ libnss_ *so*
/lib/i386-
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 ARCH_OS= linux ARCH_CPU= i386 ARCH_BITS= 32 ARCH_ENDIAN= little GNU_CPU= i686 GNU_SYSTEM= linux-gnu GNU_TYPE= i686-linux- gnu MULTIARCH= i386-linux- gnu ARCH_OS= linux ARCH_CPU= i386 ARCH_BITS= 32 ARCH_ENDIAN= little GNU_CPU= i686 GNU_SYSTEM= linux-gnu GNU_TYPE= i686-linux- gnu MULTIARCH= i386-linux- gnu
DEB_BUILD_
DEB_BUILD_
DEB_BUILD_
DEB_BUILD_
DEB_BUILD_
DEB_BUILD_
DEB_BUILD_
DEB_BUILD_
DEB_HOST_ARCH=i386
DEB_HOST_
DEB_HOST_
DEB_HOST_
DEB_HOST_
DEB_HOST_
DEB_HOST_
DEB_HOST_
DEB_HOST_
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 ARCH_OS= linux ARCH_CPU= amd64 ARCH_BITS= 64 ARCH_ENDIAN= little GNU_CPU= x86_64 GNU_SYSTEM= linux-gnu GNU_TYPE= x86_64- linux-gnu ARCH_OS= linux ARCH_CPU= amd64 ARCH_BITS= 64 ARCH_ENDIAN= little GNU_CPU= x86_64 GNU_SYSTEM= linux-gnu GNU_TYPE= x86_64- linux-gnu
DEB_BUILD_
DEB_BUILD_
DEB_BUILD_
DEB_BUILD_
DEB_BUILD_
DEB_BUILD_
DEB_BUILD_
DEB_HOST_ARCH=amd64
DEB_HOST_
DEB_HOST_
DEB_HOST_
DEB_HOST_
DEB_HOST_
DEB_HOST_
DEB_HOST_
I guess this change will have to go into the Debian package too, since wiki.debian. org/Multiarch
Debian will have multiarch support eventually:
http://
--
Kenyon Ralph