Changeset 3c32719 for scripts/fetch
- Timestamp:
- Jul 3, 2009, 8:48:04 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:
- fd54d80
- Parents:
- 2cca6fd (diff), 03e0e3d (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
scripts/fetch/eglibc.sh
r2cca6fd r3c32719 20 20 rm -rf ~/tmp 21 21 22 # Set Patch Directory 23 # 24 PATCH_DIR=$(pwd -P)/eglibc 25 22 26 # Get Current Eglibc from SVN 23 27 # … … 25 29 cd ~/tmp 26 30 FIXEDVERSION=$(echo ${VERSION} | sed -e 's/\./_/g') 27 DL_REVISION=$(svn info svn://svn.eglibc.org/branches/eglibc-${FIXEDVERSION} | grep -i"Last Changed Rev" | cut -f2 -d: | sed -e 's/ //g')31 DL_REVISION=$(svn info svn://svn.eglibc.org/branches/eglibc-${FIXEDVERSION} | grep "Last Changed Rev" | cut -f2 -d: | sed -e 's/ //g') 28 32 echo "Retreiving Revision #${DL_REVISION} from SVN eglibc-${SOURCEVERSION}..." 29 33 svn export -r ${DL_REVISION} svn://svn.eglibc.org/branches/eglibc-${FIXEDVERSION} eglibc-${SOURCEVERSION} … … 39 43 # Customize the version string, so we know it's patched 40 44 # 45 install -d ~/tmp/eglibc-${SOURCEVERSION} 41 46 cd ~/tmp/eglibc-${SOURCEVERSION} 42 47 DL_DATE=$(date +%Y%m%d) … … 86 91 tst-fgetwc-ENV = LOCPATH=$(common-objpfx)localedata' libio/Makefile 87 92 93 # Apply Patches from directories 94 # 95 cd ~/tmp/eglibc-${SOURCEVERSION}/libc 96 if [ -e ${PATCH_DIR}/${VERSION} ]; then 97 PATCH_FILES=$(ls ${PATCH_DIR}/${VERSION}/*.patch) 98 if [ "${PATCH_FILES}" != "" ]; then 99 for pfile in ${PATCH_FILES}; do 100 echo "Applying - ${pfile}..." 101 for pvalue in $(seq 0 5); do 102 patch --dry-run -Np${pvalue} -i ${pfile} > /dev/null 2>&1 103 if [ "${?}" = "0" ]; then 104 PVALUE=${pvalue} 105 break 106 fi 107 done 108 if [ "${PVALUE}" != "" ]; then 109 patch -Np${PVALUE} -i ${pfile} 110 else 111 echo "Patch: ${pfile} Failed to Apply..." 112 exit 255 113 fi 114 done 115 fi 116 fi 117 118 # Cleanup Directory 119 # 120 for dir in $(find * -type d); do 121 cd ~/tmp/eglibc-${SOURCEVERSION}/libc 122 for file in $(find . -name '*~'); do 123 rm -f ${file} 124 done 125 for file in $(find . -name '*.orig'); do 126 rm -f ${file} 127 done 128 for file in $(find . -name '*.rej'); do 129 rm -f ${file} 130 done 131 done 132 cd ~/tmp/eglibc-${SOURCEVERSION}/libc 133 rm -rf *.orig *~ *.rej 134 88 135 # Create Patch 89 136 # 90 137 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." 138 install -d ~/patches/ 139 echo "Submitted By: Jim Gifford (jim at cross-lfs dot org)" > ~/patches/eglibc-${SOURCEVERSION}-fixes-${PATCH_NUM}.patch 140 echo "Date: `date +%m-%d-%Y`" >> ~/patches/eglibc-${SOURCEVERSION}-fixes-${PATCH_NUM}.patch 141 echo "Initial Package Version: ${SOURCEVERSION}" >> ~/patches/eglibc-${SOURCEVERSION}-fixes-${PATCH_NUM}.patch 142 echo "Origin: Upstream" >> ~/patches/eglibc-${SOURCEVERSION}-fixes-${PATCH_NUM}.patch 143 echo "Upstream Status: Applied" >> ~/patches/eglibc-${SOURCEVERSION}-fixes-${PATCH_NUM}.patch 144 echo "Description: These are fixes eglibc-${SOURCEVERSION}, and should be" >> ~/patches/eglibc-${SOURCEVERSION}-fixes-${PATCH_NUM}.patch 145 echo " rechecked periodically." >> ~/patches/eglibc-${SOURCEVERSION}-fixes-${PATCH_NUM}.patch 146 echo "" >> ~/patches/eglibc-${SOURCEVERSION}-fixes-${PATCH_NUM}.patch 147 diff -Naur libc.orig libc >> ~/patches/eglibc-${SOURCEVERSION}-fixes-${PATCH_NUM}.patch 148 echo "Created ~/patches/eglibc-${SOURCEVERSION}-fixes-${PATCH_NUM}.patch." 101 149 102 150 # Remove Patched Copy … … 109 157 # 110 158 cd ~/tmp/eglibc-${SOURCEVERSION} 159 install -d ~/packages 111 160 echo "Creating Tarball for Eglibc Ports ${SOURCEVERSION}...." 112 tar cjf ~/p ublic_html/eglibc-ports-${SOURCEVERSION}-${DL_DATE}-r${DL_REVISION}.tar.bz2 ports161 tar cjf ~/packages/eglibc-ports-${SOURCEVERSION}-${DL_DATE}-r${DL_REVISION}.tar.bz2 ports 113 162 rm -rf ports 114 163 echo "Creating Tarball for Eglibc Linuxthreads ${SOURCEVERSION}...." 115 tar cjf ~/p ublic_html/eglibc-linuxthreads-${SOURCEVERSION}-${DL_DATE}-r${DL_REVISION}.tar.bz2 linuxthreads164 tar cjf ~/packages/eglibc-linuxthreads-${SOURCEVERSION}-${DL_DATE}-r${DL_REVISION}.tar.bz2 linuxthreads 116 165 rm -rf linuxthreads 117 166 echo "Creating Tarball for Eglibc LocaleDef ${SOURCEVERSION}...." 118 tar cjf ~/p ublic_html/eglibc-localedef-${SOURCEVERSION}-${DL_DATE}-r${DL_REVISION}.tar.bz2 localedef167 tar cjf ~/packages/eglibc-localedef-${SOURCEVERSION}-${DL_DATE}-r${DL_REVISION}.tar.bz2 localedef 119 168 rm -rf localedef 120 169 mv libc eglibc-${SOURCEVERSION} 121 170 echo "Creating Tarball for Eglibc ${SOURCEVERSION}...." 122 tar cjf ~/p ublic_html/eglibc-${SOURCEVERSION}-${DL_DATE}-r${DL_REVISION}.tar.bz2 eglibc-${SOURCEVERSION}171 tar cjf ~/packages/eglibc-${SOURCEVERSION}-${DL_DATE}-r${DL_REVISION}.tar.bz2 eglibc-${SOURCEVERSION} 123 172 124 173 # Clean up Directores … … 126 175 cd ~/tmp 127 176 rm -rf eglibc-${SOURCEVERSION} 128
Note:
See TracChangeset
for help on using the changeset viewer.