CVS: moonbase/libs/glibc BUILD,1.18,1.19

sofar at lunar-linux.org sofar at lunar-linux.org
Sat Sep 13 15:34:09 GMT 2003


Update of /var/cvs/lunar/moonbase/libs/glibc
In directory dbguin.lunar-linux.org:/home/sofar/tmp/moonbase/libs/glibc

Modified Files:
	BUILD 
Log Message:
reverting

Index: BUILD
===================================================================
RCS file: /var/cvs/lunar/moonbase/libs/glibc/BUILD,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- BUILD	13 Sep 2003 15:10:46 -0000	1.18
+++ BUILD	13 Sep 2003 15:33:55 -0000	1.19
@@ -126,4 +126,41 @@
 
   # Rebuild the ld cache
   rm -f /etc/ld.so.cache 2>/dev/null          &&
-  ldconfig                         
\ No newline at end of file
+  ldconfig                                    &&
+
+  # Remove the temporary libc
+  rm /lib/ld-lunar.so                         &&
+  rm /lib/libc-lunar.so                       &&
+  rm /lib/libdl-lunar.so                      &&
+  rm /lib/libm-lunar.so                       &&
+  rm /lib/librt-lunar.so                      &&
+  rm /lib/libpthread-lunar.so                 &&
+  rm /lib/libnss_files-lunar.so               &&
+  rm /lib/libutil-lunar.so                    &&
+  rm /lib/libnsl-lunar.so                     &&
+  rm /lib/libcrypt-lunar.so                   &&
+
+  # Generate locale info
+  unset   LD_PRELOAD                          &&
+  if  [  -z  "$GLIBC_LOCALES"  ];  then
+    cat  $SCRIPT_DIRECTORY/locales  |
+    while  read  LOCALE  DESCRIPTION;  do
+      INPUTFILE=`echo  $LOCALE  |  cut  -d /  -f1`
+        CHARMAP=`echo  $LOCALE  |  cut  -d /  -f2`
+      mkdir  -p  /usr/lib/locale/$INPUTFILE
+      echo "localedef  -i  $INPUTFILE  -f  $CHARMAP  $INPUTFILE"
+            localedef  -i  $INPUTFILE  -f  $CHARMAP  $INPUTFILE
+    done
+    true
+  else
+    for  LOCALE  in  $GLIBC_LOCALES;  do
+      INPUTFILE=`echo  $LOCALE  |  cut  -d /  -f1`
+        CHARMAP=`echo  $LOCALE  |  cut  -d /  -f2`
+      mkdir  -p  /usr/lib/locale/$INPUTFILE
+      echo "localedef  -i  $INPUTFILE  -f  $CHARMAP  $INPUTFILE"
+            localedef  -i  $INPUTFILE  -f  $CHARMAP  $INPUTFILE
+    done
+    true
+  fi
+  
+) > $C_FIFO 2>&1  &&  ldconfig




More information about the Lunar-commits mailing list