[Lunar-commits] <moonbase-core> glibc: version bumped to 2.16.
Florin Braescu
florin at lunar-linux.org
Sun Oct 7 15:07:43 CEST 2012
commit 38cbd43b3fae61b20e1a40262e3c62612045819a
Author: Florin Braescu <florin at lunar-linux.org>
Date: Sun, 12 Aug 2012 05:19:12 -0700
URL: https://github.com/lunar-linux/moonbase-core/commit/38cbd43b3fae61b20e1a40262e3c62612045819a
glibc: version bumped to 2.16.
For testing purposes. On my systems work both on 32 and 64 bits.
---
libs/glibc/BUILD | +41/-41
libs/glibc/BUILD.x86_64 | +43/-40
libs/glibc/CONFIGURE | +2/-2
libs/glibc/DETAILS | +9/-14
4 files changed, 95 insertions(+), 97 deletions(-)
--- a/libs/glibc/BUILD
+++ b/libs/glibc/BUILD
@@ -1,52 +1,49 @@
(
# The fortify compiler option cause the build to fail
- bad_flags -D_FORTIFY_SOURCE=2 &&
+ bad_flags -D_FORTIFY_SOURCE=2 &&
# 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 &&
+# sedit "s:/tmp:$SOURCE_DIRECTORY/tmp:g" scripts/test-installation.pl &&
+ mkdir -p $SOURCE_DIRECTORY/tmp &&
- export CC_OPTS=( Pipe ) &&
+ export CC_OPTS=( Pipe ) &&
- if module_installed kernel-headers; then
- KVER=`installed_version kernel-headers`
- else
- KVER=`installed_version kernel-headers-2.6`
- fi &&
+ KVER=`installed_version kernel-headers` &&
# There is no other option but nptl
- OPTS+=" --enable-add-ons=nptl,libidn --with-__thread --with-tls --disable-profile --enable-kernel=$KVER" &&
+ OPTS+=" --enable-add-ons=nptl,libidn --with-__thread --with-tls --disable-profile --enable-kernel=$KVER" &&
if [ -n "$MAKES" ] && [ "$MAKES" -gt 1 ] ; then
sedit "s/# PARALLELMFLAGS = -j 4/PARALLELMFLAGS = -j $MAKES/" Makefile.in
- fi &&
+ fi &&
- export CC=gcc &&
+ export CC=gcc &&
# Don't fully strip libc
if [[ "$LDFLAGS" == *-s* ]] ; then
STRIP=y
- fi &&
- unset LDFLAGS &&
+ fi &&
+ unset LDFLAGS &&
- patch_it $SOURCE2 1 &&
- patch_it $SOURCE3 1 &&
- patch_it $SOURCE4 1 &&
- patch_it $SOURCE5 1 &&
- patch_it $SOURCE6 1 &&
+ patch_it $SOURCE2 1 &&
+ patch_it $SOURCE3 1 &&
+ patch_it $SOURCE4 1 &&
# Fixes nvidia-settings and other apps segfault http://www.nvnews.net/vbulletin/showpost.php?p=2501574
- patch_it $SOURCE7 1 &&
+# patch_it $SOURCE5 1 &&
+
+# disable final test
+ sed -i '/test-installation.pl/d' Makefile &&
- sedit 's/^# \(.* := rpcinfo\)/\1/p' sunrpc/Makefile &&
- sedit 's/test-netdb tst-nss-test1/test-netdb/' nss/Makefile &&
- sedit '/libnss_test1/d' shlib-versions &&
+ sedit 's/^# \(.* := rpcinfo\)/\1/p' sunrpc/Makefile &&
+ sedit 's/test-netdb tst-nss-test1/test-netdb/' nss/Makefile &&
+ sedit '/libnss_test1/d' shlib-versions &&
- INSTALL_ROOT=$SOURCE_DIRECTORY/glibcroot &&
- mkdir -p $INSTALL_ROOT &&
- cd $INSTALL_ROOT &&
+ INSTALL_ROOT=$SOURCE_DIRECTORY/glibcroot &&
+ mkdir -p $INSTALL_ROOT &&
+ cd $INSTALL_ROOT &&
- OPTS+=" --with-headers=/usr/include" &&
+ OPTS+=" --with-headers=/usr/include" &&
../configure --prefix=/usr \
--infodir=/usr/share/info \
@@ -55,11 +52,14 @@
--without-gd \
--without-cvs \
--enable-shared \
+ --enable-obsolete-rpc \
--disable-multi-arch \
- $OPTS &&
+ --enable-bind-now \
+ --enable-stackguard-randomization \
+ $OPTS &&
# explicitly exit here since the following code unsets $?
- make || exit 1 &&
+ make || exit 1 &&
# Preserve the old glibc temporarily
LD=/lib/ld-linux.so.2 &&
@@ -86,7 +86,7 @@
*)
DL=/lib/libdl.so.2
;;
- esac &&
+ esac &&
cp $LD /lib/ld-lunar.so &&
cp $GLIBC /lib/libc-lunar.so &&
@@ -122,12 +122,12 @@
# Now optionally perform debug symbol stripping only
if [ "$STRIP" == "y" ] ; then
- for FN in ld-$VERSION.so \
- lib{anl,BrokenLocale,c,crypt,dl,m,nsl,util,pthread,resolv}-$VERSION.so \
- libnss_{compat,files,hesiod,nis,nisplus}-$VERSION.so \
+ for FN in ld-$MAJOR.so \
+ lib{anl,BrokenLocale,c,crypt,dl,m,nsl,util,pthread,resolv}-$MAJOR.so \
+ libnss_{compat,files,hesiod,nis,nisplus}-$MAJOR.so \
lib{memusage,pcprofile,SegFault,thread_db-1.0}.so ; do
strip -S /lib/$FN
- done &&
+ done &&
for FN in "/usr/lib/gconv/*.so" ; do
strip -S $FN
done
@@ -147,16 +147,16 @@
if [ -z "$GLIBC_LOCALES" ]; then
make localedata/install-locales || exit 1
else
- devoke_installwatch &&
+ devoke_installwatch &&
for LOCALE in $GLIBC_LOCALES; do
- INPUTFILE=$(echo $LOCALE | cut -d/ -f1 | sed -e 's:\..*$::g') &&
- OUTPUTFILE=$(echo $LOCALE | cut -d/ -f1) &&
- CHARMAP=$(echo $LOCALE | cut -d/ -f2) &&
- mkdir -p /usr/lib/locale/$OUTPUTFILE &&
- echo "localedef -i $INPUTFILE -f $CHARMAP $OUTPUTFILE" &&
+ INPUTFILE=$(echo $LOCALE | cut -d/ -f1 | sed -e 's:\..*$::g') &&
+ OUTPUTFILE=$(echo $LOCALE | cut -d/ -f1) &&
+ CHARMAP=$(echo $LOCALE | cut -d/ -f2) &&
+ mkdir -p /usr/lib/locale/$OUTPUTFILE &&
+ echo "localedef -i $INPUTFILE -f $CHARMAP $OUTPUTFILE" &&
localedef -i $INPUTFILE -f $CHARMAP $OUTPUTFILE
done
- invoke_installwatch &&
+ invoke_installwatch &&
touch /usr/lib/locale/locale-archive
fi
--- a/libs/glibc/BUILD.x86_64
+++ b/libs/glibc/BUILD.x86_64
@@ -1,52 +1,52 @@
(
# The fortify compiler option cause the build to fail
- bad_flags -D_FORTIFY_SOURCE=2 &&
+ bad_flags -D_FORTIFY_SOURCE=2 &&
# 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 &&
+# sedit "s:/tmp:$SOURCE_DIRECTORY/tmp:g" scripts/test-installation.pl &&
+ mkdir -p $SOURCE_DIRECTORY/tmp &&
- export CC_OPTS=( Pipe ) &&
+ export CC_OPTS=( Pipe ) &&
- if module_installed kernel-headers; then
- KVER=`installed_version kernel-headers`
- else
- KVER=`installed_version kernel-headers-2.6`
- fi &&
+ KVER=`installed_version kernel-headers` &&
# There is no other option but nptl
- OPTS+=" --enable-add-ons=nptl,libidn --with-__thread --with-tls --disable-profile --enable-kernel=$KVER" &&
+ OPTS+=" --enable-add-ons=nptl,libidn --with-__thread --with-tls --disable-profile --enable-kernel=$KVER" &&
if [ -n "$MAKES" ] && [ "$MAKES" -gt 1 ] ; then
sedit "s/# PARALLELMFLAGS = -j 4/PARALLELMFLAGS = -j $MAKES/" Makefile.in
- fi &&
+ fi &&
- export CC=gcc &&
+ export CC=gcc &&
# Don't fully strip libc
if [[ "$LDFLAGS" == *-s* ]] ; then
STRIP=y
- fi &&
- unset LDFLAGS &&
+ fi &&
+ unset LDFLAGS &&
- patch_it $SOURCE2 1 &&
- patch_it $SOURCE3 1 &&
- patch_it $SOURCE4 1 &&
- patch_it $SOURCE5 1 &&
- patch_it $SOURCE6 1 &&
+# fix the compile for x86_64
+ sedit "s:s_floor-c s_ceil-c s_floorf-c s_ceilf-c:s_floorf-c s_ceilf-c:g" sysdeps/x86_64/fpu/multiarch/Makefile &&
+
+ patch_it $SOURCE2 1 &&
+ patch_it $SOURCE3 1 &&
+ patch_it $SOURCE4 1 &&
# Fixes nvidia-settings and other apps segfault http://www.nvnews.net/vbulletin/showpost.php?p=2501574
- patch_it $SOURCE7 1 &&
+# patch_it $SOURCE5 1 &&
+
+# disable final test
+ sed -i '/test-installation.pl/d' Makefile &&
- sedit 's/^# \(.* := rpcinfo\)/\1/p' sunrpc/Makefile &&
- sedit 's/test-netdb tst-nss-test1/test-netdb/' nss/Makefile &&
- sedit '/libnss_test1/d' shlib-versions &&
+ sedit 's/^# \(.* := rpcinfo\)/\1/p' sunrpc/Makefile &&
+ sedit 's/test-netdb tst-nss-test1/test-netdb/' nss/Makefile &&
+ sedit '/libnss_test1/d' shlib-versions &&
- INSTALL_ROOT=$SOURCE_DIRECTORY/glibcroot &&
- mkdir -p $INSTALL_ROOT &&
- cd $INSTALL_ROOT &&
+ INSTALL_ROOT=$SOURCE_DIRECTORY/glibcroot &&
+ mkdir -p $INSTALL_ROOT &&
+ cd $INSTALL_ROOT &&
- OPTS+=" --with-headers=/usr/include" &&
+ OPTS+=" --with-headers=/usr/include" &&
../configure --prefix=/usr \
--infodir=/usr/share/info \
@@ -55,13 +55,16 @@
--without-gd \
--without-cvs \
--enable-shared \
+ --enable-obsolete-rpc \
--host=$BUILD \
--build=$BUILD \
--disable-multi-arch \
- $OPTS &&
+ --enable-bind-now \
+ --enable-stackguard-randomization \
+ $OPTS &&
# explicitly exit here since the following code unsets $?
- make || exit 1 &&
+ make || exit 1 &&
# Preserve the old glibc temporarily
LD=/lib/ld-linux-x86-64.so.2 &&
@@ -111,12 +114,12 @@
# Now optionally perform debug symbol stripping only
if [ "$STRIP" == "y" ] ; then
- for FN in ld-$VERSION.so \
- lib{anl,BrokenLocale,c,crypt,dl,m,nsl,util,pthread,resolv}-$VERSION.so \
- libnss_{compat,files,hesiod,nis,nisplus}-$VERSION.so \
+ for FN in ld-$MAJOR.so \
+ lib{anl,BrokenLocale,c,crypt,dl,m,nsl,util,pthread,resolv}-$MAJOR.so \
+ libnss_{compat,files,hesiod,nis,nisplus}-$MAJOR.so \
lib{memusage,pcprofile,SegFault,thread_db-1.0}.so ; do
strip -S /lib/$FN
- done &&
+ done &&
for FN in "/usr/lib/gconv/*.so" ; do
strip -S $FN
done
@@ -136,16 +139,16 @@
if [ -z "$GLIBC_LOCALES" ]; then
make localedata/install-locales || exit 1
else
- devoke_installwatch &&
+ devoke_installwatch &&
for LOCALE in $GLIBC_LOCALES; do
- INPUTFILE=$(echo $LOCALE | cut -d/ -f1 | sed -e 's:\..*$::g') &&
- OUTPUTFILE=$(echo $LOCALE | cut -d/ -f1) &&
- CHARMAP=$(echo $LOCALE | cut -d/ -f2) &&
- mkdir -p /usr/lib/locale/$OUTPUTFILE &&
- echo "localedef -i $INPUTFILE -f $CHARMAP $OUTPUTFILE" &&
+ INPUTFILE=$(echo $LOCALE | cut -d/ -f1 | sed -e 's:\..*$::g') &&
+ OUTPUTFILE=$(echo $LOCALE | cut -d/ -f1) &&
+ CHARMAP=$(echo $LOCALE | cut -d/ -f2) &&
+ mkdir -p /usr/lib/locale/$OUTPUTFILE &&
+ echo "localedef -i $INPUTFILE -f $CHARMAP $OUTPUTFILE" &&
localedef -i $INPUTFILE -f $CHARMAP $OUTPUTFILE
done
- invoke_installwatch &&
+ invoke_installwatch &&
touch /usr/lib/locale/locale-archive
fi
--- a/libs/glibc/CONFIGURE
+++ b/libs/glibc/CONFIGURE
@@ -9,7 +9,7 @@ FILELIST_FILE="$LOCALEDATA_DIR-files"
unpack_localedata() {
# Write the path of the localedata archive path into a file
- echo "${SOURCE/.tar.bz2/}/localedata" > $FILELIST_FILE &&
+ echo "${SOURCE/.tar.xz/}/localedata" > $FILELIST_FILE &&
message "Extracting locale data .. this might take a second .."
@@ -17,7 +17,7 @@ unpack_localedata() {
tar -C /tmp \
-T $FILELIST_FILE \
--strip-components=1 \
- -xjf $SOURCE_CACHE/$SOURCE
+ -xJf $SOURCE_CACHE/$SOURCE
}
remove_temporary_files() {
--- a/libs/glibc/DETAILS
+++ b/libs/glibc/DETAILS
@@ -1,12 +1,11 @@
MODULE=glibc
- VERSION=2.14.1
- SOURCE=$MODULE-$VERSION.tar.bz2
+ MAJOR=2.16
+ VERSION=$MAJOR.0
+ SOURCE=$MODULE-$VERSION.tar.xz
SOURCE2=$MODULE-2.11-no_timezones.patch.bz2
SOURCE3=$MODULE-2.11.1-__i686.patch.bz2
- SOURCE4=$MODULE-2.13-gcc_fix-1.patch.bz2
- SOURCE5=$MODULE-2.14.1-nss_test1.patch.bz2
- SOURCE6=$MODULE-2.14.1-rpc-restore.patch.bz2
- SOURCE7=$MODULE-2.14.1-fixes-1.patch
+ SOURCE4=$MODULE-2.15-fixes-1.patch.bz2
+ SOURCE5=$MODULE-2.14.1-fixes-1.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
@@ -14,18 +13,14 @@
SOURCE3_URL=$PATCH_URL
SOURCE4_URL=$PATCH_URL
SOURCE5_URL=$PATCH_URL
- SOURCE6_URL=$PATCH_URL
- SOURCE7_URL=http://www.linuxfromscratch.org/patches/lfs/7.0
- SOURCE_VFY=sha1:f1945eea78bb30563d33c9e6a5f6f97f374135b4
+ SOURCE_VFY=sha1:9d4fffc9c4ac93e7919e124fa38bb51dcaff5216
SOURCE2_VFY=sha1:fc5bf75815daeeef52f7558f27992e02c2cdc87d
SOURCE3_VFY=sha1:e3f36e2bb17e51e31035f2cd405d099c624d0e9e
- SOURCE4_VFY=sha1:2fa2f8b8920c5009a864cc0b0ec5fcccee4c84a5
- SOURCE5_VFY=sha1:4f22e3bd256652e21d6208666fef815021c1ecab
- SOURCE6_VFY=sha1:268509d8df9aa802747b84c4e46925fb65f30737
- SOURCE7_VFY=sha1:cc8fe170befc0a1fe56d6c18da1afc73c8c72b1b
+ SOURCE4_VFY=sha1:7e53ec5daaf29d13ff3e9a9b2450da1f93000add
+ SOURCE5_VFY=sha1:5e26fb8800dd974527b4b73443ddfe134beae7f9
WEB_SITE=http://www.gnu.org/software/libc
ENTERED=20010922
- UPDATED=20111114
+ UPDATED=20120712
SHORT="C library for use with GNU/Hurd and GNU/Linux"
PSAFE=no
More information about the Lunar-commits
mailing list