r2138 - in glibc-package/trunk/debian: . debhelper.in
Author: aurel32
Date: 2007-04-26 12:31:42 +0000 (Thu, 26 Apr 2007)
New Revision: 2138
Modified:
glibc-package/trunk/debian/changelog
glibc-package/trunk/debian/debhelper.in/libc.preinst
Log:
* debian/debhelper.in/libc.preinst: add a check for silly users having
LD_ASSUME_KERNEL=2.4.1 in their /etc/profile, ~/.bashrc or shell
init script.
Modified: glibc-package/trunk/debian/changelog
===================================================================
--- glibc-package/trunk/debian/changelog 2007-04-25 23:59:19 UTC (rev 2137)
+++ glibc-package/trunk/debian/changelog 2007-04-26 12:31:42 UTC (rev 2138)
@@ -23,6 +23,9 @@
* debian/control.in/main: drop build-depends on libssp32 and libssp64,
build-depends on gcc-4.1 (>= 4.1.2-4) instead. Closes: #413370.
* debian/sysdeps/hppa.mk: switch back to gcc-4.1.
+ * debian/debhelper.in/libc.preinst: add a check for silly users having
+ LD_ASSUME_KERNEL=2.4.1 in their /etc/profile, ~/.bashrc or shell
+ init script.
[ Michael Banck ]
* patches/hurd-i386/local-dl-dynamic-weak.diff: new patch (turn
@@ -35,7 +38,7 @@
+ also invalidate hosts on reload.
+ drop oldies (nscd_nischeck things, does not exists anymore).
- -- Aurelien Jarno <aurel32@debian.org> Thu, 26 Apr 2007 01:56:41 +0200
+ -- Aurelien Jarno <aurel32@debian.org> Thu, 26 Apr 2007 14:31:21 +0200
glibc (2.5-4) unstable; urgency=low
Modified: glibc-package/trunk/debian/debhelper.in/libc.preinst
===================================================================
--- glibc-package/trunk/debian/debhelper.in/libc.preinst 2007-04-25 23:59:19 UTC (rev 2137)
+++ glibc-package/trunk/debian/debhelper.in/libc.preinst 2007-04-26 12:31:42 UTC (rev 2138)
@@ -193,6 +193,16 @@
exit 1
fi
done
+ if [ -n "$LD_ASSUME_KERNEL" ] ; then
+ if dpkg --compare-versions "$LD_ASSUME_KERNEL" le "2.6.1"; then
+ echo
+ echo "POSIX threads library NPTL requires kernel version 2.6.1"
+ echo "or later. It appears that LD_ASSUME_KERNEL is set to $LD_ASSUME_KERNEL."
+ echo "It is not safe to upgrade the C library in this situation;"
+ echo "Please unset this environment variable and try again."
+ exit 1
+ fi
+ fi
fi
if [ "$1" != abort-upgrade ] && [ "`uname -s`" = Linux ]
Reply to: