Package: postfix
Version: 2.8.2-1
Severity: normal
Tags: patch
User: [email protected]
Usertags: multiarch
Hi LaMont,
I've applied the following patch to postfix in Ubuntu to address Ubuntu bug
#764096; a number of bugs have been reported in natty as a result of the
migration to multiarch, because postfix uses a chroot by default but doesn't
know to look in the multiarch directories for nss modules that it needs to
copy. This patch addresses this in a rather straightforward manner, by just
using an additional glob to pick up nss modules from any multiarch
directories.
The changelog for this upload is:
* debian/init.d: copy both /lib/libnss_*.so and /lib/*/libnss_*.so to the
chroot; this is overbroad since it will pick up NSS modules for
architectures other than our own, but avoids a runtime dep on dpkg-dev
or build-time munging of the init script. Thanks to Kevin Sumner for
the patch. LP: #764096.
Since multiarch will land in unstable soon, please consider including this
patch in Debian at your earliest convenience.
Thanks,
--
Steve Langasek Give me a lever long enough and a Free OS
Debian Developer to set it on, and I can move the world.
Ubuntu Developer http://www.debian.org/
[email protected] [email protected]
diff -u postfix-2.8.2/debian/init.d postfix-2.8.2/debian/init.d
--- postfix-2.8.2/debian/init.d
+++ postfix-2.8.2/debian/init.d
@@ -139,8 +139,14 @@
rm -f usr/lib/zoneinfo/localtime
mkdir -p usr/lib/zoneinfo
ln -sf /etc/localtime usr/lib/zoneinfo/localtime
- rm -f lib/libnss_*so*
- tar cf - /lib/libnss_*so* 2>/dev/null |tar xf -
+ if [ "$(echo /lib/libnss_*so*)" != "/lib/libnss_*so" ]; then
+ rm -f lib/libnss_*so*
+ tar cf - /lib/libnss_*so* 2>/dev/null |tar xf -
+ fi
+ if [ "$(echo /lib/*/libnss_*so*)" != "/lib/*/libnss_*so" ]; then
+ rm -f lib/*/libnss_*so*
+ tar cf - /lib/*/libnss_*so* 2>/dev/null |tar xf -
+ fi
umask $oldumask
fi