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

r2084 - glibc-package/trunk/debian/script.in



Author: aurel32
Date: 2007-04-17 09:36:45 +0000 (Tue, 17 Apr 2007)
New Revision: 2084

Modified:
   glibc-package/trunk/debian/script.in/nohwcap.sh
Log:
Improve the comments of script.in/nohwcap.sh


Modified: glibc-package/trunk/debian/script.in/nohwcap.sh
===================================================================
--- glibc-package/trunk/debian/script.in/nohwcap.sh	2007-04-17 06:23:03 UTC (rev 2083)
+++ glibc-package/trunk/debian/script.in/nohwcap.sh	2007-04-17 09:36:45 UTC (rev 2084)
@@ -1,6 +1,11 @@
     # Handle upgrades when libc-opt package has been installed.
+    # When a /etc/ld.so.nohwcap file exists, ld.so only use libraries
+    # from /lib, and ignore all optimised libraries. This file is
+    # inconditionaly created in the preinst script of libc.
  
     # Get the list of optimized packages for a given architecture
+    # Before removing a package from this list, make sure it appears
+    # in the Conflicts: line of libc.
     case $(dpkg --print-architecture) in
         i386)
             hwcappkgs="libc6-i686 libc6-xen"
@@ -14,8 +19,8 @@
     esac
  
     # We check the version between the current installed libc and
-    # all optimized packages. If they're unmatched, we keep /etc/ld.so.nohwcap
-    # file until all optimized packages are installed or removed.
+    # all optimized packages (on architectures where such packages
+    # exists).
     all_upgraded=yes
     if [ -n "$hwcappkgs" ]; then
         for pkg in $hwcappkgs ; do
@@ -25,6 +30,10 @@
             fi
         done
     fi
+
+    # If the versions of all optimized packages are the same as the libc
+    # one, we could remove /etc/ld.so.nohwcap. Otherwise, it will be removed
+    # when all optimized packages are upgraded or removed.
     if [ "$all_upgraded" = yes ] ; then
         rm -f /etc/ld.so.nohwcap
     fi



Reply to: