Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • scripts/fetch/eglibc.sh

    r65a1d51 rd06a4e5  
    2020rm -rf ~/tmp
    2121
    22 # Set Patch Directory
    23 #
    24 PATCH_DIR=$(pwd -P)/eglibc
    25 
    2622# Get Current Eglibc from SVN
    2723#
     
    2925cd ~/tmp
    3026FIXEDVERSION=$(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')
     27DL_REVISION=$(svn info svn://svn.eglibc.org/branches/eglibc-${FIXEDVERSION} | grep -i "Last Changed Rev" | cut -f2 -d: | sed -e 's/ //g')
    3228echo "Retreiving Revision #${DL_REVISION} from SVN eglibc-${SOURCEVERSION}..."
    3329svn export -r ${DL_REVISION} svn://svn.eglibc.org/branches/eglibc-${FIXEDVERSION} eglibc-${SOURCEVERSION}
     
    4339# Customize the version string, so we know it's patched
    4440#
    45 install -d ~/tmp/eglibc-${SOURCEVERSION}
    4641cd ~/tmp/eglibc-${SOURCEVERSION}
    4742DL_DATE=$(date +%Y%m%d)
     
    9186tst-fgetwc-ENV = LOCPATH=$(common-objpfx)localedata' libio/Makefile
    9287
    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 
    13588# Create Patch
    13689#
    13790cd ~/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."
     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."
    149101
    150102# Remove Patched Copy
     
    157109#
    158110cd ~/tmp/eglibc-${SOURCEVERSION}
    159 install -d ~/packages
    160111echo "Creating Tarball for Eglibc Ports ${SOURCEVERSION}...."
    161 tar cjf ~/packages/eglibc-ports-${SOURCEVERSION}-${DL_DATE}-r${DL_REVISION}.tar.bz2 ports
     112tar cjf ~/public_html/eglibc-ports-${SOURCEVERSION}-${DL_DATE}-r${DL_REVISION}.tar.bz2 ports
    162113rm -rf ports
    163114echo "Creating Tarball for Eglibc Linuxthreads ${SOURCEVERSION}...."
    164 tar cjf ~/packages/eglibc-linuxthreads-${SOURCEVERSION}-${DL_DATE}-r${DL_REVISION}.tar.bz2 linuxthreads
     115tar cjf ~/public_html/eglibc-linuxthreads-${SOURCEVERSION}-${DL_DATE}-r${DL_REVISION}.tar.bz2 linuxthreads
    165116rm -rf linuxthreads
    166117echo "Creating Tarball for Eglibc LocaleDef ${SOURCEVERSION}...."
    167 tar cjf ~/packages/eglibc-localedef-${SOURCEVERSION}-${DL_DATE}-r${DL_REVISION}.tar.bz2 localedef
     118tar cjf ~/public_html/eglibc-localedef-${SOURCEVERSION}-${DL_DATE}-r${DL_REVISION}.tar.bz2 localedef
    168119rm -rf localedef
    169120mv libc eglibc-${SOURCEVERSION}
    170121echo "Creating Tarball for Eglibc ${SOURCEVERSION}...."
    171 tar cjf ~/packages/eglibc-${SOURCEVERSION}-${DL_DATE}-r${DL_REVISION}.tar.bz2 eglibc-${SOURCEVERSION}
     122tar cjf ~/public_html/eglibc-${SOURCEVERSION}-${DL_DATE}-r${DL_REVISION}.tar.bz2 eglibc-${SOURCEVERSION}
    172123
    173124# Clean up Directores
     
    175126cd ~/tmp
    176127rm -rf eglibc-${SOURCEVERSION}
     128
Note: See TracChangeset for help on using the changeset viewer.