[Lunar-commits] r23098 - in moonbase/branches/crater/libs: . glibc-new
Moritz Heiber
moe at lunar-linux.org
Thu Feb 1 18:23:56 CET 2007
Author: moe
Date: 2007-02-01 18:23:56 +0100 (Thu, 01 Feb 2007)
New Revision: 23098
Added:
moonbase/branches/crater/libs/glibc-new/
moonbase/branches/crater/libs/glibc-new/BUILD
moonbase/branches/crater/libs/glibc-new/BUILD.sparc64
moonbase/branches/crater/libs/glibc-new/BUILD.x86_64
moonbase/branches/crater/libs/glibc-new/CONFIGURE
moonbase/branches/crater/libs/glibc-new/DEPENDS
moonbase/branches/crater/libs/glibc-new/DETAILS
moonbase/branches/crater/libs/glibc-new/POST_INSTALL
moonbase/branches/crater/libs/glibc-new/PRE_BUILD
Log:
well, this is a first try. I'm not sure this is going to be the new
glibc module .. but its a start.
Added: moonbase/branches/crater/libs/glibc-new/BUILD
===================================================================
--- moonbase/branches/crater/libs/glibc-new/BUILD (rev 0)
+++ moonbase/branches/crater/libs/glibc-new/BUILD 2007-02-01 17:23:56 UTC (rev 23098)
@@ -0,0 +1,168 @@
+(
+
+ if [ -n "$FORCE_THREADS" ]; then
+ if [ "$FORCE_THREADS" != "nptl" -a "$FORCE_THREADS" != "linuxthreads" ]; then
+ message "${PROBLEM_COLOR}Bad thread architecture: \"$FORCE_THREADS\", must be"
+ message "\"nptl\" or \"linuxthreads\"${DEFAULT_COLOR}"
+ exit 1
+ fi
+ if ! query "Force thread type to $FORCE_THREADS ?" n ; then
+ message "${PROBLEM_COLOR}If you don't know what you're doing, then I don't know either!"
+ message "Don't set FORCE_THREADS and try again!${DEFAULT_COLOR}"
+ exit 1
+ else
+ THREADS=$FORCE_THREADS
+ fi
+ else
+ case $(getconf GNU_LIBPTHREAD_VERSION) in
+ NPTL*)
+ THREADS=nptl
+ ;;
+ linux*)
+ THREADS=linuxthreads
+ ;;
+ *)
+ message "${PROBLEM_COLOR}Cannot detect threading type of your glibc - this is very bad"
+ message "Please fix your glibc library before continuing.${DEFAULT_COLOR}"
+ exit 1
+ esac
+ fi
+
+ case $THREADS in
+ nptl) OPTS="$OPTS --enable-add-ons=$THREADS --with-__thread --with-tls" ;;
+ linuxthreads) OPTS="$OPTS --enable-add-ons=$THREADS --without-__thread" ;;
+ esac
+
+ if [ -n "$MAKES" ] && [ "$MAKES" -gt 1 ] ; then
+ sedit "s/# PARALLELMFLAGS = -j 4/PARALLELMFLAGS = -j $MAKES/" Makefile.in
+ fi
+
+ # Don't allow too much damage
+ unset CFLAGS CXXFLAGS CPPFLAGS LD_LIBRARY_PATH
+ export CC=gcc
+
+ # Don't fully strip libc
+ if [[ "$LDFLAGS" == *-s* ]] ; then
+ STRIP=y
+ fi
+ unset LDFLAGS
+
+ INSTALL_ROOT=$SOURCE_DIRECTORY/glibcroot &&
+ mkdir -p $INSTALL_ROOT &&
+ cd $INSTALL_ROOT
+
+ if module_installed kernel-headers-2.6 ; then
+ OPTS="$OPTS --with-headers=/usr/include"
+ else
+ OPTS="$OPTS --with-headers=/usr/src/linux/include"
+ fi
+
+ ../configure --prefix=/usr \
+ --infodir=/usr/share/info \
+ --mandir=/usr/share/man \
+ --with-elf \
+ --with-gd=no \
+ --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
+ DL=/lib/libdl.so.2
+ M=/lib/libm.so.6
+ RT=/lib/librt.so.1
+ PTHREAD=/lib/libpthread.so.0
+ NSS=/lib/libnss_files.so.2
+ 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
+ DL=/lib/libdl.so.2.1
+ M=/lib/libm.so.6.1
+ ;;
+ ppc)
+ LD=/lib/ld.so.1
+ DL=/lib/libdl.so.2
+ ;;
+ *)
+ DL=/lib/libdl.so.2
+ ;;
+ esac
+
+ cp $LD /lib/ld-lunar.so &&
+ cp $GLIBC /lib/libc-lunar.so &&
+ cp $DL /lib/libdl-lunar.so &&
+ cp $M /lib/libm-lunar.so &&
+ cp $RT /lib/librt-lunar.so &&
+ cp $PTHREAD /lib/libpthread-lunar.so &&
+ cp $NSS /lib/libnss_files-lunar.so &&
+ 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 &&
+ sln /lib/libdl-lunar.so $DL &&
+ sln /lib/libm-lunar.so $M &&
+ sln /lib/librt-lunar.so $RT &&
+ sln /lib/libpthread-lunar.so $PTHREAD &&
+ sln /lib/libnss_files-lunar.so $NSS &&
+ 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 \
+ lib{anl,BrokenLocale,c,crypt,dl,m,nsl,util,pthread,resolv}-$VERSION.so \
+ libnss_{compat,files,hesiod,nis,nisplus}-$VERSION.so \
+ lib{memusage,pcprofile,SegFault,thread_db-1.0}.so ; do
+ strip -S /lib/$FN
+ done
+ for FN in "/usr/lib/gconv/*.so" ; do
+ 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
+ else
+ devoke_installwatch &&
+ 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
+ invoke_installwatch &&
+ touch /usr/lib/locale/locale-archive
+ fi
+
+) > $C_FIFO 2>&1 && ldconfig
Added: moonbase/branches/crater/libs/glibc-new/BUILD.sparc64
===================================================================
--- moonbase/branches/crater/libs/glibc-new/BUILD.sparc64 (rev 0)
+++ moonbase/branches/crater/libs/glibc-new/BUILD.sparc64 2007-02-01 17:23:56 UTC (rev 23098)
@@ -0,0 +1,128 @@
+(
+
+ if [ -n "$MAKES" ] && [ "$MAKES" -gt 1 ] ; then
+ sedit "s/# PARALLELMFLAGS = -j 4/PARALLELMFLAGS = -j $MAKES/" Makefile.in
+ fi
+
+ # Correct the asm symlink in kernel source, otherwise glibc will NOT build correctly
+ cd /usr/src/linux/include && rm asm &&
+ ln -sf asm-sparc asm &&
+
+ # Don't allow too much damage
+ unset CFLAGS CXXFLAGS CPPFLAGS LD_LIBRARY_PATH
+ export CC=gcc
+
+ # Don't fully strip libc
+ if [[ "$LDFLAGS" == *-s* ]] ; then
+ STRIP=y
+ fi
+ unset LDFLAGS
+
+ INSTALL_ROOT=$SOURCE_DIRECTORY/glibcroot &&
+ mkdir -p $INSTALL_ROOT &&
+ cd $INSTALL_ROOT
+
+ if module_installed kernel-headers-2.6 ; then
+ OPTS="$OPTS --with-headers=/usr/include"
+ else
+ OPTS="$OPTS --with-headers=/usr/src/linux/include"
+ fi
+
+ ../configure --host=$BUILD \
+ --build=$BUILD \
+ --enable-add-ons=linuxthreads \
+ --with-elf \
+ --with-gd=no \
+ --without-tls \
+ --without-__thread \
+ --without-cvs \
+ --enable-shared \
+ --infodir=/usr/share/info \
+ --mandir=/usr/share/man \
+ --prefix=/usr \
+ $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
+ DL=/lib/libdl.so.2
+ M=/lib/libm.so.6
+ RT=/lib/librt.so.1
+ PTHREAD=/lib/libpthread.so.0
+ NSS=/lib/libnss_files.so.2
+ UTIL=/lib/libutil.so.1
+ NSL=/lib/libnsl.so.1
+ CRYPT=/lib/libcrypt.so.1
+
+ cp $LD /lib/ld-lunar.so &&
+ cp $GLIBC /lib/libc-lunar.so &&
+ cp $DL /lib/libdl-lunar.so &&
+ cp $M /lib/libm-lunar.so &&
+ cp $RT /lib/librt-lunar.so &&
+ cp $PTHREAD /lib/libpthread-lunar.so &&
+ cp $NSS /lib/libnss_files-lunar.so &&
+ 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 &&
+ sln /lib/libdl-lunar.so $DL &&
+ sln /lib/libm-lunar.so $M &&
+ sln /lib/librt-lunar.so $RT &&
+ sln /lib/libpthread-lunar.so $PTHREAD &&
+ sln /lib/libnss_files-lunar.so $NSS &&
+ 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 \
+ lib{anl,BrokenLocale,c,crypt,dl,m,nsl,util,pthread,resolv}-$VERSION.so \
+ libnss_{compat,files,hesiod,nis,nisplus}-$VERSION.so \
+ lib{memusage,pcprofile,SegFault,thread_db-1.0}.so ; do
+ strip -S /lib/$FN
+ done
+ for FN in "/usr/lib/gconv/*.so" ; do
+ 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
+ unset LD_PRELOAD &&
+ if [ -z "$GLIBC_LOCALES" ]; then
+ make localedata/install-locales || exit 1
+ 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
Added: moonbase/branches/crater/libs/glibc-new/BUILD.x86_64
===================================================================
--- moonbase/branches/crater/libs/glibc-new/BUILD.x86_64 (rev 0)
+++ moonbase/branches/crater/libs/glibc-new/BUILD.x86_64 2007-02-01 17:23:56 UTC (rev 23098)
@@ -0,0 +1,156 @@
+(
+
+ if [ -n "$FORCE_THREADS" ]; then
+ if [ "$FORCE_THREADS" != "nptl" -a "$FORCE_THREADS" != "linuxthreads" ]; then
+ message "${PROBLEM_COLOR}Bad thread architecture: \"$FORCE_THREADS\", must be"
+ message "\"nptl\" or \"linuxthreads\"${DEFAULT_COLOR}"
+ exit 1
+ fi
+ if ! query "Force thread type to $FORCE_THREADS ?" n ; then
+ message "${PROBLEM_COLOR}If you don't know what you're doing, then I don't know either!"
+ message "Don't set FORCE_THREADS and try again!${DEFAULT_COLOR}"
+ exit 1
+ else
+ THREADS=$FORCE_THREADS
+ fi
+ else
+ case $(getconf GNU_LIBPTHREAD_VERSION) in
+ NPTL*)
+ THREADS=nptl
+ ;;
+ linux*)
+ THREADS=linuxthreads
+ ;;
+ *)
+ message "${PROBLEM_COLOR}Cannot detect threading type of your glibc - this is very bad"
+ message "Please fix your glibc library before continuing.${DEFAULT_COLOR}"
+ exit 1
+ esac
+ fi
+
+ case $THREADS in
+ nptl) OPTS="$OPTS --enable-add-ons=$THREADS --with-__thread --with-tls" ;;
+ linuxthreads) OPTS="$OPTS --enable-add-ons=$THREADS --without-__thread" ;;
+ esac
+
+ if [ -n "$MAKES" ] && [ "$MAKES" -gt 1 ] ; then
+ sedit "s/# PARALLELMFLAGS = -j 4/PARALLELMFLAGS = -j $MAKES/" Makefile.in
+ fi
+
+ # Don't allow too much damage
+ unset CFLAGS CXXFLAGS CPPFLAGS LD_LIBRARY_PATH
+ export CC=gcc
+
+ # Don't fully strip libc
+ if [[ "$LDFLAGS" == *-s* ]] ; then
+ STRIP=y
+ fi
+ unset LDFLAGS
+
+ INSTALL_ROOT=$SOURCE_DIRECTORY/glibcroot &&
+ mkdir -p $INSTALL_ROOT &&
+ cd $INSTALL_ROOT
+
+ if module_installed kernel-headers-2.6 ; then
+ OPTS="$OPTS --with-headers=/usr/include"
+ else
+ OPTS="$OPTS --with-headers=/usr/src/linux/include"
+ fi
+
+ ../configure --prefix=/usr \
+ --infodir=/usr/share/info \
+ --mandir=/usr/share/man \
+ --with-elf \
+ --with-gd=no \
+ --without-cvs \
+ --enable-shared \
+ --host=$BUILD \
+ --build=$BUILD \
+ $OPTS &&
+ # explicitly exit here since the following code unsets $?
+ make || exit 1
+
+ # Preserve the old glibc temporarily
+ LD=/lib/ld-linux-x86-64.so.2
+ GLIBC=/lib/libc.so.6
+ DL=/lib/libdl.so.2
+ M=/lib/libm.so.6
+ RT=/lib/librt.so.1
+ PTHREAD=/lib/libpthread.so.0
+ NSS=/lib/libnss_files.so.2
+ 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 &&
+ cp $M /lib/libm-lunar.so &&
+ cp $RT /lib/librt-lunar.so &&
+ cp $PTHREAD /lib/libpthread-lunar.so &&
+ cp $NSS /lib/libnss_files-lunar.so &&
+ 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 &&
+ sln /lib/libdl-lunar.so $DL &&
+ sln /lib/libm-lunar.so $M &&
+ sln /lib/librt-lunar.so $RT &&
+ sln /lib/libpthread-lunar.so $PTHREAD &&
+ sln /lib/libnss_files-lunar.so $NSS &&
+ 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 \
+ lib{anl,BrokenLocale,c,crypt,dl,m,nsl,util,pthread,resolv}-$VERSION.so \
+ libnss_{compat,files,hesiod,nis,nisplus}-$VERSION.so \
+ lib{memusage,pcprofile,SegFault,thread_db-1.0}.so ; do
+ strip -S /lib/$FN
+ done
+ for FN in "/usr/lib/gconv/*.so" ; do
+ 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
+ else
+ devoke_installwatch &&
+ 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
+ invoke_installwatch &&
+ touch /usr/lib/locale/locale-archive
+ fi
+
+) > $C_FIFO 2>&1 && ldconfig
Added: moonbase/branches/crater/libs/glibc-new/CONFIGURE
===================================================================
--- moonbase/branches/crater/libs/glibc-new/CONFIGURE (rev 0)
+++ moonbase/branches/crater/libs/glibc-new/CONFIGURE 2007-02-01 17:23:56 UTC (rev 23098)
@@ -0,0 +1,69 @@
+make_locales_checklist() {
+ cat $SCRIPT_DIRECTORY/locales |
+ while read -r ONE REST ; do
+ echo -n "\"$ONE\" \"$REST\" \"off\" "
+ done
+}
+
+#make_abi_checklist() {
+# cat $SCRIPT_DIRECTORY/abi |
+# while read -r ONE REST ; do
+# echo -n "\"$ONE\" \"$REST\" "
+# done
+#}
+
+select_locales() {
+ BACKTITLE="Glibc Configuration"
+ TITLE="Locale Selection"
+ HELP="Translated messages are automatically installed, but the locale database that controls other behavior is not. Please select desired locale or locales. If none are selected then all will be installed."
+
+ make_locales_checklist | xargs \
+ dialog --backtitle "$BACKTITLE" \
+ --title "$TITLE" \
+ --stdout \
+ --separate-output \
+ --checklist "$HELP" \
+ 0 0 0
+}
+
+#select_abi() {
+# BACKTITLE="Glibc Configuration"
+# TITLE="ABI Selection"
+# HELP="Select the last ABI you want to be compatible with."
+#
+# make_abi_checklist | xargs \
+# dialog --backtitle "$BACKTITLE" \
+# --title "$TITLE" \
+# --stdout \
+# --menu "$HELP" \
+# 0 0 0
+#}
+
+#check to see if already configured
+if ! grep -q CONFIGURED $MODULE_CONFIG; then
+
+ if grep -q "GLIBC_LOCALES=" $MODULE_CONFIG
+ then message "Selecting locales is optional"
+ fi
+
+ if query "Would you like to select locales? (if not selected, all locales will be installed)" n ; then
+ GLIBC_LOCALES=`select_locales`
+ TEMP=`grep -v "GLIBC_LOCALES=" $MODULE_CONFIG`
+ echo "$TEMP" > $MODULE_CONFIG
+ echo "GLIBC_LOCALES=\"$GLIBC_LOCALES\"" >> $MODULE_CONFIG
+ fi
+
+# GLIBC_ABI=2.0
+# if query "Would you like to select the oldest glibc ABI to be supported (Default 2.0)?" n ; then
+# GLIBC_ABI=`select_abi`
+# fi
+# OPTS="$OPTS --enable-oldest-abi=$GLIBC_ABI"
+
+ if query "Would you like to disable building of profiling libs?" y
+ then
+ OPTS="$OPTS --disable-profile"
+ fi
+
+ echo "OPTS=\"\$OPTS $OPTS\"" >> $MODULE_CONFIG
+ echo "CONFIGURED=y" >> $MODULE_CONFIG
+fi
Added: moonbase/branches/crater/libs/glibc-new/DEPENDS
===================================================================
--- moonbase/branches/crater/libs/glibc-new/DEPENDS (rev 0)
+++ moonbase/branches/crater/libs/glibc-new/DEPENDS 2007-02-01 17:23:56 UTC (rev 23098)
@@ -0,0 +1,6 @@
+depends binutils &&
+depends gawk &&
+depends sed &&
+depends texinfo &&
+
+optional_depends "perl" "" "" "for testing the installation"
Added: moonbase/branches/crater/libs/glibc-new/DETAILS
===================================================================
--- moonbase/branches/crater/libs/glibc-new/DETAILS (rev 0)
+++ moonbase/branches/crater/libs/glibc-new/DETAILS 2007-02-01 17:23:56 UTC (rev 23098)
@@ -0,0 +1,25 @@
+ MODULE=glibc
+ VERSION=2.5
+ SOURCE=$MODULE-$VERSION.tar.bz2
+ SOURCE2=$MODULE-libidn-$VERSION.tar.bz2
+ SOURCE3=$MODULE-linuxthreads-$VERSION.tar.bz2
+ SOURCE_URL[0]=$GNU_URL/$MODULE/
+ SOURCE_URL[1]=ftp://ftp.gnu.org/pub/gnu/$MODULE/
+ SOURCE2_URL[0]=$GNU_URL/$MODULE/
+ SOURCE2_URL[1]=ftp://ftp.gnu.org/pub/gnu/$MODULE/
+ SOURCE3_URL[0]=$GNU_URL/$MODULE/
+ SOURCE3_URL[1]=ftp://ftp.gnu.org/pub/gnu/$MODULE/
+ SOURCE_VFY=sha1:ec9a007c4875062099a4701ac9137fcdb5a71447
+ SOURCE2_VFY=sha1:ee7e019e01aa338e28db1eeb34abb2cb09d2f30a
+ SOURCE3_VFY=sha1:eb7765e5c0a14c7475f1c8b92cbe1f625a8fd76f
+ WEB_SITE=http://www.gnu.org/software/libc
+ ENTERED=20010922
+ UPDATED=20070126
+ PSAFE=no
+ SHORT="C library for use with GNU/Hurd and GNU/Linux."
+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.
+EOF
Added: moonbase/branches/crater/libs/glibc-new/POST_INSTALL
===================================================================
--- moonbase/branches/crater/libs/glibc-new/POST_INSTALL (rev 0)
+++ moonbase/branches/crater/libs/glibc-new/POST_INSTALL 2007-02-01 17:23:56 UTC (rev 23098)
@@ -0,0 +1,7 @@
+# Install the kernel headers which we created in BUILD
+
+if module_installed kernel-headers-2.4 ; then
+ mv /var/lock/installing.glibc /var/lock/installing.$$
+ lin -c kernel-headers-2.4
+ mv /var/lock/installing.$$ /var/lock/installing.glibc
+fi
Added: moonbase/branches/crater/libs/glibc-new/PRE_BUILD
===================================================================
--- moonbase/branches/crater/libs/glibc-new/PRE_BUILD (rev 0)
+++ moonbase/branches/crater/libs/glibc-new/PRE_BUILD 2007-02-01 17:23:56 UTC (rev 23098)
@@ -0,0 +1,12 @@
+default_pre_build &&
+cd $SOURCE_DIRECTORY &&
+unpack $SOURCE2 &&
+mv glibc-libidn-$VERSION libidn &&
+unpack $SOURCE3 &&
+
+# We need to do this in order to get an updated list of locales
+
+sed -e "/^#/d" \
+ -e "/SUPPORTED-LOCALES=/d" \
+ -e "s: \\\\::g" -e "s:/: :g" \
+ localedata/SUPPORTED > SUPPORTED_LOCALES
More information about the Lunar-commits
mailing list