[Lunar-commits] <moonbase> glibc: version bumped to 2.11.1.

Florin Braescu florin at lunar-linux.org
Mon May 17 21:01:53 CEST 2010


commit 49934d702058f12efdb5acd871b84cf8d0762237
Author: Florin Braescu <florin at lunar-linux.org>
Date:   Mon May 17 22:01:53 2010 +0300

    glibc: version bumped to 2.11.1.
    
    Changes:
    * New interfaces: execvpe, pthread_sigqueue, mkstemps, mkstemps64, mkostemps,
      mkostemps64.
    
    * Checking version of longjmp added that fails if an uninitialized stack
      frame would be created.
    
    * STT_GNU_IFUNC is now supported in static executables.
    
    * New optimized string functions for x86-64: strstr, strcasestr, memcmp,
      strcspn, strpbrk, strspn, strcpy, stpcpy, strncpy, strcmp (SSE2, SSE4.2),
      strncmp (SSE2, SSE4.2), strchr (SSE4.2), strrchr (SSE4.2).
      strlen, rawmemchr, strcmp (SSSE3), strncmp (SSSE3).
    
    * New optimized string functions for x86: strlen, strcspn, strspn, strpbrk,
      strstr, strcasestr.
    
    * Support for fma instruction in AVX on x86-64.
    
    * AVX support in x86-64 auditing support in ld.so.
    
    * STB_GNU_UNIQUE support added.
    
    * Implement second fallback mode for optimized DNS lookup for even more
      broken environments. If two requests from the same port are not
      handled correctly close the socket and open a new one before sending
      the second request. The 'single-request-reopen' option in /etc/resolv.conf
      can be used to select this mode right away, instead of rediscovering the
      necessity is every process again.
    
    * New resolver flag RES_USE_DNSSEC to enable use of verified lookup.
    
    * Optimized iconv conversions for S390x.
    
    * Using condvars with PI mutexes is now more efficient due to kernel
      support for requeueing to PI futexes. NPTL support added for x86-64.
    
    * New locales: ps_AF, my_MM
---
 libs/glibc/BUILD        |   48 ++++++++++++++++++++--------------------
 libs/glibc/BUILD.x86_64 |   56 +++++++++++++++++++++++-----------------------
 libs/glibc/DETAILS      |   22 ++++++-----------
 libs/glibc/PRE_BUILD    |    4 ---
 4 files changed, 60 insertions(+), 70 deletions(-)

diff --git a/libs/glibc/BUILD b/libs/glibc/BUILD
index a16752e..b7d72eb 100644
--- a/libs/glibc/BUILD
+++ b/libs/glibc/BUILD
@@ -1,33 +1,33 @@
 (
- 
+
 # This sedit takes care of Bug Report 398 submitted by Striker.
   sedit "s:/tmp:$SOURCE_DIRECTORY/tmp:g" scripts/test-installation.pl &&
   mkdir -p $SOURCE_DIRECTORY/tmp &&
- 
+
   # There is no other option but nptl
   OPTS+=" --enable-add-ons=nptl,libidn --with-__thread --with-tls" &&
- 
+
   if [ -n "$MAKES" ] && [ "$MAKES" -gt 1 ] ; then
     sedit "s/# PARALLELMFLAGS = -j 4/PARALLELMFLAGS = -j $MAKES/" Makefile.in
   fi &&
- 
+
   export CC=gcc &&
- 
+
   # Don't fully strip libc
   if [[ "$LDFLAGS" == *-s* ]] ; then
     STRIP=y
   fi &&
   unset LDFLAGS &&
- 
+
+  patch_it $SOURCE2 1 &&
   patch_it $SOURCE3 1 &&
-  patch_it $SOURCE4 1 &&
- 
+
   INSTALL_ROOT=$SOURCE_DIRECTORY/glibcroot &&
   mkdir -p $INSTALL_ROOT &&
   cd $INSTALL_ROOT &&
- 
+
   OPTS+=" --with-headers=/usr/include" &&
- 
+
   ../configure --prefix=/usr              \
                --infodir=/usr/share/info  \
                --mandir=/usr/share/man    \
@@ -36,10 +36,10 @@
                --without-cvs              \
                --enable-shared            \
                $OPTS                     &&
- 
+
   # explicitly exit here since the following code unsets $?
   make || exit 1 &&
- 
+
   # Preserve the old glibc temporarily
   LD=/lib/ld-linux.so.2  &&
   GLIBC=/lib/libc.so.6   &&
@@ -51,7 +51,7 @@
   UTIL=/lib/libutil.so.1        &&
   NSL=/lib/libnsl.so.1          &&
   CRYPT=/lib/libcrypt.so.1      &&
- 
+
   case "`arch`" in
     alpha)
           GLIBC=/lib/libc.so.6.1  &&
@@ -66,7 +66,7 @@
           DL=/lib/libdl.so.2
           ;;
   esac &&
- 
+
   cp $LD /lib/ld-lunar.so               &&
   cp $GLIBC /lib/libc-lunar.so          &&
   cp $DL /lib/libdl-lunar.so            &&
@@ -77,7 +77,7 @@
   cp $UTIL /lib/libutil-lunar.so        &&
   cp $NSL /lib/libnsl-lunar.so          &&
   cp $CRYPT /lib/libcrypt-lunar.so      &&
- 
+
   # Setup links for libraries
   sln /lib/ld-lunar.so $LD               &&
   sln /lib/libc-lunar.so $GLIBC          &&
@@ -89,16 +89,16 @@
   sln /lib/libutil-lunar.so $UTIL        &&
   sln /lib/libnsl-lunar.so $NSL          &&
   sln /lib/libcrypt-lunar.so $CRYPT      &&
- 
+
   # clean hack to make sure gnu/stubs.h gets refreshed
   rm -f /usr/include/gnu/stubs.h &&
- 
+
   # This removes the old glibc
   prepare_install &&
- 
+
   # And now we install the new
   make install &&
- 
+
   # Now optionally perform debug symbol stripping only
   if [ "$STRIP" == "y" ] ; then
     for FN in ld-$VERSION.so \
@@ -111,17 +111,17 @@
       strip -S $FN
     done
   fi  &&
- 
+
   # Added a symlink for ash and others
   ln -sf /usr/lib/libbsd-compat.a /usr/lib/libbsd.a  &&
- 
+
   # Rebuild the ld cache
   rm -f /etc/ld.so.cache 2>/dev/null  &&
   ldconfig                            &&
- 
+
   # Remove the temporary libc
   rm /lib/{ld,lib{c,dl,m,rt,pthread,nss_files,util,nsl,crypt}}-lunar.so  &&
- 
+
   # Generate locale info
   if [ -z "$GLIBC_LOCALES" ]; then
     make localedata/install-locales || exit 1
@@ -138,5 +138,5 @@
     invoke_installwatch &&
     touch /usr/lib/locale/locale-archive
   fi
- 
+
 ) > $C_FIFO 2>&1 && ldconfig
diff --git a/libs/glibc/BUILD.x86_64 b/libs/glibc/BUILD.x86_64
index fcf1186..8528eac 100644
--- a/libs/glibc/BUILD.x86_64
+++ b/libs/glibc/BUILD.x86_64
@@ -1,33 +1,33 @@
 (
- 
+
 # This sedit takes care of Bug Report 398 submitted by Striker.
   sedit "s:/tmp:$SOURCE_DIRECTORY/tmp:g" scripts/test-installation.pl &&
   mkdir -p $SOURCE_DIRECTORY/tmp &&
- 
+
   # There is no other option but nptl
   OPTS+=" --enable-add-ons=nptl,libidn --with-__thread --with-tls" &&
- 
+
   if [ -n "$MAKES" ] && [ "$MAKES" -gt 1 ] ; then
     sedit "s/# PARALLELMFLAGS = -j 4/PARALLELMFLAGS = -j $MAKES/" Makefile.in
   fi &&
- 
+
   export CC=gcc &&
- 
+
   # Don't fully strip libc
   if [[ "$LDFLAGS" == *-s* ]] ; then
     STRIP=y
   fi &&
   unset LDFLAGS &&
- 
+
+  patch_it $SOURCE2 1 &&
   patch_it $SOURCE3 1 &&
-  patch_it $SOURCE4 1 &&
- 
+
   INSTALL_ROOT=$SOURCE_DIRECTORY/glibcroot &&
   mkdir -p $INSTALL_ROOT &&
   cd $INSTALL_ROOT &&
- 
+
   OPTS+=" --with-headers=/usr/include" &&
- 
+
   ../configure --prefix=/usr              \
                --infodir=/usr/share/info  \
                --mandir=/usr/share/man    \
@@ -36,12 +36,12 @@
                --without-cvs              \
                --enable-shared            \
                --host=$BUILD              \
-	       --build=$BUILD             \
+               --build=$BUILD             \
                $OPTS                     &&
- 
+
   # explicitly exit here since the following code unsets $?
   make || exit 1 &&
- 
+
   # Preserve the old glibc temporarily
   LD=/lib/ld-linux.so.2  &&
   LD=/lib/ld-linux-x86-64.so.2  && 
@@ -54,9 +54,9 @@
   UTIL=/lib/libutil.so.1        &&
   NSL=/lib/libnsl.so.1          &&
   CRYPT=/lib/libcrypt.so.1      &&
- 
+
   DL=/lib/libdl.so.2  &&
- 
+
   cp $LD /lib/ld-lunar.so               &&
   cp $GLIBC /lib/libc-lunar.so          &&
   cp $DL /lib/libdl-lunar.so            &&
@@ -67,7 +67,7 @@
   cp $UTIL /lib/libutil-lunar.so        &&
   cp $NSL /lib/libnsl-lunar.so          &&
   cp $CRYPT /lib/libcrypt-lunar.so      &&
- 
+
   # Setup links for libraries
   sln /lib/ld-lunar.so $LD               &&
   sln /lib/libc-lunar.so $GLIBC          &&
@@ -79,16 +79,16 @@
   sln /lib/libutil-lunar.so $UTIL        &&
   sln /lib/libnsl-lunar.so $NSL          &&
   sln /lib/libcrypt-lunar.so $CRYPT      &&
- 
+
   # clean hack to make sure gnu/stubs.h gets refreshed
-  rm -f /usr/include/gnu/stubs.h &&
- 
+  rm -f /usr/include/gnu/stubs.h  &&
+
   # This removes the old glibc
-  prepare_install &&
- 
+  prepare_install  &&
+
   # And now we install the new
-  make install &&
- 
+  make install  &&
+
   # Now optionally perform debug symbol stripping only
   if [ "$STRIP" == "y" ] ; then
     for FN in ld-$VERSION.so \
@@ -101,17 +101,17 @@
       strip -S $FN
     done
   fi  &&
- 
+
   # Added a symlink for ash and others
   ln -sf /usr/lib/libbsd-compat.a /usr/lib/libbsd.a  &&
- 
+
   # Rebuild the ld cache
   rm -f /etc/ld.so.cache 2>/dev/null  &&
   ldconfig                            &&
- 
+
   # Remove the temporary libc
   rm /lib/{ld,lib{c,dl,m,rt,pthread,nss_files,util,nsl,crypt}}-lunar.so  &&
- 
+
   # Generate locale info
   if [ -z "$GLIBC_LOCALES" ]; then
     make localedata/install-locales || exit 1
@@ -128,5 +128,5 @@
     invoke_installwatch &&
     touch /usr/lib/locale/locale-archive
   fi
- 
+
 ) > $C_FIFO 2>&1 && ldconfig
diff --git a/libs/glibc/DETAILS b/libs/glibc/DETAILS
index d48d7e2..c67e4a5 100644
--- a/libs/glibc/DETAILS
+++ b/libs/glibc/DETAILS
@@ -1,30 +1,24 @@
           MODULE=glibc
-         VERSION=2.10.1
+         VERSION=2.11.1
           SOURCE=$MODULE-$VERSION.tar.bz2
-         SOURCE2=$MODULE-libidn-$VERSION.tar.bz2
-         SOURCE3=$MODULE-$VERSION-no_timezones.patch
-         SOURCE4=$MODULE-$VERSION-binutils-2.20.x.patch
+         SOURCE2=$MODULE-2.11-no_timezones.patch
+         SOURCE3=$MODULE-$VERSION-__i686.patch.bz2
    SOURCE_URL[0]=$GNU_URL/$MODULE
    SOURCE_URL[1]=ftp://ftp.gnu.org/pub/gnu/$MODULE
    SOURCE_URL[2]=http://www.mirrorservice.org/sites/ftp.gnu.org/gnu/glibc
-  SOURCE2_URL[0]=$GNU_URL/$MODULE
-  SOURCE2_URL[1]=ftp://ftp.gnu.org/pub/gnu/$MODULE
-  SOURCE2_URL[2]=http://www.mirrorservice.org/sites/ftp.gnu.org/gnu/glibc
+     SOURCE2_URL=$PATCH_URL
      SOURCE3_URL=$PATCH_URL
-     SOURCE4_URL=$PATCH_URL
-      SOURCE_VFY=sha1:cb478cf9d6e2c905a1a4f4a2cae44a320b8dc50b
-     SOURCE2_VFY=sha1:50c1ac0d9ddff6eb83f75aa1c4cb84ba6fffa0cd
-     SOURCE3_VFY=sha1:9163df279f04efcc37a146115534e9fd0f9a19c5
-     SOURCE4_VFY=sha1:0de1d0fa026f22131832fb74e6fc6866401a27c3
+      SOURCE_VFY=sha1:29f492ae56fd4ef79f32b45c29c0edb6aa8a35a7
+     SOURCE2_VFY=sha1:fc5bf75815daeeef52f7558f27992e02c2cdc87d
+     SOURCE3_VFY=sha1:e3f36e2bb17e51e31035f2cd405d099c624d0e9e
         WEB_SITE=http://www.gnu.org/software/libc
          ENTERED=20010922
-         UPDATED=20090923
+         UPDATED=20100517
            SHORT="C library for use with GNU/Hurd and GNU/Linux"
            PSAFE=no
 
 cat << EOF
 glibc - Library for use with GNU/Hurd and GNU/Linux.
-
 GNU C Library is one of the most important components of the GNU Hurd
 and most modern Linux distributions. It is used by almost all C programs
 and provides the most essential program interface.
diff --git a/libs/glibc/PRE_BUILD b/libs/glibc/PRE_BUILD
deleted file mode 100644
index 1daa4b3..0000000
--- a/libs/glibc/PRE_BUILD
+++ /dev/null
@@ -1,4 +0,0 @@
-default_pre_build          &&
-cd      $SOURCE_DIRECTORY  &&
-unpack  $SOURCE2           &&
-mv glibc-libidn-$VERSION libidn


More information about the Lunar-commits mailing list