Changes in / [3c32719:2cca6fd]
- Files:
-
- 4 deleted
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/final-system/common/mpfr.xml
r3c32719 r2cca6fd 35 35 36 36 <screen os="b"><userinput>CC="gcc -isystem /usr/include" LDFLAGS="-Wl,-rpath-link,/lib" \ 37 ./configure --prefix=/usr --enable-shared \ 38 --with-gmp=/usr</userinput></screen> 37 ./configure --prefix=/usr --enable-shared</userinput></screen> 39 38 40 39 <para os="c">Compile the package:</para> -
BOOK/introduction/common/changelog.xml
r3c32719 r2cca6fd 41 41 <itemizedlist> 42 42 <listitem> 43 <para>[Winkie] - Explicitly link MPFR against our GMP.</para> 44 </listitem> 45 </itemizedlist> 46 </listitem> 47 48 <listitem> 49 <para>July 3, 2009</para> 50 <itemizedlist> 51 <listitem> 52 <para>[Jim] - Updated Rsyslog to 4.2.0.</para> 53 </listitem> 54 <listitem> 55 <para>[Jim] - Updated Sed to 4.2.1.</para> 43 <para>[Chris] - Updated lists of installed programs and libraries 44 for several packages.</para> 56 45 </listitem> 57 46 </itemizedlist> -
BOOK/packages.ent
r3c32719 r2cca6fd 357 357 <!ENTITY readline-home "http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html"> 358 358 359 <!ENTITY rsyslog-version " 4.2.0">360 <!ENTITY rsyslog-size "1,3 65KB">359 <!ENTITY rsyslog-version "3.22.0"> 360 <!ENTITY rsyslog-size "1,303 KB"> 361 361 <!ENTITY rsyslog-url "http://download.rsyslog.com/rsyslog/rsyslog-&rsyslog-version;.tar.gz"> 362 <!ENTITY rsyslog-md5 " c66650e961f23253fc926da5d35bd71f">362 <!ENTITY rsyslog-md5 "df43878d3aa206a258e414eae59dc797"> 363 363 <!ENTITY rsyslog-home "http://www.rsyslog.com/"> 364 364 365 <!ENTITY sed-version "4.2 .1">366 <!ENTITY sed-size " 878KB">367 <!ENTITY sed-url "&gnu;sed/sed-&sed-version;.tar. bz2">368 <!ENTITY sed-md5 " 7d310fbd76e01a01115075c1fd3f455a">365 <!ENTITY sed-version "4.2"> 366 <!ENTITY sed-size "1,030 KB"> 367 <!ENTITY sed-url "&gnu;sed/sed-&sed-version;.tar.gz"> 368 <!ENTITY sed-md5 "31580bee0c109c0fc8f31c4cf204757e"> 369 369 <!ENTITY sed-home "&gnu-software;sed"> 370 370 -
BOOK/temp-system/common/mpfr.xml
r3c32719 r2cca6fd 35 35 <screen os="b"><userinput>./configure --prefix=/tools \ 36 36 --build=${CLFS_HOST} --host=${CLFS_TARGET} \ 37 --enable-shared --with-gmp=/tools</userinput></screen>37 --enable-shared</userinput></screen> 38 38 39 39 <para os="c">Compile the package:</para> -
scripts/fetch/eglibc.sh
r3c32719 r2cca6fd 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 -
scripts/patch/bash-patch.sh
r3c32719 r2cca6fd 16 16 # Get the # of Patches 17 17 # 18 install -d ~/tmp 19 cd ~/tmp 18 cd /usr/src 20 19 wget ftp://ftp.cwru.edu/pub/bash/bash-${VERSION}-patches/ --no-remove-listing 21 20 VERSION2=$(echo ${VERSION} | sed -e 's/\.//g') … … 34 33 # Set Patch Number 35 34 # 36 cd ~/tmp35 cd /usr/src 37 36 wget http://svn.cross-lfs.org/svn/repos/cross-lfs/trunk/patches/ --no-remove-listing 38 37 PATCH_NUM=$(cat index.html | grep bash | grep "${VERSION}" | grep branch_update | cut -f2 -d'"' | cut -f1 -d'"'| cut -f4 -d- | cut -f1 -d. | tail -n 1) … … 42 41 # Cleanup Directory 43 42 # 44 cd ~/tmp45 43 rm -rf bash-${VERSION} bash-${VERSION}.orig 46 44 tar xvf bash-${VERSION}.tar.gz 47 45 cp -ar bash-${VERSION} bash-${VERSION}.orig 46 cd bash-${VERSION} 47 CURRENTDIR=$(pwd -P) 48 48 49 49 # Download and Apply Patches 50 50 # 51 install -d ~/tmp/bash-${VERSION}-patches52 cd ~/tmp/bash-${VERSION}53 CURRENTDIR=$(pwd -P)54 51 PATCHURL=ftp://ftp.cwru.edu/pub/bash/bash-${VERSION}-patches 52 mkdir /tmp/bash-${VERSION} 55 53 COUNT=1 56 54 while [ ${COUNT} -le ${FILES} ]; do 57 cd ~/tmp/bash-${VERSION}55 cd /tmp/bash-${VERSION} 58 56 DLCOUNT="${COUNT}" 59 57 SKIPME=no … … 73 71 if [ "${SKIPME}" != "yes" ]; then 74 72 if ! [ -e ${VERSION}.${DLCOUNT} ]; then 75 cd ~/tmp/bash-${VERSION}-patches76 73 wget --quiet ${PATCHURL}/bash${VERSION2}-${DLCOUNT} 77 74 fi 78 75 cd ${CURRENTDIR} 79 patch --dry-run -s -f -Np0 -i ~/tmp/bash-${VERSION}-patches/bash${VERSION2}-${DLCOUNT}76 patch --dry-run -s -f -Np0 -i /tmp/bash-${VERSION}/bash${VERSION2}-${DLCOUNT} 80 77 if [ "$?" = "0" ]; then 81 78 echo "Patch bash${VERSION2}-${DLCOUNT} applied" 82 patch -s -Np0 -i ~/tmp/bash-${VERSION}-patches/bash${VERSION2}-${DLCOUNT}79 patch -s -Np0 -i /tmp/bash-${VERSION}/bash${VERSION2}-${DLCOUNT} 83 80 else 84 81 echo "Patch bash${VERSION2}-${DLCOUNT} not applied" 85 rm -f ~/tmp/bash-${VERSION}-patches/bash${VERSION2}-${DLCOUNT}82 rm -f /tmp/bash-${VERSION}/bash${VERSION2}-${DLCOUNT} 86 83 SKIPPED="${SKIPPED} ${DLCOUNT}" 87 84 fi … … 92 89 # Cleanup Directory 93 90 # 94 cd ~/tmp/bash-${VERSION} 91 95 92 for dir in $(find * -type d); do 96 cd ~/tmp/bash-${VERSION}/${dir}93 cd /usr/src/bash-${VERSION}/${dir} 97 94 for file in $(find . -name '*~'); do 98 95 rm -f ${file} … … 102 99 done 103 100 done 104 cd ~/tmp/bash-${VERSION}101 cd /usr/src/bash-${VERSION} 105 102 rm -f *~ *.orig 106 103 107 104 # Create Patch 108 105 # 109 cd ~/tmp 110 install -d ~/patches 111 echo "Submitted By: Jim Gifford (jim at cross-lfs dot org)" > ~/patches/bash-${VERSION}-branch_update-${PATCH_NUM}.patch 112 echo "Date: `date +%m-%d-%Y`" >> ~/patches/bash-${VERSION}-branch_update-${PATCH_NUM}.patch 113 echo "Initial Package Version: ${VERSION}" >> ~/patches/bash-${VERSION}-branch_update-${PATCH_NUM}.patch 114 echo "Origin: Upstream" >> ~/patches/bash-${VERSION}-branch_update-${PATCH_NUM}.patch 115 echo "Upstream Status: Applied" >> ~/patches/bash-${VERSION}-branch_update-${PATCH_NUM}.patch 116 echo "Description: Contains all upstream patches up to ${VERSION}-${FILES}" >> ~/patches/bash-${VERSION}-branch_update-${PATCH_NUM}.patch 106 cd /usr/src 107 echo "Submitted By: Jim Gifford (jim at cross-lfs dot org)" > bash-${VERSION}-branch_update-${PATCH_NUM}.patch 108 echo "Date: `date +%m-%d-%Y`" >> bash-${VERSION}-branch_update-${PATCH_NUM}.patch 109 echo "Initial Package Version: ${VERSION}" >> bash-${VERSION}-branch_update-${PATCH_NUM}.patch 110 echo "Origin: Upstream" >> bash-${VERSION}-branch_update-${PATCH_NUM}.patch 111 echo "Upstream Status: Applied" >> bash-${VERSION}-branch_update-${PATCH_NUM}.patch 112 echo "Description: Contains all upstream patches up to ${VERSION}-${FILES}" >> bash-${VERSION}-branch_update-${PATCH_NUM}.patch 117 113 if [ -n "${SKIPPED}" ]; then 118 echo " The following patches were skipped" >> ~/patches/bash-${VERSION}-branch_update-${PATCH_NUM}.patch119 echo " ${SKIPPED}" >> ~/patches/bash-${VERSION}-branch_update-${PATCH_NUM}.patch114 echo " The following patches were skipped" >> bash-${VERSION}-branch_update-${PATCH_NUM}.patch 115 echo " ${SKIPPED}" >> bash-${VERSION}-branch_update-${PATCH_NUM}.patch 120 116 fi 121 echo "" >> ~/patches/bash-${VERSION}-branch_update-${PATCH_NUM}.patch 122 diff -Naur bash-${VERSION}.orig bash-${VERSION} >> ~/patches/bash-${VERSION}-branch_update-${PATCH_NUM}.patch 123 echo "Created ~/patches/bash-${VERSION}-branch_update-${PATCH_NUM}.patch." 124 125 # Cleanup Directory 126 # 127 cd ~/tmp 128 rm -rf bash-${VERSION} bash-${VERSION}.orig 117 echo "" >> bash-${VERSION}-branch_update-${PATCH_NUM}.patch 118 diff -Naur bash-${VERSION}.orig bash-${VERSION} >> bash-${VERSION}-branch_update-${PATCH_NUM}.patch 119 echo "Created /usr/src/bash-${VERSION}-branch_update-${PATCH_NUM}.patch." -
scripts/patch/binutils-patch.sh
r3c32719 r2cca6fd 19 19 # Download Binutils Source 20 20 # 21 install -d ~/tmp 22 cd ~/tmp 21 cd /usr/src 23 22 if ! [ -e binutils-${SOURCEVERSION}.tar.bz2 ]; then 24 23 wget ftp://ftp.gnu.org/gnu/binutils/binutils-${SOURCEVERSION}.tar.bz2 … … 27 26 # Set Patch Number 28 27 # 29 cd ~/tmp28 cd /usr/src 30 29 wget http://svn.cross-lfs.org/svn/repos/cross-lfs/trunk/patches/ --no-remove-listing 31 30 PATCH_NUM=$(cat index.html | grep binutils | grep "${SOURCEVERSION}" | grep branch_update | cut -f2 -d'"' | cut -f1 -d'"'| cut -f4 -d- | cut -f1 -d. | tail -n 1) 32 31 PATCH_NUM=$(expr ${PATCH_NUM} + 1) 33 PATCH_NUM2=$(cat index.html | grep binutils | grep "${SOURCEVERSION}" | grep fixes | cut -f2 -d'"' | cut -f1 -d'"'| cut -f4 -d- | cut -f1 -d. | tail -n 1)34 PATCH_NUM2=$(expr ${PATCH_NUM2} + 1)35 32 rm -f index.html 36 33 37 34 # Cleanup Directory 38 35 # 39 cd ~/tmp40 36 rm -rf binutils-${SOURCEVERSION} binutils-${SOURCEVERSION}.orig 41 37 tar xvf binutils-${SOURCEVERSION}.tar.bz2 38 mv binutils-${SOURCEVERSION} binutils-${SOURCEVERSION}.orig 39 CURRENTDIR=$(pwd -P) 42 40 43 41 # Get Current Updates from CVS 44 42 # 45 cd ~/tmp 46 mv binutils-${SOURCEVERSION} binutils-${SOURCEVERSION}.orig 47 CURRENTDIR=$(pwd -P) 43 cd /usr/src 48 44 FIXEDVERSION=$(echo ${VERSION} | sed -e 's/\./_/g') 49 45 cvs -z 9 -d :pserver:anoncvs@sourceware.org:/cvs/src export -rbinutils-${FIXEDVERSION}-branch binutils … … 52 48 # Cleanup 53 49 # 54 cd ~/tmp55 50 DIRS="binutils-${SOURCEVERSION} binutils-${SOURCEVERSION}.orig" 56 51 for DIRECTORY in ${DIRS}; do 57 cd ~/tmp/${DIRECTORY}52 cd /usr/src/${DIRECTORY} 58 53 FILE_LIST=".cvsignore *.gmo" 59 54 for files in ${FILE_LIST}; do … … 71 66 cd .. 72 67 done 73 cd ~/tmp/binutils-${SOURCEVERSION}74 rm -f ~/tmp/binutils-${SOURCEVERSION}.orig/md5.sum68 cd /usr/src/binutils-${SOURCEVERSION} 69 rm -f /usr/src/binutils-${SOURCEVERSION}.orig/md5.sum 75 70 76 71 # Make Binutils a Release 77 72 # 78 cd ~/tmp/binutils-${SOURCEVERSION}73 cd /usr/src/binutils-${SOURCEVERSION} 79 74 sed -i 's/# RELEASE=y/RELEASE=y/g' bfd/Makefile.am 80 75 sed -i 's/# RELEASE=y/RELEASE=y/g' bfd/Makefile.in … … 82 77 # Customize the version string, so we know it's patched 83 78 # 84 cd ~/tmp/binutils-${SOURCEVERSION}79 cd /usr/src/binutils-${SOURCEVERSION} 85 80 DATE_STAMP=$(date +%Y%m%d) 86 cd ~/tmp/binutils-${SOURCEVERSION}81 cd /usr/src/binutils-${SOURCEVERSION} 87 82 sed -i "s:@PKGVERSION@:(GNU Binutils for Cross-LFS) :" bfd/Makefile.in 88 83 sed -i "s:^[[:space:]]VERSION=\(.*\)$: VERSION=\1.${DATE_STAMP}:g" bfd/configure … … 90 85 # Create Patch 91 86 # 92 cd ~/tmp 93 install -d ~/patches 94 echo "Submitted By: Jim Gifford (jim at cross-lfs dot org)" > ~/patches/binutils-${SOURCEVERSION}-branch_update-${PATCH_NUM}.patch 95 echo "Date: `date +%m-%d-%Y`" >> ~/patches/binutils-${SOURCEVERSION}-branch_update-${PATCH_NUM}.patch 96 echo "Initial Package Version: ${SOURCEVERSION}" >> ~/patches/binutils-${SOURCEVERSION}-branch_update-${PATCH_NUM}.patch 97 echo "Origin: Upstream" >> ~/patches/binutils-${SOURCEVERSION}-branch_update-${PATCH_NUM}.patch 98 echo "Upstream Status: Applied" >> ~/patches/binutils-${SOURCEVERSION}-branch_update-${PATCH_NUM}.patch 99 echo "Description: This is a branch update for binutils-${SOURCEVERSION}, and should be" >> ~/patches/binutils-${SOURCEVERSION}-branch_update-${PATCH_NUM}.patch 100 echo " rechecked periodically." >> ~/patches/binutils-${SOURCEVERSION}-branch_update-${PATCH_NUM}.patch 101 echo "" >> ~/patches/binutils-${SOURCEVERSION}-branch_update-${PATCH_NUM}.patch 102 echo "This patch was created on ${DATE_STAMP}" >> ~/patches/binutils-${SOURCEVERSION}-branch_update-${PATCH_NUM}.patch 103 echo "" >> ~/patches/binutils-${SOURCEVERSION}-branch_update-${PATCH_NUM}.patch 104 diff -Naur binutils-${SOURCEVERSION}.orig binutils-${SOURCEVERSION} >> ~/patches/binutils-${SOURCEVERSION}-branch_update-${PATCH_NUM}.patch 105 echo "Created ~/patches/binutils-${SOURCEVERSION}-branch_update-${PATCH_NUM}.patch." 87 cd /usr/src 88 echo "Submitted By: Jim Gifford (jim at cross-lfs dot org)" > binutils-${SOURCEVERSION}-branch_update-${PATCH_NUM}.patch 89 echo "Date: `date +%m-%d-%Y`" >> binutils-${SOURCEVERSION}-branch_update-${PATCH_NUM}.patch 90 echo "Initial Package Version: ${SOURCEVERSION}" >> binutils-${SOURCEVERSION}-branch_update-${PATCH_NUM}.patch 91 echo "Origin: Upstream" >> binutils-${SOURCEVERSION}-branch_update-${PATCH_NUM}.patch 92 echo "Upstream Status: Applied" >> binutils-${SOURCEVERSION}-branch_update-${PATCH_NUM}.patch 93 echo "Description: This is a branch update for binutils-${SOURCEVERSION}, and should be" >> binutils-${SOURCEVERSION}-branch_update-${PATCH_NUM}.patch 94 echo " rechecked periodically." >> binutils-${SOURCEVERSION}-branch_update-${PATCH_NUM}.patch 95 echo "" >> binutils-${SOURCEVERSION}-branch_update-${PATCH_NUM}.patch 96 echo "This patch was created on ${DATE_STAMP}" >> binutils-${SOURCEVERSION}-branch_update-${PATCH_NUM}.patch 97 echo "" >> binutils-${SOURCEVERSION}-branch_update-${PATCH_NUM}.patch 98 diff -Naur binutils-${SOURCEVERSION}.orig binutils-${SOURCEVERSION} >> binutils-${SOURCEVERSION}-branch_update-${PATCH_NUM}.patch 99 echo "Created /usr/src/binutils-${SOURCEVERSION}-branch_update-${PATCH_NUM}.patch." 106 100 107 101 # Cleanliness is the name of my game! 108 102 # 109 103 unset DATE_STAMP 110 111 # Create Another Copy to create fixes patch112 #113 cd ~/tmp114 if [ -e ${PATCH_DIR}/${VERSION} ]; then115 rm -rf binutils-${SOURCEVERSION}.orig116 cp -ar binutils-${SOURCEVERSION} binutils-${SOURCEVERSION}.orig117 118 # Apply Patches from directories119 #120 cd ~/tmp/binutils-${SOURCEVERSION}121 PATCH_FILES=$(ls ${PATCH_DIR}/${VERSION}/*.patch)122 if [ "${PATCH_FILES}" != "" ]; then123 for pfile in ${PATCH_FILES}; do124 echo "Applying - ${pfile}..."125 for pvalue in $(seq 0 5); do126 patch --dry-run -Np${pvalue} -i ${pfile} > /dev/null 2>&1127 if [ "${?}" = "0" ]; then128 PVALUE=${pvalue}129 break130 fi131 done132 if [ "${PVALUE}" != "" ]; then133 patch -Np${PVALUE} -i ${pfile}134 else135 echo "Patch: ${pfile} Failed to Apply..."136 exit 255137 fi138 done139 fi140 141 # Cleanup Directory142 #143 cd ~/tmp/binutils-${SOURCEVERSION}144 rm -f $(find * -name "*~")145 rm -f $(find * -name "*.orig")146 rm -f $(find * -name "*.rej")147 rm -f *.orig *~ *.rej148 149 # Create Patch150 #151 cd ~/tmp152 install -d ~/patches153 echo "Submitted By: Jim Gifford (jim at cross-lfs dot org)" > ~/patches/binutils-${SOURCEVERSION}-fixes-${PATCH_NUM2}.patch154 echo "Date: `date +%m-%d-%Y`" >> ~/patches/binutils-${SOURCEVERSION}-fixes-${PATCH_NUM2}.patch155 echo "Initial Package Version: ${VERSION}" >> ~/patches/binutils-${SOURCEVERSION}-fixes-${PATCH_NUM2}.patch156 echo "Origin: Upstream" >> ~/patches/binutils-${SOURCEVERSION}-fixes-${PATCH_NUM2}.patch157 echo "Upstream Status: Applied" >> ~/patches/binutils-${SOURCEVERSION}-fixes-${PATCH_NUM2}.patch158 echo "Description: This Patch contains fixes for binutils-${SOURCEVERSION}, and should be" >> ~/patches/binutils-${SOURCEVERSION}-fixes-${PATCH_NUM2}.patch159 echo " rechecked periodically." >> ~/patches/binutils-${SOURCEVERSION}-fixes-${PATCH_NUM2}.patch160 echo "" >> ~/patches/binutils-${SOURCEVERSION}-fixes-${PATCH_NUM2}.patch161 diff -Naur binutils-${SOURCEVERSION}.orig binutils-${SOURCEVERSION} >> ~/patches/binutils-${SOURCEVERSION}-fixes-${PATCH_NUM2}.patch162 echo "Created ~/patches/binutils-${SOURCEVERSION}-fixes-${PATCH_NUM2}.patch."163 fi164 165 # Cleanup Directory166 #167 cd ~/tmp168 rm -rf binutils-${SOURCEVERSION} binutils-${SOURCEVERSION}.orig -
scripts/patch/gcc-patch.sh
r3c32719 r2cca6fd 20 20 # Download GCC Source 21 21 # 22 install -d ~/tmp 23 cd ~/tmp 22 cd /usr/src 24 23 if ! [ -e gcc-${VERSION}.tar.bz2 ]; then 25 24 wget ftp://gcc.gnu.org/pub/gcc/releases/gcc-${VERSION}/gcc-${VERSION}.tar.bz2 … … 28 27 # Set Patch Number 29 28 # 30 cd ~/tmp29 cd /usr/src 31 30 wget http://svn.cross-lfs.org/svn/repos/cross-lfs/trunk/patches/ --no-remove-listing > /dev/null 2>&1 32 31 PATCH_NUM=$(cat index.html | grep gcc | grep "${VERSION}" | grep branch_update | cut -f2 -d'"' | cut -f1 -d'"'| cut -f4 -d- | cut -f1 -d. | tail -n 1) … … 38 37 # Cleanup Directory 39 38 # 40 cd ~/tmp41 39 rm -rf gcc-${VERSION} gcc-${VERSION}.orig 42 40 tar xvf gcc-${VERSION}.tar.bz2 43 41 mv gcc-${VERSION} gcc-${VERSION}.orig 42 CURRENTDIR=$(pwd -P) 44 43 45 44 # Get Current Updates from SVN 46 45 # 47 cd ~/tmp46 cd /usr/src 48 47 NUM1=$(echo ${VERSION} | cut -f1 -d.) 49 48 NUM2=$(echo ${VERSION} | cut -f2 -d.) … … 54 53 # Add a custom version string 55 54 # 56 cd ~/tmp57 55 DATE_STAMP=$(cat gcc-${VERSION}/gcc/DATESTAMP) 58 56 echo "${VERSION}" > gcc-${VERSION}/gcc/BASE-VER … … 61 59 # Cleanup 62 60 # 63 cd ~/tmp64 61 DIRS="gcc-${VERSION} gcc-${VERSION}.orig" 65 62 for DIRECTORY in ${DIRS}; do 66 cd ~/tmp/${DIRECTORY}63 cd ${DIRECTORY} 67 64 REMOVE="ABOUT-NLS COPYING COPYING.LIB MAINTAINERS Makefile.def 68 65 Makefile.in Makefile.tpl README README.SCO BUGS FAQ LAST_UPDATED 69 66 MD5SUMS NEWS bugs.html faq.html gcc/BASE-VER gcc/DEV-PHASE 70 gcc/f/BUGS gcc/f/NEWS gcc/gengtype-lex.c" 67 gcc/f/BUGS gcc/f/NEWS gcc/c-parse.c gcc/gengtype-lex.c gcc/c-parse.y 68 gcc/gengtype-yacc.c gcc/gengtype-yacc.h gcc/java/parse-scan.c 69 gcc/java/parse.c gcc/objc/objc-parse.c gcc/objc/objc-parse.y 70 libjava/classpath/doc/cp-tools.info" 71 71 for file in ${REMOVE}; do 72 72 rm -f $file 73 73 done 74 74 for file in $(find . -name "ChangeLog*" | sed -e 's@./@@'); do 75 rm -f v${file}75 rm -f ${file} 76 76 done 77 REMVOVE_DIRS="INSTALL" 78 for dir in ${REMOVE_DIRS}; do 79 rm -rfv ${dir} 80 done 81 rm -fv fastjar/*.{1,info} gcc/doc/*.{1,info,7} gcc/fortran/*.{1,info,7} gcc/po/*.{gmo,po} 82 rm -rf libcpp/po/*.{gmo,po} libgomp/*.{1,info,7} libjava/classpath/doc/*.{1,info} 83 cd .. 77 rm -rf INSTALL 78 rm -f fastjar/*.{1,info} gcc/doc/*.{1,info,7} gcc/fortran/*.{1,info,7} 79 rm -f gcc/po/*.{gmo,po} libcpp/po/*.{gmo,po} libgomp/*.{1,info,7} 80 rm -f libjava/classpath/doc/*.{1,info} 81 cd .. 84 82 done 85 83 86 84 # Create Patch 87 85 # 88 cd ~/tmp 89 install -d ~/patches 90 echo "Submitted By: Jim Gifford (jim at cross-lfs dot org)" > ~/patches/gcc-${VERSION}-branch_update-${PATCH_NUM}.patch 91 echo "Date: `date +%m-%d-%Y`" >> ~/patches/gcc-${VERSION}-branch_update-${PATCH_NUM}.patch 92 echo "Initial Package Version: ${VERSION}" >> ~/patches/gcc-${VERSION}-branch_update-${PATCH_NUM}.patch 93 echo "Origin: Upstream" >> ~/patches/gcc-${VERSION}-branch_update-${PATCH_NUM}.patch 94 echo "Upstream Status: Applied" >> ~/patches/gcc-${VERSION}-branch_update-${PATCH_NUM}.patch 95 echo "Description: This is a branch update for gcc-${VERSION}, and should be" >> ~/patches/gcc-${VERSION}-branch_update-${PATCH_NUM}.patch 96 echo " rechecked periodically." >> ~/patches/gcc-${VERSION}-branch_update-${PATCH_NUM}.patch 97 echo "" >> ~/patches/gcc-${VERSION}-branch_update-${PATCH_NUM}.patch 98 echo "This patch was made from Revision # ${REVISION}." >> ~/patches/gcc-${VERSION}-branch_update-${PATCH_NUM}.patch 99 echo "" >> ~/patches/gcc-${VERSION}-branch_update-${PATCH_NUM}.patch 100 diff -Naur gcc-${VERSION}.orig gcc-${VERSION} >> ~/patches/gcc-${VERSION}-branch_update-${PATCH_NUM}.patch 101 echo "Created ~/patches/gcc-${VERSION}-branch_update-${PATCH_NUM}.patch." 86 cd /usr/src 87 echo "Submitted By: Jim Gifford (jim at cross-lfs dot org)" > gcc-${VERSION}-branch_update-${PATCH_NUM}.patch 88 echo "Date: `date +%m-%d-%Y`" >> gcc-${VERSION}-branch_update-${PATCH_NUM}.patch 89 echo "Initial Package Version: ${VERSION}" >> gcc-${VERSION}-branch_update-${PATCH_NUM}.patch 90 echo "Origin: Upstream" >> gcc-${VERSION}-branch_update-${PATCH_NUM}.patch 91 echo "Upstream Status: Applied" >> gcc-${VERSION}-branch_update-${PATCH_NUM}.patch 92 echo "Description: This is a branch update for gcc-${VERSION}, and should be" >> gcc-${VERSION}-branch_update-${PATCH_NUM}.patch 93 echo " rechecked periodically." >> gcc-${VERSION}-branch_update-${PATCH_NUM}.patch 94 echo "" >> gcc-${VERSION}-branch_update-${PATCH_NUM}.patch 95 echo "This patch was made from Revision # ${REVISION}." >> gcc-${VERSION}-branch_update-${PATCH_NUM}.patch 96 echo "" >> gcc-${VERSION}-branch_update-${PATCH_NUM}.patch 97 diff -Naur gcc-${VERSION}.orig gcc-${VERSION} >> gcc-${VERSION}-branch_update-${PATCH_NUM}.patch 98 echo "Created /usr/src/gcc-${VERSION}-branch_update-${PATCH_NUM}.patch." 102 99 103 100 # Create Another Copy to create fixes patch 104 101 # 105 cd ~/tmp 102 cd /usr/src 103 rm -rf gcc-${VERSION}.orig 104 cp -ar gcc-${VERSION} gcc-${VERSION}.orig 105 106 # Apply Patches from directories 107 # 108 cd /usr/src/gcc-${VERSION} 106 109 if [ -e ${PATCH_DIR}/${VERSION} ]; then 107 rm -rf gcc-${VERSION}.orig108 cp -ar gcc-${VERSION} gcc-${VERSION}.orig109 110 # Apply Patches from directories111 #112 cd ~/tmp/gcc-${VERSION}113 110 PATCH_FILES=$(ls ${PATCH_DIR}/${VERSION}/*.patch) 114 111 if [ "${PATCH_FILES}" != "" ]; then … … 130 127 done 131 128 fi 132 133 # Cleanup Directory134 #135 cd ~/tmp/gcc-${VERSION}136 rm -f $(find * -name "*~")137 rm -f $(find * -name "*.orig")138 rm -f $(find * -name "*.rej")139 rm -f *.orig *~ *.rej140 141 # Create Patch142 #143 cd ~/tmp144 install -d ~/patches145 echo "Submitted By: Jim Gifford (jim at cross-lfs dot org)" > ~/patches/gcc-${VERSION}-fixes-${PATCH_NUM2}.patch146 echo "Date: `date +%m-%d-%Y`" >> ~/patches/gcc-${VERSION}-fixes-${PATCH_NUM2}.patch147 echo "Initial Package Version: ${VERSION}" >> ~/patches/gcc-${VERSION}-fixes-${PATCH_NUM2}.patch148 echo "Origin: Upstream" >> ~/patches/gcc-${VERSION}-fixes-${PATCH_NUM2}.patch149 echo "Upstream Status: Applied" >> ~/patches/gcc-${VERSION}-fixes-${PATCH_NUM2}.patch150 echo "Description: This Patch contains fixes for gcc-${VERSION}, and should be" >> ~/patches/gcc-${VERSION}-fixes-${PATCH_NUM2}.patch151 echo " rechecked periodically." >> ~/patches/gcc-${VERSION}-fixes-${PATCH_NUM2}.patch152 echo "" >> ~/patches/gcc-${VERSION}-fixes-${PATCH_NUM2}.patch153 diff -Naur gcc-${VERSION}.orig gcc-${VERSION} >> ~/patches/gcc-${VERSION}-fixes-${PATCH_NUM2}.patch154 echo "Created ~/patches/gcc-${VERSION}-fixes-${PATCH_NUM2}.patch."155 129 fi 156 130 157 131 # Cleanup Directory 158 132 # 159 cd ~/tmp 160 rm -rf gcc-${VERSION} gcc-${VERSION}.orig 133 134 for dir in $(find * -type d); do 135 cd /usr/src/gcc-${VERSION}/${dir} 136 for file in $(find . -name '*~'); do 137 rm -f ${file} 138 done 139 for file in $(find . -name '*.orig'); do 140 rm -f ${file} 141 done 142 for file in $(find . -name '*.rej'); do 143 rm -f ${file} 144 done 145 done 146 cd /usr/src/gcc-${VERSION}/ 147 rm -rf *.orig *~ *.rej 148 149 # Create Patch 150 # 151 cd /usr/src 152 echo "Submitted By: Jim Gifford (jim at cross-lfs dot org)" > gcc-${VERSION}-fixes-${PATCH_NUM2}.patch 153 echo "Date: `date +%m-%d-%Y`" >> gcc-${VERSION}-fixes-${PATCH_NUM2}.patch 154 echo "Initial Package Version: ${VERSION}" >> gcc-${VERSION}-fixes-${PATCH_NUM2}.patch 155 echo "Origin: Upstream" >> gcc-${VERSION}-fixes-${PATCH_NUM2}.patch 156 echo "Upstream Status: Applied" >> gcc-${VERSION}-fixes-${PATCH_NUM2}.patch 157 echo "Description: This Patch contains fixes for gcc-${VERSION}, and should be" >> gcc-${VERSION}-fixes-${PATCH_NUM2}.patch 158 echo " rechecked periodically." >> gcc-${VERSION}-fixes-${PATCH_NUM2}.patch 159 echo "" >> gcc-${VERSION}-fixes-${PATCH_NUM2}.patch 160 diff -Naur gcc-${VERSION}.orig gcc-${VERSION} >> gcc-${VERSION}-fixes-${PATCH_NUM2}.patch 161 echo "Created /usr/src/gcc-${VERSION}-fixes-${PATCH_NUM2}.patch." -
scripts/patch/gcc-specs-patch.sh
r3c32719 r2cca6fd 16 16 # Download GCC Source 17 17 # 18 cd ~/tmp18 cd /usr/src 19 19 if ! [ -e gcc-${VERSION}.tar.bz2 ]; then 20 20 wget ftp://gcc.gnu.org/pub/gcc/releases/gcc-${VERSION}/gcc-${VERSION}.tar.bz2 … … 23 23 # Cleanup Directory 24 24 # 25 cd ~/tmp26 25 rm -rf gcc-${VERSION} gcc-${VERSION}.orig 27 26 tar xvf gcc-${VERSION}.tar.bz2 28 27 cp -ar gcc-${VERSION} gcc-${VERSION}.orig 28 CURRENTDIR=$(pwd -P) 29 29 30 30 # Modify the Data 31 31 # 32 cd ~/tmp/gcc-${VERSION}32 cd /usr/src/gcc-${VERSION} 33 33 for file in $(find gcc/config -name "*.h"); do 34 34 if [ "$(echo ${file} | grep -c bsd)" = "0" ]; then … … 53 53 # Create Patch 54 54 # 55 cd ~/tmp 56 install -d ~/patches 57 echo "Submitted By: Jim Gifford (jim at cross-lfs dot org)" > ~/patches/gcc-${VERSION}-specs-x.patch 58 echo "Date: `date +%m-%d-%Y`" >> ~/patches/gcc-${VERSION}-specs-x.patch 59 echo "Initial Package Version: ${VERSION}" >> ~/patches/gcc-${VERSION}-specs-x.patch 60 echo "Origin: Idea originally developed by Ryan Oliver and Greg Schafer for" >> ~/patches/gcc-${VERSION}-specs-x.patch 61 echo " the Pure LFS project." >> ~/patches/gcc-${VERSION}-specs-x.patch 62 echo "Upstream Status: Not Applied" >> ~/patches/gcc-${VERSION}-specs-x.patch 63 echo "Description: This patch modifies the location of the dynamic linker for gcc-${VERSION}." >> ~/patches/gcc-${VERSION}-specs-x.patch 64 echo "" >> ~/patches/gcc-${VERSION}-specs-x.patch 65 diff -Naur gcc-${VERSION}.orig gcc-${VERSION} >> ~/patches/gcc-${VERSION}-specs-x.patch 55 cd /usr/src 56 echo "Submitted By: Jim Gifford (jim at cross-lfs dot org)" > gcc-${VERSION}-specs-x.patch 57 echo "Date: `date +%m-%d-%Y`" >> gcc-${VERSION}-specs-x.patch 58 echo "Initial Package Version: ${VERSION}" >> gcc-${VERSION}-specs-x.patch 59 echo "Origin: Idea originally developed by Ryan Oliver and Greg Schafer for" >> gcc-${VERSION}-specs-x.patch 60 echo " the Pure LFS project." >> gcc-${VERSION}-specs-x.patch 61 echo "Upstream Status: Not Applied" >> gcc-${VERSION}-specs-x.patch 62 echo "Description: This patch modifies the location of the dynamic linker for gcc-${VERSION}." >> gcc-${VERSION}-specs-x.patch 63 echo "" >> gcc-${VERSION}-specs-x.patch 64 diff -Naur gcc-${VERSION}.orig gcc-${VERSION} >> gcc-${VERSION}-specs-x.patch 66 65 67 66 # Cleanup Directory 68 67 # 69 cd ~/tmp70 68 rm -rf gcc-${VERSION} gcc-${VERSION}.orig 71 69 tar xvf gcc-${VERSION}.tar.bz2 72 70 cp -ar gcc-${VERSION} gcc-${VERSION}.orig 71 CURRENTDIR=$(pwd -P) 73 72 74 73 # Modify the Data 75 74 # 76 cd ~/tmp/gcc-${VERSION}75 cd /usr/src/gcc-${VERSION} 77 76 for file in $(find gcc/config -name "*.h"); do 78 77 if [ "$(echo ${file} | grep -c bsd)" = "0" ]; then … … 99 98 # Create Patch 100 99 # 101 cd ~/tmp 102 install -d ~/patches 103 echo "Submitted By: Jim Gifford (jim at cross-lfs dot org)" > ~/patches/gcc-${VERSION}-pure64_specs-x.patch 104 echo "Date: `date +%m-%d-%Y`" >> ~/patches/gcc-${VERSION}-pure64_specs-x.patch 105 echo "Initial Package Version: ${VERSION}" >> ~/patches/gcc-${VERSION}-pure64_specs-x.patch 106 echo "Origin: Idea originally developed by Ryan Oliver and Greg Schafer for" >> ~/patches/gcc-${VERSION}-pure64_specs-x.patch 107 echo " the Pure LFS project." >> ~/patches/gcc-${VERSION}-pure64_specs-x.patch 108 echo "Upstream Status: Not Applied" >> ~/patches/gcc-${VERSION}-pure64_specs-x.patch 109 echo "Description: This patch modifies the location of the dynamic linker for gcc-${VERSION}." >> ~/patches/gcc-${VERSION}-pure64_specs-x.patch 110 echo "" >> ~/patches/gcc-${VERSION}-pure64_specs-x.patch 111 diff -Naur gcc-${VERSION}.orig gcc-${VERSION} >> ~/patches/gcc-${VERSION}-pure64_specs-x.patch 100 cd /usr/src 101 echo "Submitted By: Jim Gifford (jim at cross-lfs dot org)" > gcc-${VERSION}-pure64_specs-x.patch 102 echo "Date: `date +%m-%d-%Y`" >> gcc-${VERSION}-pure64_specs-x.patch 103 echo "Initial Package Version: ${VERSION}" >> gcc-${VERSION}-pure64_specs-x.patch 104 echo "Origin: Idea originally developed by Ryan Oliver and Greg Schafer for" >> gcc-${VERSION}-pure64_specs-x.patch 105 echo " the Pure LFS project." >> gcc-${VERSION}-pure64_specs-x.patch 106 echo "Upstream Status: Not Applied" >> gcc-${VERSION}-pure64_specs-x.patch 107 echo "Description: This patch modifies the location of the dynamic linker for gcc-${VERSION}." >> gcc-${VERSION}-pure64_specs-x.patch 108 echo "" >> gcc-${VERSION}-pure64_specs-x.patch 109 diff -Naur gcc-${VERSION}.orig gcc-${VERSION} >> gcc-${VERSION}-pure64_specs-x.patch 112 110 113 111 # Cleanup Directory 114 112 # 115 cd ~/tmp116 113 rm -rf gcc-${VERSION} gcc-${VERSION}.orig 117 114 tar xvf gcc-${VERSION}.tar.bz2 … … 121 118 # Modify the Data 122 119 # 123 cd ~/tmp/gcc-${VERSION}120 cd /usr/src/gcc-${VERSION} 124 121 for file in $(find gcc/config -name "*.h"); do 125 122 if [ "$(echo ${file} | grep -c bsd)" = "0" ]; then … … 154 151 # Create Patch 155 152 # 156 cd ~/tmp 157 install -d ~/patches 158 echo "Submitted By: Jim Gifford (jim at cross-lfs dot org)" > ~/patches/gcc-${VERSION}-pure64-x.patch 159 echo "Date: `date +%m-%d-%Y`" >> ~/patches/gcc-${VERSION}-pure64-x.patch 160 echo "Initial Package Version: ${VERSION}" >> ~/patches/gcc-${VERSION}-pure64-x.patch 161 echo "Origin: Idea originally developed by Ryan Oliver and Greg Schafer for" >> ~/patches/gcc-${VERSION}-pure64-x.patch 162 echo " the Pure LFS project." >> ~/patches/gcc-${VERSION}-pure64-x.patch 163 echo "Upstream Status: Not Applied" >> ~/patches/gcc-${VERSION}-pure64-x.patch 164 echo "Description: This patch modifies the location of the dynamic linker for gcc-${VERSION}." >> ~/patches/gcc-${VERSION}-pure64-x.patch 165 echo "" >> ~/patches/gcc-${VERSION}-pure64-x.patch 166 diff -Naur gcc-${VERSION}.orig gcc-${VERSION} >> ~/patches/gcc-${VERSION}-pure64-x.patch 153 cd /usr/src 154 echo "Submitted By: Jim Gifford (jim at cross-lfs dot org)" > gcc-${VERSION}-pure64-x.patch 155 echo "Date: `date +%m-%d-%Y`" >> gcc-${VERSION}-pure64-x.patch 156 echo "Initial Package Version: ${VERSION}" >> gcc-${VERSION}-pure64-x.patch 157 echo "Origin: Idea originally developed by Ryan Oliver and Greg Schafer for" >> gcc-${VERSION}-pure64-x.patch 158 echo " the Pure LFS project." >> gcc-${VERSION}-pure64-x.patch 159 echo "Upstream Status: Not Applied" >> gcc-${VERSION}-pure64-x.patch 160 echo "Description: This patch modifies the location of the dynamic linker for gcc-${VERSION}." >> gcc-${VERSION}-pure64-x.patch 161 echo "" >> gcc-${VERSION}-pure64-x.patch 162 diff -Naur gcc-${VERSION}.orig gcc-${VERSION} >> gcc-${VERSION}-pure64-x.patch 167 163 168 echo "Created ~/patches/gcc-${VERSION}-specs-x.patch." 169 echo "Created ~/patches/gcc-${VERSION}-pure64_specs-x.patch." 170 echo "Created ~/patches/gcc-${VERSION}-pure64-x.patch." 171 172 # Cleanup Directory 173 # 174 cd ~/tmp 175 rm -rf gcc-${VERSION} gcc-${VERSION}.orig 164 echo "Created /usr/src/gcc-${VERSION}-specs-x.patch." 165 echo "Created /usr/src/gcc-${VERSION}-pure64_specs-x.patch." 166 echo "Created /usr/src/gcc-${VERSION}-pure64-x.patch." -
scripts/patch/ncurses-patch.sh
r3c32719 r2cca6fd 16 16 # Get Patch Names 17 17 # 18 cd ~/tmp18 cd /usr/src 19 19 wget ftp://invisible-island.net/ncurses/${VERSION}/ --no-remove-listing 20 20 ROLLUP=$(cat index.html | grep bz2 | cut -f2 -d'>' | cut -f1 -d'<' | tail -n 1) … … 26 26 # Download Ncurses Source 27 27 # 28 cd ~/tmp29 28 if ! [ -e ncurses-${VERSION}.tar.gz ]; then 30 29 wget ftp://invisible-island.net/ncurses/ncurses-${VERSION}.tar.gz … … 33 32 # Set Patch Number 34 33 # 35 cd ~/tmp34 cd /usr/src 36 35 wget http://svn.cross-lfs.org/svn/repos/cross-lfs/trunk/patches/ --no-remove-listing 37 36 PATCH_NUM=$(cat index.html | grep ncurses | grep "${VERSION}" | grep branch_update | cut -f2 -d'"' | cut -f1 -d'"'| cut -f4 -d- | cut -f1 -d. | tail -n 1) … … 41 40 # Cleanup Directory 42 41 # 43 cd ~/tmp44 42 rm -rf ncurses-${VERSION} ncurses-${VERSION}.orig 45 43 tar xvf ncurses-${VERSION}.tar.gz 46 44 cp -ar ncurses-${VERSION} ncurses-${VERSION}.orig 45 cd ncurses-${VERSION} 47 46 48 47 # Download and Apply Rollup Patch 49 48 # 50 cd ~/tmp/ncurses-${VERSION}51 49 CURRENTDIR=$(pwd -P) 52 mkdir ~/tmp/ncurses-${VERSION}-patches53 cd ~/tmp/ncurses-${VERSION}50 mkdir /tmp/ncurses-${VERSION} 51 cd /tmp/ncurses-${VERSION} 54 52 if [ "${ROLLUP}" != "" ]; then 55 53 echo "Getting Rollup ${ROLLUP} Patch..." 56 cd ~/tmp/ncurses-${VERSION}-patches57 54 wget --quiet ftp://invisible-island.net/ncurses/${VERSION}/${ROLLUP} 58 55 cd ${CURRENTDIR} 59 56 echo "Applying Rollup ${ROLLUP} Patch..." 60 cp ~/tmp/ncurses-${VERSION}-patches/${ROLLUP} ${CURRENTDIR}/${ROLLUP}57 cp /tmp/ncurses-${VERSION}/${ROLLUP} ${CURRENTDIR}/${ROLLUP} 61 58 bunzip2 ${ROLLUP} 62 59 ROLLUP2=$(echo ${ROLLUP} | sed -e 's/.bz2//g') … … 66 63 # Download and Apply Patches 67 64 # 68 install -d ~/tmp/ncurses-${VERSION}-patches69 cd ~/tmp/ncurses-${VERSION}70 CURRENTDIR=$(pwd -P)71 65 for file in ${FILES}; do 72 66 if [ "${ROLLPATCH}" != "" ]; then … … 76 70 fi 77 71 if [ "${TEST}" = "0" ]; then 78 cd ~/tmp/ncurses-${VERSION}-patches72 cd /tmp/ncurses-${VERSION} 79 73 echo "Getting Patch ${file}..." 80 74 wget --quiet ftp://invisible-island.net/ncurses/${VERSION}/${file} 81 75 cd ${CURRENTDIR} 82 gunzip -c ~/tmp/ncurses-${VERSION}-patches/${file} | patch --dry-run -s -f -Np176 gunzip -c /tmp/ncurses-${VERSION}/${file} | patch --dry-run -s -f -Np1 83 77 if [ "$?" = "0" ]; then 84 78 echo "Apply Patch ${file}..." 85 gunzip -c ~/tmp/ncurses-${VERSION}-patches/${file} | patch -Np179 gunzip -c /tmp/ncurses-${VERSION}/${file} | patch -Np1 86 80 LASTFILE=$(echo ${file} | cut -f2 -d. | cut -f2 -d-) 87 81 fi … … 91 85 # Cleanup Directory 92 86 # 93 cd ~/tmp 94 cd ncurses-${VERSION} 87 # Cleanup Directory 88 # 95 89 for dir in $(find * -type d); do 96 cd ~/tmp/ncurses-${VERSION}/${dir}90 cd /usr/src/ncurses-${VERSION}/${dir} 97 91 for file in $(find . -name '*~'); do 98 92 rm -f ${file} … … 102 96 done 103 97 done 104 cd ~/tmp/ncurses-${VERSION}98 cd /usr/src/ncurses-${VERSION} 105 99 rm -f *~ *.orig 106 100 107 101 # Create Patch 108 102 # 109 cd ~/tmp 110 echo "Submitted By: Jim Gifford (jim at cross-lfs dot org)" > ~/patches/ncurses-${VERSION}-branch_update-${PATCH_NUM}.patch 111 echo "Date: `date +%m-%d-%Y`" >> ~/patches/ncurses-${VERSION}-branch_update-${PATCH_NUM}.patch 112 echo "Initial Package Version: ${VERSION}" >> ~/patches/ncurses-${VERSION}-branch_update-${PATCH_NUM}.patch 113 echo "Origin: Upstream" >> ~/patches/ncurses-${VERSION}-branch_update-${PATCH_NUM}.patch 114 echo "Upstream Status: Applied" >> ~/patches/ncurses-${VERSION}-branch_update-${PATCH_NUM}.patch 115 echo "Description: This is a branch update for NCurses-${VERSION}, and should be" >> ~/patches/ncurses-${VERSION}-branch_update-${PATCH_NUM}.patch 116 echo " rechecked periodically. This patch covers up to ${VERSION}-${LASTFILE}." >> ~/patches/ncurses-${VERSION}-branch_update-${PATCH_NUM}.patch 117 echo "" >> ~/patches/ncurses-${VERSION}-branch_update-${PATCH_NUM}.patch 118 diff -Naur ncurses-${VERSION}.orig ncurses-${VERSION} >> ~/patches/ncurses-${VERSION}-branch_update-${PATCH_NUM}.patch 119 echo "Created ~/patches/ncurses-${VERSION}-branch_update-${PATCH_NUM}.patch." 120 121 # Cleanup Directory 122 # 123 cd ~/tmp 124 rm -rf ncurses-${VERSION} ncurses-${VERSION}.orig 103 cd /usr/src 104 echo "Submitted By: Jim Gifford (jim at cross-lfs dot org)" > ncurses-${VERSION}-branch_update-${PATCH_NUM}.patch 105 echo "Date: `date +%m-%d-%Y`" >> ncurses-${VERSION}-branch_update-${PATCH_NUM}.patch 106 echo "Initial Package Version: ${VERSION}" >> ncurses-${VERSION}-branch_update-${PATCH_NUM}.patch 107 echo "Origin: Upstream" >> ncurses-${VERSION}-branch_update-${PATCH_NUM}.patch 108 echo "Upstream Status: Applied" >> ncurses-${VERSION}-branch_update-${PATCH_NUM}.patch 109 echo "Description: This is a branch update for NCurses-${VERSION}, and should be" >> ncurses-${VERSION}-branch_update-${PATCH_NUM}.patch 110 echo " rechecked periodically. This patch covers up to ${VERSION}-${LASTFILE}." >> ncurses-${VERSION}-branch_update-${PATCH_NUM}.patch 111 echo "" >> ncurses-${VERSION}-branch_update-${PATCH_NUM}.patch 112 diff -Naur ncurses-${VERSION}.orig ncurses-${VERSION} >> ncurses-${VERSION}-branch_update-${PATCH_NUM}.patch 113 echo "Created /usr/src/ncurses-${VERSION}-branch_update-${PATCH_NUM}.patch." -
scripts/patch/readline-patch.sh
r3c32719 r2cca6fd 16 16 # Get the # of Patches 17 17 # 18 cd ~/tmp18 cd /usr/src 19 19 wget ftp://ftp.cwru.edu/pub/bash/readline-${VERSION}-patches/ --no-remove-listing 20 20 VERSION2=$(echo ${VERSION} | sed -e 's/\.//g') … … 27 27 # Download Readline Source 28 28 # 29 cd ~/tmp30 29 if ! [ -e readline-${VERSION}.tar.gz ]; then 31 30 wget ftp://ftp.cwru.edu/pub/bash/readline-${VERSION}.tar.gz … … 34 33 # Set Patch Number 35 34 # 36 cd ~/tmp35 cd /usr/src 37 36 wget http://svn.cross-lfs.org/svn/repos/cross-lfs/trunk/patches/ --no-remove-listing 38 37 PATCH_NUM=$(cat index.html | grep readline | grep "${VERSION}" | grep branch_update | cut -f2 -d'"' | cut -f1 -d'"'| cut -f4 -d- | cut -f1 -d. | tail -n 1) … … 42 41 # Cleanup Directory 43 42 # 44 cd ~/tmp45 43 rm -rf readline-${VERSION} readline-${VERSION}.orig 46 44 tar xvf readline-${VERSION}.tar.gz 47 45 cp -ar readline-${VERSION} readline-${VERSION}.orig 46 cd readline-${VERSION} 47 CURRENTDIR=$(pwd -P) 48 48 49 49 # Download and Apply Patches 50 50 # 51 install -d ~/tmp/readline-${VERSION}-patches52 cd ~/tmp/readline-${VERSION}53 CURRENTDIR=$(pwd -P)54 51 PATCHURL=ftp://ftp.cwru.edu/pub/bash/readline-${VERSION}-patches 55 52 mkdir /tmp/readline-${VERSION} 56 53 COUNT=1 57 54 while [ ${COUNT} -le ${FILES} ]; do 58 cd ~/tmp/readline-${VERSION}55 cd /tmp/readline-${VERSION} 59 56 DLCOUNT="${COUNT}" 60 57 SKIPME=no … … 74 71 if [ "${SKIPME}" != "yes" ]; then 75 72 if ! [ -e ${VERSION}.${DLCOUNT} ]; then 76 cd ~/tmp/readline-${VERSION}-patches77 73 wget --quiet ${PATCHURL}/readline${VERSION2}-${DLCOUNT} 78 74 fi 79 75 cd ${CURRENTDIR} 80 patch --dry-run -s -f -Np0 -i ~/tmp/readline-${VERSION}-patches/readline${VERSION2}-${DLCOUNT}76 patch --dry-run -s -f -Np0 -i /tmp/readline-${VERSION}/readline${VERSION2}-${DLCOUNT} 81 77 if [ "$?" = "0" ]; then 82 78 echo "Patch readline${VERSION2}-${DLCOUNT} applied" 83 patch -s -Np0 -i ~/tmp/readline-${VERSION}-patches/readline${VERSION2}-${DLCOUNT}79 patch -s -Np0 -i /tmp/readline-${VERSION}/readline${VERSION2}-${DLCOUNT} 84 80 else 85 81 echo "Patch readline${VERSION2}-${DLCOUNT} not applied" 86 rm -f ~/tmp/readline-${VERSION}-patches/readline${VERSION2}-${DLCOUNT}82 rm -f /tmp/readline-${VERSION}/readline${VERSION2}-${DLCOUNT} 87 83 SKIPPED="${SKIPPED} ${DLCOUNT}" 88 84 fi … … 96 92 # 97 93 for dir in $(find * -type d); do 98 cd ~/tmp/readline-${VERSION}/${dir}94 cd /usr/src/readline-${VERSION}/${dir} 99 95 for file in $(find . -name '*~'); do 100 96 rm -f ${file} … … 104 100 done 105 101 done 106 cd ~/tmp/readline-${VERSION}102 cd /usr/src/readline-${VERSION} 107 103 rm -f *~ *.orig 108 104 109 105 # Create Patch 110 106 # 111 cd ~/tmp112 echo "Submitted By: Jim Gifford (jim at cross-lfs dot org)" > ~/patches/readline-${VERSION}-branch_update-${PATCH_NUM}.patch113 echo "Date: `date +%m-%d-%Y`" >> ~/patches/readline-${VERSION}-branch_update-${PATCH_NUM}.patch114 echo "Initial Package Version: ${VERSION}" >> ~/patches/readline-${VERSION}-branch_update-${PATCH_NUM}.patch115 echo "Origin: Upstream" >> ~/patches/readline-${VERSION}-branch_update-${PATCH_NUM}.patch116 echo "Upstream Status: Applied" >> ~/patches/readline-${VERSION}-branch_update-${PATCH_NUM}.patch117 echo "Description: Contains all upstream patches up to ${VERSION}-${FILES}" >> ~/patches/readline-${VERSION}-branch_update-${PATCH_NUM}.patch107 cd /usr/src 108 echo "Submitted By: Jim Gifford (jim at cross-lfs dot org)" > readline-${VERSION}-branch_update-${PATCH_NUM}.patch 109 echo "Date: `date +%m-%d-%Y`" >> readline-${VERSION}-branch_update-${PATCH_NUM}.patch 110 echo "Initial Package Version: ${VERSION}" >> readline-${VERSION}-branch_update-${PATCH_NUM}.patch 111 echo "Origin: Upstream" >> readline-${VERSION}-branch_update-${PATCH_NUM}.patch 112 echo "Upstream Status: Applied" >> readline-${VERSION}-branch_update-${PATCH_NUM}.patch 113 echo "Description: Contains all upstream patches up to ${VERSION}-${FILES}" >> readline-${VERSION}-branch_update-${PATCH_NUM}.patch 118 114 if [ -n "${SKIPPED}" ]; then 119 echo " Thee following patches were skipped" >> ~/patches/readline-${VERSION}-branch_update-${PATCH_NUM}.patch120 echo " ${SKIPPED}" >> ~/patches/readline-${VERSION}-branch_update-${PATCH_NUM}.patch115 echo " Thee following patches were skipped" >> readline-${VERSION}-branch_update-${PATCH_NUM}.patch 116 echo " ${SKIPPED}" >> readline-${VERSION}-branch_update-${PATCH_NUM}.patch 121 117 fi 122 echo "" >> ~/patches/readline-${VERSION}-branch_update-${PATCH_NUM}.patch 123 diff -Naur readline-${VERSION}.orig readline-${VERSION} >> ~/patches/readline-${VERSION}-branch_update-${PATCH_NUM}.patch 124 echo "Created ~/patches/readline-${VERSION}-branch_update-${PATCH_NUM}.patch." 125 126 # Cleanup Directory 127 # 128 cd ~/tmp 129 rm -rf readline-${VERSION} readline-${VERSION}.orig 118 echo "" >> readline-${VERSION}-branch_update-${PATCH_NUM}.patch 119 diff -Naur readline-${VERSION}.orig readline-${VERSION} >> readline-${VERSION}-branch_update-${PATCH_NUM}.patch 120 echo "Created /usr/src/readline-${VERSION}-branch_update-${PATCH_NUM}.patch." -
scripts/patch/vim-patch.sh
r3c32719 r2cca6fd 16 16 # Get the # of Patches 17 17 # 18 cd ~/tmp18 cd /usr/src 19 19 wget ftp://ftp.vim.org/pub/vim/patches/${VERSION}/ --no-remove-listing 20 20 FILES=$(cat index.html | grep "${VERSION}" | cut -f6 -d. | cut -f1 -d'"' | sed '/^$/d' | tail -n 1) … … 33 33 # Set Patch Number 34 34 # 35 cd ~/tmp35 cd /usr/src 36 36 wget http://svn.cross-lfs.org/svn/repos/cross-lfs/trunk/patches/ --no-remove-listing 37 37 PATCH_NUM=$(cat index.html | grep vim | grep "${VERSION}" | grep branch_update | cut -f2 -d'"' | cut -f1 -d'"'| cut -f4 -d- | cut -f1 -d. | tail -n 1) … … 44 44 tar xvf vim-${VERSION}.tar.bz2 45 45 cp -ar vim${SERIES} vim${SERIES}.orig 46 cd vim${SERIES} 47 CURRENTDIR=$(pwd -P) 46 48 47 49 # Download and Apply Patches 48 50 # 49 install -d ~/tmp/vim-${VERSION}-patches50 cd ~/tmp/vim${SERIES}51 CURRENTDIR=$(pwd -P)52 51 PATCHURL=ftp://ftp.vim.org/pub/vim/patches/${VERSION} 52 mkdir /tmp/vim-${VERSION} 53 53 COUNT=1 54 54 while [ ${COUNT} -le ${FILES} ]; do 55 cd ~/tmp/vim${SERIES}55 cd /tmp/vim-${VERSION} 56 56 DLCOUNT="${COUNT}" 57 57 SKIPME=no … … 71 71 if [ "${SKIPME}" != "yes" ]; then 72 72 if ! [ -e ${VERSION}.${DLCOUNT} ]; then 73 cd ~/tmp/vim-${VERSION}-patches74 73 wget --quiet $PATCHURL/${VERSION}.${DLCOUNT} 75 74 fi 76 75 cd $CURRENTDIR 77 patch --dry-run -s -f -Np0 -i ~/tmp/vim-${VERSION}-patches/${VERSION}.${DLCOUNT}76 patch --dry-run -s -f -Np0 -i /tmp/vim-${VERSION}/${VERSION}.${DLCOUNT} 78 77 if [ "$?" = "0" ]; then 79 78 echo "Patch ${VERSION}.${DLCOUNT} applied" 80 patch -s -Np0 -i ~/tmp/vim-${VERSION}-patches/${VERSION}.${DLCOUNT}79 patch -s -Np0 -i /tmp/vim-${VERSION}/${VERSION}.${DLCOUNT} 81 80 else 82 81 echo "Patch ${VERSION}.${DLCOUNT} not applied" 82 rm -f /tmp/vim-${VERSION}/${VERSION}.${DLCOUNT} 83 83 SKIPPED="${SKIPPED} ${DLCOUNT}" 84 84 fi … … 90 90 # 91 91 for dir in $(find * -type d); do 92 cd ~/tmp/vim${SERIES}92 cd /usr/src/vim${SERIES} 93 93 for file in $(find . -name '*~'); do 94 94 rm -f ${file} … … 98 98 done 99 99 done 100 cd ~/tmp/vim${SERIES}100 cd /usr/src/vim${SERIES} 101 101 rm -f *~ *.orig 102 102 103 103 # Create Patch 104 104 # 105 cd ~/tmp106 echo "Submitted By: Jim Gifford (jim at cross-lfs dot org)" > ~/patches/vim-${VERSION}-branch_update-${PATCH_NUM}.patch107 echo "Date: `date +%m-%d-%Y`" >> ~/patches/vim-${VERSION}-branch_update-${PATCH_NUM}.patch108 echo "Initial Package Version: ${VERSION}" >> ~/patches/vim-${VERSION}-branch_update-${PATCH_NUM}.patch109 echo "Origin: Upstream" >> ~/patches/vim-${VERSION}-branch_update-${PATCH_NUM}.patch110 echo "Upstream Status: Applied" >> ~/patches/vim-${VERSION}-branch_update-${PATCH_NUM}.patch111 echo "Description: Contains all upstream patches up to ${VERSION}.${FILES}" >> ~/patches/vim-${VERSION}-branch_update-${PATCH_NUM}.patch105 cd /usr/src 106 echo "Submitted By: Jim Gifford (jim at cross-lfs dot org)" > vim-${VERSION}-branch_update-${PATCH_NUM}.patch 107 echo "Date: `date +%m-%d-%Y`" >> vim-${VERSION}-branch_update-${PATCH_NUM}.patch 108 echo "Initial Package Version: ${VERSION}" >> vim-${VERSION}-branch_update-${PATCH_NUM}.patch 109 echo "Origin: Upstream" >> vim-${VERSION}-branch_update-${PATCH_NUM}.patch 110 echo "Upstream Status: Applied" >> vim-${VERSION}-branch_update-${PATCH_NUM}.patch 111 echo "Description: Contains all upstream patches up to ${VERSION}.${FILES}" >> vim-${VERSION}-branch_update-${PATCH_NUM}.patch 112 112 if [ -n "${SKIPPED}" ]; then 113 echo " The following patches were skipped" >> ~/patches/vim-${VERSION}-branch_update-${PATCH_NUM}.patch114 echo " ${SKIPPED}" >> ~/patches/vim-${VERSION}-branch_update-${PATCH_NUM}.patch113 echo " The following patches were skipped" >> vim-${VERSION}-branch_update-${PATCH_NUM}.patch 114 echo " ${SKIPPED}" >> vim-${VERSION}-branch_update-${PATCH_NUM}.patch 115 115 fi 116 echo "" >> ~/patches/vim-${VERSION}-branch_update-${PATCH_NUM}.patch 117 diff -Naur vim${SERIES}.orig vim${SERIES} >> ~/patches/vim-${VERSION}-branch_update-${PATCH_NUM}.patch 118 echo "Created ~/patches/vim-${VERSION}-branch_update-${PATCH_NUM}.patch." 119 120 # Cleanup Directory 121 # 122 rm -rf vim${SERIES} vim${SERIES}.orig 116 echo "" >> vim-${VERSION}-branch_update-${PATCH_NUM}.patch 117 diff -Naur vim${SERIES}.orig vim${SERIES} >> vim-${VERSION}-branch_update-${PATCH_NUM}.patch 118 echo "Created /usr/src/vim-${VERSION}-branch_update-${PATCH_NUM}.patch."
Note:
See TracChangeset
for help on using the changeset viewer.