Changes in scripts/fetch/eglibc.sh [65a1d51:d06a4e5]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
scripts/fetch/eglibc.sh
r65a1d51 rd06a4e5 20 20 rm -rf ~/tmp 21 21 22 # Set Patch Directory23 #24 PATCH_DIR=$(pwd -P)/eglibc25 26 22 # Get Current Eglibc from SVN 27 23 # … … 29 25 cd ~/tmp 30 26 FIXEDVERSION=$(echo ${VERSION} | 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')27 DL_REVISION=$(svn info svn://svn.eglibc.org/branches/eglibc-${FIXEDVERSION} | grep -i "Last Changed Rev" | cut -f2 -d: | sed -e 's/ //g') 32 28 echo "Retreiving Revision #${DL_REVISION} from SVN eglibc-${SOURCEVERSION}..." 33 29 svn export -r ${DL_REVISION} svn://svn.eglibc.org/branches/eglibc-${FIXEDVERSION} eglibc-${SOURCEVERSION} … … 43 39 # Customize the version string, so we know it's patched 44 40 # 45 install -d ~/tmp/eglibc-${SOURCEVERSION}46 41 cd ~/tmp/eglibc-${SOURCEVERSION} 47 42 DL_DATE=$(date +%Y%m%d) … … 91 86 tst-fgetwc-ENV = LOCPATH=$(common-objpfx)localedata' libio/Makefile 92 87 93 # Apply Patches from directories94 #95 cd ~/tmp/eglibc-${SOURCEVERSION}/libc96 if [ -e ${PATCH_DIR}/${VERSION} ]; then97 PATCH_FILES=$(ls ${PATCH_DIR}/${VERSION}/*.patch)98 if [ "${PATCH_FILES}" != "" ]; then99 for pfile in ${PATCH_FILES}; do100 echo "Applying - ${pfile}..."101 for pvalue in $(seq 0 5); do102 patch --dry-run -Np${pvalue} -i ${pfile} > /dev/null 2>&1103 if [ "${?}" = "0" ]; then104 PVALUE=${pvalue}105 break106 fi107 done108 if [ "${PVALUE}" != "" ]; then109 patch -Np${PVALUE} -i ${pfile}110 else111 echo "Patch: ${pfile} Failed to Apply..."112 exit 255113 fi114 done115 fi116 fi117 118 # Cleanup Directory119 #120 for dir in $(find * -type d); do121 cd ~/tmp/eglibc-${SOURCEVERSION}/libc122 for file in $(find . -name '*~'); do123 rm -f ${file}124 done125 for file in $(find . -name '*.orig'); do126 rm -f ${file}127 done128 for file in $(find . -name '*.rej'); do129 rm -f ${file}130 done131 done132 cd ~/tmp/eglibc-${SOURCEVERSION}/libc133 rm -rf *.orig *~ *.rej134 135 88 # Create Patch 136 89 # 137 90 cd ~/tmp/eglibc-${SOURCEVERSION} 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." 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." 149 101 150 102 # Remove Patched Copy … … 157 109 # 158 110 cd ~/tmp/eglibc-${SOURCEVERSION} 159 install -d ~/packages160 111 echo "Creating Tarball for Eglibc Ports ${SOURCEVERSION}...." 161 tar cjf ~/p ackages/eglibc-ports-${SOURCEVERSION}-${DL_DATE}-r${DL_REVISION}.tar.bz2 ports112 tar cjf ~/public_html/eglibc-ports-${SOURCEVERSION}-${DL_DATE}-r${DL_REVISION}.tar.bz2 ports 162 113 rm -rf ports 163 114 echo "Creating Tarball for Eglibc Linuxthreads ${SOURCEVERSION}...." 164 tar cjf ~/p ackages/eglibc-linuxthreads-${SOURCEVERSION}-${DL_DATE}-r${DL_REVISION}.tar.bz2 linuxthreads115 tar cjf ~/public_html/eglibc-linuxthreads-${SOURCEVERSION}-${DL_DATE}-r${DL_REVISION}.tar.bz2 linuxthreads 165 116 rm -rf linuxthreads 166 117 echo "Creating Tarball for Eglibc LocaleDef ${SOURCEVERSION}...." 167 tar cjf ~/p ackages/eglibc-localedef-${SOURCEVERSION}-${DL_DATE}-r${DL_REVISION}.tar.bz2 localedef118 tar cjf ~/public_html/eglibc-localedef-${SOURCEVERSION}-${DL_DATE}-r${DL_REVISION}.tar.bz2 localedef 168 119 rm -rf localedef 169 120 mv libc eglibc-${SOURCEVERSION} 170 121 echo "Creating Tarball for Eglibc ${SOURCEVERSION}...." 171 tar cjf ~/p ackages/eglibc-${SOURCEVERSION}-${DL_DATE}-r${DL_REVISION}.tar.bz2 eglibc-${SOURCEVERSION}122 tar cjf ~/public_html/eglibc-${SOURCEVERSION}-${DL_DATE}-r${DL_REVISION}.tar.bz2 eglibc-${SOURCEVERSION} 172 123 173 124 # Clean up Directores … … 175 126 cd ~/tmp 176 127 rm -rf eglibc-${SOURCEVERSION} 128
Note:
See TracChangeset
for help on using the changeset viewer.