Changeset 0053d13 for scripts/fetch/eglibc.sh
- Timestamp:
- Jun 7, 2009, 11:58:49 PM (15 years ago)
- Branches:
- clfs-1.2, clfs-2.1, clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
- Children:
- d06a4e5
- Parents:
- c4c839b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
scripts/fetch/eglibc.sh
rc4c839b r0053d13 29 29 svn export -r ${DL_REVISION} svn://svn.eglibc.org/branches/eglibc-${FIXEDVERSION} eglibc-${SOURCEVERSION} 30 30 31 # Set Patch Number 32 # 33 cd ~/tmp 34 wget http://svn.cross-lfs.org/svn/repos/cross-lfs/trunk/patches/ --no-remove-listing 35 PATCH_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) 36 PATCH_NUM=$(expr ${PATCH_NUM} + 1) 37 rm -f index.html 38 31 39 # Customize the version string, so we know it's patched 32 40 # … … 57 65 find . -name configure -exec touch {} \; 58 66 67 # Create A copy of the Original Directory So We can do some Updates 68 # 69 cd ~/tmp/eglibc-${SOURCEVERSION} 70 cp -ar libc libc.orig 71 72 # Change gcc to BUILD_CC in the following files 73 # 74 cd ~/tmp/eglibc-${SOURCEVERSION}/libc 75 FIX_FILES="sunrpc/Makefile timezone/Makefile" 76 for fix_file in ${FIX_FILES}; do 77 sed -i 's/gcc/\$\(BUILD_CC\)/g' ${fix_file} 78 done 79 80 # Make testsuite fixes 81 # 82 cd ~/tmp/eglibc-${SOURCEVERSION}/libc 83 sed -i 's|@BASH@|/bin/bash|' elf/ldd.bash.in 84 sed -i s/utf8/UTF-8/ libio/tst-fgetwc.c 85 sed -i '/tst-fgetws-ENV/ a\ 86 tst-fgetwc-ENV = LOCPATH=$(common-objpfx)localedata' libio/Makefile 87 88 # Create Patch 89 # 90 cd ~/tmp/eglibc-${SOURCEVERSION} 91 echo "Submitted By: Jim Gifford (jim at cross-lfs dot org)" > ~/public_html/eglibc-${SOURCEVERSION}-fixes-${PATCH_NUM}.patch 92 echo "Date: `date +%m-%d-%Y`" >> ~/public_html/eglibc-${SOURCEVERSION}-fixes-${PATCH_NUM}.patch 93 echo "Initial Package Version: ${SOURCEVERSION}" >> ~/public_html/eglibc-${SOURCEVERSION}-fixes-${PATCH_NUM}.patch 94 echo "Origin: Upstream" >> ~/public_html/eglibc-${SOURCEVERSION}-fixes-${PATCH_NUM}.patch 95 echo "Upstream Status: Applied" >> ~/public_html/eglibc-${SOURCEVERSION}-fixes-${PATCH_NUM}.patch 96 echo "Description: These are fixes eglibc-${SOURCEVERSION}, and should be" >> ~/public_html/eglibc-${SOURCEVERSION}-fixes-${PATCH_NUM}.patch 97 echo " rechecked periodically." >> ~/public_html/eglibc-${SOURCEVERSION}-fixes-${PATCH_NUM}.patch 98 echo "" >> ~/public_html/eglibc-${SOURCEVERSION}-fixes-${PATCH_NUM}.patch 99 diff -Naur libc.orig libc >> ~/public_html/eglibc-${SOURCEVERSION}-fixes-${PATCH_NUM}.patch 100 echo "Created ~/public_html/eglibc-${SOURCEVERSION}-fixes-${PATCH_NUM}.patch." 101 102 # Remove Patched Copy 103 # 104 cd ~/tmp/eglibc-${SOURCEVERSION} 105 rm -rf libc 106 mv libc.orig libc 107 59 108 # Compress 60 109 # … … 68 117 echo "Creating Tarball for Eglibc LocaleDef ${SOURCEVERSION}...." 69 118 tar cjf ~/public_html/eglibc-localedef-${SOURCEVERSION}-${DL_DATE}-r${DL_REVISION}.tar.bz2 localedef 119 tar cjf ~/public_html/eglibc-localedef-${SOURCEVERSION}.tar.bz2 localedef 70 120 rm -rf localedef 71 121 mv libc eglibc-${SOURCEVERSION}
Note:
See TracChangeset
for help on using the changeset viewer.