Changeset 0053d13 for scripts


Ignore:
Timestamp:
Jun 7, 2009, 4:58:49 PM (15 years ago)
Author:
Jim Gifford <clfs@…>
Branches:
clfs-1.2, clfs-2.1, clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
Children:
d06a4e5
Parents:
c4c839b
Message:

Updated eglibc fetch script

File:
1 edited

Legend:

Unmodified
Added
Removed
  • scripts/fetch/eglibc.sh

    rc4c839b r0053d13  
    2929svn export -r ${DL_REVISION} svn://svn.eglibc.org/branches/eglibc-${FIXEDVERSION} eglibc-${SOURCEVERSION}
    3030
     31# Set Patch Number
     32#
     33cd ~/tmp
     34wget http://svn.cross-lfs.org/svn/repos/cross-lfs/trunk/patches/ --no-remove-listing
     35PATCH_NUM=$(cat index.html | grep eglibc | grep "${SOURCEVERSION}" | grep branch_update | cut -f2 -d'"' | cut -f1 -d'"'| cut -f4 -d- | cut -f1 -d. | tail -n 1)
     36PATCH_NUM=$(expr ${PATCH_NUM} + 1)
     37rm -f index.html
     38
    3139# Customize the version string, so we know it's patched
    3240#
     
    5765find . -name configure -exec touch {} \;
    5866
     67# Create A copy of the Original Directory So We can do some Updates
     68#
     69cd ~/tmp/eglibc-${SOURCEVERSION}
     70cp -ar libc libc.orig
     71
     72# Change gcc to BUILD_CC in the following files
     73#
     74cd ~/tmp/eglibc-${SOURCEVERSION}/libc
     75FIX_FILES="sunrpc/Makefile timezone/Makefile"
     76for fix_file in ${FIX_FILES}; do
     77  sed -i 's/gcc/\$\(BUILD_CC\)/g' ${fix_file}
     78done
     79
     80# Make testsuite fixes
     81#
     82cd ~/tmp/eglibc-${SOURCEVERSION}/libc
     83sed -i 's|@BASH@|/bin/bash|' elf/ldd.bash.in
     84sed -i s/utf8/UTF-8/ libio/tst-fgetwc.c
     85sed -i '/tst-fgetws-ENV/ a\
     86tst-fgetwc-ENV = LOCPATH=$(common-objpfx)localedata' libio/Makefile
     87
     88# Create Patch
     89#
     90cd ~/tmp/eglibc-${SOURCEVERSION}
     91echo "Submitted By: Jim Gifford (jim at cross-lfs dot org)" >  ~/public_html/eglibc-${SOURCEVERSION}-fixes-${PATCH_NUM}.patch
     92echo "Date: `date +%m-%d-%Y`" >>  ~/public_html/eglibc-${SOURCEVERSION}-fixes-${PATCH_NUM}.patch
     93echo "Initial Package Version: ${SOURCEVERSION}" >>  ~/public_html/eglibc-${SOURCEVERSION}-fixes-${PATCH_NUM}.patch
     94echo "Origin: Upstream" >>  ~/public_html/eglibc-${SOURCEVERSION}-fixes-${PATCH_NUM}.patch
     95echo "Upstream Status: Applied" >>  ~/public_html/eglibc-${SOURCEVERSION}-fixes-${PATCH_NUM}.patch
     96echo "Description: These are fixes eglibc-${SOURCEVERSION}, and should be" >>  ~/public_html/eglibc-${SOURCEVERSION}-fixes-${PATCH_NUM}.patch
     97echo "             rechecked periodically." >>  ~/public_html/eglibc-${SOURCEVERSION}-fixes-${PATCH_NUM}.patch
     98echo "" >>  ~/public_html/eglibc-${SOURCEVERSION}-fixes-${PATCH_NUM}.patch
     99diff -Naur libc.orig libc >>  ~/public_html/eglibc-${SOURCEVERSION}-fixes-${PATCH_NUM}.patch
     100echo "Created  ~/public_html/eglibc-${SOURCEVERSION}-fixes-${PATCH_NUM}.patch."
     101
     102# Remove Patched Copy
     103#
     104cd ~/tmp/eglibc-${SOURCEVERSION}
     105rm -rf libc
     106mv libc.orig libc
     107
    59108# Compress
    60109#
     
    68117echo "Creating Tarball for Eglibc LocaleDef ${SOURCEVERSION}...."
    69118tar cjf ~/public_html/eglibc-localedef-${SOURCEVERSION}-${DL_DATE}-r${DL_REVISION}.tar.bz2 localedef
     119tar cjf ~/public_html/eglibc-localedef-${SOURCEVERSION}.tar.bz2 localedef
    70120rm -rf localedef
    71121mv libc eglibc-${SOURCEVERSION}
Note: See TracChangeset for help on using the changeset viewer.