[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

r2085 - in glibc-package/trunk/debian: . debhelper.in



Author: aurel32
Date: 2007-04-17 09:52:30 +0000 (Tue, 17 Apr 2007)
New Revision: 2085

Modified:
   glibc-package/trunk/debian/changelog
   glibc-package/trunk/debian/debhelper.in/libc.preinst
Log:
 * debhelper.in/libc.preinst: check for a non-dpkg owned libc6 in /lib/tls.
   Closes: #41918


Modified: glibc-package/trunk/debian/changelog
===================================================================
--- glibc-package/trunk/debian/changelog	2007-04-17 09:36:45 UTC (rev 2084)
+++ glibc-package/trunk/debian/changelog	2007-04-17 09:52:30 UTC (rev 2085)
@@ -26,10 +26,12 @@
     - debhelper.in/libc-otherbuild.postrm: replace the old code with NOHWCAP
     - debhelper.in/libc-otherbuild.postinst: ditto
     - debhelper.in/libc-otherbuild.preinst: remove
-  * debhelper.in/libc.install: remove /usr/bin/lddlibc4 from the libc6 
-    package. 
+  * debhelper.in/libc.install: remove /usr/bin/lddlibc4 from the libc6
+    package.
+  * debhelper.in/libc.preinst: check for a non-dpkg owned libc6 in /lib/tls.
+    Closes: #419189.
 
- -- Aurelien Jarno <aurel32@debian.org>  Tue, 17 Apr 2007 08:12:18 +0200
+ -- Aurelien Jarno <aurel32@debian.org>  Tue, 17 Apr 2007 11:50:13 +0200
 
 glibc (2.5-2) unstable; urgency=low
 

Modified: glibc-package/trunk/debian/debhelper.in/libc.preinst
===================================================================
--- glibc-package/trunk/debian/debhelper.in/libc.preinst	2007-04-17 09:36:45 UTC (rev 2084)
+++ glibc-package/trunk/debian/debhelper.in/libc.preinst	2007-04-17 09:52:30 UTC (rev 2085)
@@ -184,6 +184,15 @@
       exit 1
     fi
   fi
+  for i in libc.so.0.1 libc.so.6 libc.so.6.1 ; do
+    if [ -e /lib/tls/$i ] && ! grep -q /lib/tls/$i /var/lib/dpkg/info/LIBC.list ; then
+      echo
+      echo "A non-dpkg owned copy of the C library was found in /lib/tls."
+      echo "It is not safe to upgrade the C library in this situation;"
+      echo "please remove that copy of the C library and try again."
+      exit 1
+    fi
+  done
 fi
 
 if [ "$1" != abort-upgrade ] && [ "`uname -s`" = Linux ]



Reply to: