Changes in / [3c32719:2cca6fd]


Ignore:
Files:
4 deleted
12 edited

Legend:

Unmodified
Added
Removed
  • BOOK/final-system/common/mpfr.xml

    r3c32719 r2cca6fd  
    3535
    3636<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>
    3938
    4039    <para os="c">Compile the package:</para>
  • BOOK/introduction/common/changelog.xml

    r3c32719 r2cca6fd  
    4141      <itemizedlist>
    4242        <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>
    5645        </listitem>
    5746      </itemizedlist>
  • BOOK/packages.ent

    r3c32719 r2cca6fd  
    357357<!ENTITY readline-home "http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html">
    358358
    359 <!ENTITY rsyslog-version "4.2.0">
    360 <!ENTITY rsyslog-size "1,365 KB">
     359<!ENTITY rsyslog-version "3.22.0">
     360<!ENTITY rsyslog-size "1,303 KB">
    361361<!ENTITY rsyslog-url "http://download.rsyslog.com/rsyslog/rsyslog-&rsyslog-version;.tar.gz">
    362 <!ENTITY rsyslog-md5 "c66650e961f23253fc926da5d35bd71f">
     362<!ENTITY rsyslog-md5 "df43878d3aa206a258e414eae59dc797">
    363363<!ENTITY rsyslog-home "http://www.rsyslog.com/">
    364364
    365 <!ENTITY sed-version "4.2.1">
    366 <!ENTITY sed-size "878 KB">
    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">
    369369<!ENTITY sed-home "&gnu-software;sed">
    370370
  • BOOK/temp-system/common/mpfr.xml

    r3c32719 r2cca6fd  
    3535<screen os="b"><userinput>./configure --prefix=/tools \
    3636    --build=${CLFS_HOST} --host=${CLFS_TARGET} \
    37     --enable-shared --with-gmp=/tools</userinput></screen>
     37    --enable-shared</userinput></screen>
    3838
    3939    <para os="c">Compile the package:</para>
  • scripts/fetch/eglibc.sh

    r3c32719 r2cca6fd  
    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
  • scripts/patch/bash-patch.sh

    r3c32719 r2cca6fd  
    1616# Get the # of Patches
    1717#
    18 install -d ~/tmp
    19 cd ~/tmp
     18cd /usr/src
    2019wget ftp://ftp.cwru.edu/pub/bash/bash-${VERSION}-patches/ --no-remove-listing
    2120VERSION2=$(echo ${VERSION} | sed -e 's/\.//g')
     
    3433# Set Patch Number
    3534#
    36 cd ~/tmp
     35cd /usr/src
    3736wget http://svn.cross-lfs.org/svn/repos/cross-lfs/trunk/patches/ --no-remove-listing
    3837PATCH_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)
     
    4241# Cleanup Directory
    4342#
    44 cd ~/tmp
    4543rm -rf bash-${VERSION} bash-${VERSION}.orig
    4644tar xvf bash-${VERSION}.tar.gz
    4745cp -ar bash-${VERSION} bash-${VERSION}.orig
     46cd bash-${VERSION}
     47CURRENTDIR=$(pwd -P)
    4848
    4949# Download and Apply Patches
    5050#
    51 install -d ~/tmp/bash-${VERSION}-patches
    52 cd ~/tmp/bash-${VERSION}
    53 CURRENTDIR=$(pwd -P)
    5451PATCHURL=ftp://ftp.cwru.edu/pub/bash/bash-${VERSION}-patches
     52mkdir /tmp/bash-${VERSION}
    5553COUNT=1
    5654while [ ${COUNT} -le ${FILES} ]; do
    57   cd ~/tmp/bash-${VERSION}           
     55  cd /tmp/bash-${VERSION}           
    5856  DLCOUNT="${COUNT}"
    5957  SKIPME=no
     
    7371  if [ "${SKIPME}" != "yes" ]; then
    7472    if ! [ -e ${VERSION}.${DLCOUNT} ]; then
    75       cd ~/tmp/bash-${VERSION}-patches
    7673      wget --quiet ${PATCHURL}/bash${VERSION2}-${DLCOUNT}
    7774    fi
    7875    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}
    8077    if [ "$?" = "0" ]; then
    8178      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}
    8380    else
    8481     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}
    8683     SKIPPED="${SKIPPED} ${DLCOUNT}"
    8784    fi
     
    9289# Cleanup Directory
    9390#
    94 cd ~/tmp/bash-${VERSION}
     91
    9592for dir in $(find * -type d); do
    96   cd ~/tmp/bash-${VERSION}/${dir}
     93  cd /usr/src/bash-${VERSION}/${dir}
    9794  for file in $(find . -name '*~'); do
    9895    rm -f ${file}
     
    10299  done
    103100done
    104 cd ~/tmp/bash-${VERSION}
     101cd /usr/src/bash-${VERSION}
    105102rm -f *~ *.orig
    106103
    107104# Create Patch
    108105#
    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
     106cd /usr/src
     107echo "Submitted By: Jim Gifford (jim at cross-lfs dot org)" > bash-${VERSION}-branch_update-${PATCH_NUM}.patch
     108echo "Date: `date +%m-%d-%Y`" >> bash-${VERSION}-branch_update-${PATCH_NUM}.patch
     109echo "Initial Package Version: ${VERSION}" >> bash-${VERSION}-branch_update-${PATCH_NUM}.patch
     110echo "Origin: Upstream" >> bash-${VERSION}-branch_update-${PATCH_NUM}.patch
     111echo "Upstream Status: Applied" >> bash-${VERSION}-branch_update-${PATCH_NUM}.patch
     112echo "Description: Contains all upstream patches up to ${VERSION}-${FILES}" >> bash-${VERSION}-branch_update-${PATCH_NUM}.patch
    117113if [ -n "${SKIPPED}" ]; then
    118   echo "             The following patches were skipped" >> ~/patches/bash-${VERSION}-branch_update-${PATCH_NUM}.patch
    119   echo "            ${SKIPPED}" >> ~/patches/bash-${VERSION}-branch_update-${PATCH_NUM}.patch
     114  echo "             The following patches were skipped" >> bash-${VERSION}-branch_update-${PATCH_NUM}.patch
     115  echo "            ${SKIPPED}" >> bash-${VERSION}-branch_update-${PATCH_NUM}.patch
    120116fi
    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
     117echo "" >> bash-${VERSION}-branch_update-${PATCH_NUM}.patch
     118diff -Naur bash-${VERSION}.orig bash-${VERSION} >> bash-${VERSION}-branch_update-${PATCH_NUM}.patch
     119echo "Created /usr/src/bash-${VERSION}-branch_update-${PATCH_NUM}.patch."
  • scripts/patch/binutils-patch.sh

    r3c32719 r2cca6fd  
    1919# Download Binutils Source
    2020#
    21 install -d ~/tmp
    22 cd ~/tmp
     21cd /usr/src
    2322if ! [ -e binutils-${SOURCEVERSION}.tar.bz2  ]; then
    2423  wget ftp://ftp.gnu.org/gnu/binutils/binutils-${SOURCEVERSION}.tar.bz2
     
    2726# Set Patch Number
    2827#
    29 cd ~/tmp
     28cd /usr/src
    3029wget http://svn.cross-lfs.org/svn/repos/cross-lfs/trunk/patches/ --no-remove-listing
    3130PATCH_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)
    3231PATCH_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)
    3532rm -f index.html
    3633
    3734# Cleanup Directory
    3835#
    39 cd ~/tmp
    4036rm -rf binutils-${SOURCEVERSION} binutils-${SOURCEVERSION}.orig
    4137tar xvf binutils-${SOURCEVERSION}.tar.bz2
     38mv binutils-${SOURCEVERSION} binutils-${SOURCEVERSION}.orig
     39CURRENTDIR=$(pwd -P)
    4240
    4341# Get Current Updates from CVS
    4442#
    45 cd ~/tmp
    46 mv binutils-${SOURCEVERSION} binutils-${SOURCEVERSION}.orig
    47 CURRENTDIR=$(pwd -P)
     43cd /usr/src
    4844FIXEDVERSION=$(echo ${VERSION} | sed -e 's/\./_/g')
    4945cvs -z 9 -d :pserver:anoncvs@sourceware.org:/cvs/src export -rbinutils-${FIXEDVERSION}-branch binutils
     
    5248# Cleanup
    5349#
    54 cd ~/tmp
    5550DIRS="binutils-${SOURCEVERSION} binutils-${SOURCEVERSION}.orig"
    5651for DIRECTORY in ${DIRS}; do
    57   cd ~/tmp/${DIRECTORY}
     52  cd /usr/src/${DIRECTORY}
    5853  FILE_LIST=".cvsignore *.gmo"
    5954  for files in ${FILE_LIST}; do
     
    7166    cd ..
    7267done
    73 cd ~/tmp/binutils-${SOURCEVERSION}
    74 rm -f ~/tmp/binutils-${SOURCEVERSION}.orig/md5.sum
     68cd /usr/src/binutils-${SOURCEVERSION}
     69rm -f /usr/src/binutils-${SOURCEVERSION}.orig/md5.sum
    7570
    7671# Make Binutils a Release
    7772#
    78 cd ~/tmp/binutils-${SOURCEVERSION}
     73cd /usr/src/binutils-${SOURCEVERSION}
    7974sed -i 's/# RELEASE=y/RELEASE=y/g' bfd/Makefile.am
    8075sed -i 's/# RELEASE=y/RELEASE=y/g' bfd/Makefile.in
     
    8277# Customize the version string, so we know it's patched
    8378#
    84 cd ~/tmp/binutils-${SOURCEVERSION}
     79cd /usr/src/binutils-${SOURCEVERSION}
    8580DATE_STAMP=$(date +%Y%m%d)
    86 cd ~/tmp/binutils-${SOURCEVERSION}
     81cd /usr/src/binutils-${SOURCEVERSION}
    8782sed -i "s:@PKGVERSION@:(GNU Binutils for Cross-LFS) :" bfd/Makefile.in
    8883sed -i "s:^[[:space:]]VERSION=\(.*\)$: VERSION=\1.${DATE_STAMP}:g" bfd/configure
     
    9085# Create Patch
    9186#
    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."
     87cd /usr/src
     88echo "Submitted By: Jim Gifford (jim at cross-lfs dot org)" > binutils-${SOURCEVERSION}-branch_update-${PATCH_NUM}.patch
     89echo "Date: `date +%m-%d-%Y`" >> binutils-${SOURCEVERSION}-branch_update-${PATCH_NUM}.patch
     90echo "Initial Package Version: ${SOURCEVERSION}" >> binutils-${SOURCEVERSION}-branch_update-${PATCH_NUM}.patch
     91echo "Origin: Upstream" >> binutils-${SOURCEVERSION}-branch_update-${PATCH_NUM}.patch
     92echo "Upstream Status: Applied" >> binutils-${SOURCEVERSION}-branch_update-${PATCH_NUM}.patch
     93echo "Description: This is a branch update for binutils-${SOURCEVERSION}, and should be" >> binutils-${SOURCEVERSION}-branch_update-${PATCH_NUM}.patch
     94echo "             rechecked periodically." >> binutils-${SOURCEVERSION}-branch_update-${PATCH_NUM}.patch
     95echo "" >> binutils-${SOURCEVERSION}-branch_update-${PATCH_NUM}.patch
     96echo "This patch was created on ${DATE_STAMP}" >> binutils-${SOURCEVERSION}-branch_update-${PATCH_NUM}.patch
     97echo "" >> binutils-${SOURCEVERSION}-branch_update-${PATCH_NUM}.patch
     98diff -Naur binutils-${SOURCEVERSION}.orig binutils-${SOURCEVERSION} >> binutils-${SOURCEVERSION}-branch_update-${PATCH_NUM}.patch
     99echo "Created /usr/src/binutils-${SOURCEVERSION}-branch_update-${PATCH_NUM}.patch."
    106100
    107101# Cleanliness is the name of my game!
    108102#
    109103unset DATE_STAMP
    110 
    111 # Create Another Copy to create fixes patch
    112 #
    113 cd ~/tmp
    114 if [ -e ${PATCH_DIR}/${VERSION} ]; then
    115   rm -rf binutils-${SOURCEVERSION}.orig
    116   cp -ar binutils-${SOURCEVERSION} binutils-${SOURCEVERSION}.orig
    117 
    118   # Apply Patches from directories
    119   #
    120   cd ~/tmp/binutils-${SOURCEVERSION}
    121   PATCH_FILES=$(ls ${PATCH_DIR}/${VERSION}/*.patch)
    122   if [ "${PATCH_FILES}" != "" ]; then
    123     for pfile in ${PATCH_FILES}; do
    124       echo "Applying - ${pfile}..."
    125       for pvalue in $(seq 0 5); do
    126         patch --dry-run -Np${pvalue} -i ${pfile} > /dev/null 2>&1
    127         if [ "${?}" = "0" ]; then
    128           PVALUE=${pvalue}
    129           break
    130         fi
    131       done
    132       if [ "${PVALUE}" != "" ]; then
    133         patch -Np${PVALUE} -i ${pfile}
    134       else
    135         echo "Patch: ${pfile} Failed to Apply..."
    136         exit 255
    137       fi
    138     done
    139   fi
    140 
    141   # Cleanup Directory
    142   #
    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 *~ *.rej
    148 
    149   # Create Patch
    150   #
    151   cd ~/tmp
    152   install -d ~/patches
    153   echo "Submitted By: Jim Gifford (jim at cross-lfs dot org)" > ~/patches/binutils-${SOURCEVERSION}-fixes-${PATCH_NUM2}.patch
    154   echo "Date: `date +%m-%d-%Y`" >> ~/patches/binutils-${SOURCEVERSION}-fixes-${PATCH_NUM2}.patch
    155   echo "Initial Package Version: ${VERSION}" >> ~/patches/binutils-${SOURCEVERSION}-fixes-${PATCH_NUM2}.patch
    156   echo "Origin: Upstream" >> ~/patches/binutils-${SOURCEVERSION}-fixes-${PATCH_NUM2}.patch
    157   echo "Upstream Status: Applied" >> ~/patches/binutils-${SOURCEVERSION}-fixes-${PATCH_NUM2}.patch
    158   echo "Description: This Patch contains fixes for binutils-${SOURCEVERSION}, and should be" >> ~/patches/binutils-${SOURCEVERSION}-fixes-${PATCH_NUM2}.patch
    159   echo "             rechecked periodically." >> ~/patches/binutils-${SOURCEVERSION}-fixes-${PATCH_NUM2}.patch
    160   echo "" >> ~/patches/binutils-${SOURCEVERSION}-fixes-${PATCH_NUM2}.patch
    161   diff -Naur binutils-${SOURCEVERSION}.orig binutils-${SOURCEVERSION} >> ~/patches/binutils-${SOURCEVERSION}-fixes-${PATCH_NUM2}.patch
    162   echo "Created ~/patches/binutils-${SOURCEVERSION}-fixes-${PATCH_NUM2}.patch."
    163 fi
    164 
    165 # Cleanup Directory
    166 #
    167 cd ~/tmp
    168 rm -rf binutils-${SOURCEVERSION} binutils-${SOURCEVERSION}.orig
  • scripts/patch/gcc-patch.sh

    r3c32719 r2cca6fd  
    2020# Download GCC Source
    2121#
    22 install -d ~/tmp
    23 cd ~/tmp
     22cd /usr/src
    2423if ! [ -e gcc-${VERSION}.tar.bz2  ]; then
    2524  wget ftp://gcc.gnu.org/pub/gcc/releases/gcc-${VERSION}/gcc-${VERSION}.tar.bz2
     
    2827# Set Patch Number
    2928#
    30 cd ~/tmp
     29cd /usr/src
    3130wget http://svn.cross-lfs.org/svn/repos/cross-lfs/trunk/patches/ --no-remove-listing > /dev/null 2>&1
    3231PATCH_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)
     
    3837# Cleanup Directory
    3938#
    40 cd ~/tmp
    4139rm -rf gcc-${VERSION} gcc-${VERSION}.orig
    4240tar xvf gcc-${VERSION}.tar.bz2
    4341mv gcc-${VERSION} gcc-${VERSION}.orig
     42CURRENTDIR=$(pwd -P)
    4443
    4544# Get Current Updates from SVN
    4645#
    47 cd ~/tmp
     46cd /usr/src
    4847NUM1=$(echo ${VERSION} | cut -f1 -d.)
    4948NUM2=$(echo ${VERSION} | cut -f2 -d.)
     
    5453# Add a custom version string
    5554#
    56 cd ~/tmp
    5755DATE_STAMP=$(cat gcc-${VERSION}/gcc/DATESTAMP)
    5856echo "${VERSION}" > gcc-${VERSION}/gcc/BASE-VER
     
    6159# Cleanup
    6260#
    63 cd ~/tmp
    6461DIRS="gcc-${VERSION} gcc-${VERSION}.orig"
    6562for DIRECTORY in ${DIRS}; do
    66   cd ~/tmp/${DIRECTORY}
     63  cd ${DIRECTORY}
    6764  REMOVE="ABOUT-NLS COPYING COPYING.LIB MAINTAINERS Makefile.def
    6865    Makefile.in Makefile.tpl README README.SCO BUGS FAQ LAST_UPDATED
    6966    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"
    7171  for file in ${REMOVE}; do
    7272    rm -f $file
    7373  done
    7474  for file in $(find . -name "ChangeLog*" | sed -e 's@./@@'); do
    75     rm -fv ${file}
     75    rm -f ${file}
    7676  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 ..
    8482done
    8583
    8684# Create Patch
    8785#
    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."
     86cd /usr/src
     87echo "Submitted By: Jim Gifford (jim at cross-lfs dot org)" > gcc-${VERSION}-branch_update-${PATCH_NUM}.patch
     88echo "Date: `date +%m-%d-%Y`" >> gcc-${VERSION}-branch_update-${PATCH_NUM}.patch
     89echo "Initial Package Version: ${VERSION}" >> gcc-${VERSION}-branch_update-${PATCH_NUM}.patch
     90echo "Origin: Upstream" >> gcc-${VERSION}-branch_update-${PATCH_NUM}.patch
     91echo "Upstream Status: Applied" >> gcc-${VERSION}-branch_update-${PATCH_NUM}.patch
     92echo "Description: This is a branch update for gcc-${VERSION}, and should be" >> gcc-${VERSION}-branch_update-${PATCH_NUM}.patch
     93echo "             rechecked periodically." >> gcc-${VERSION}-branch_update-${PATCH_NUM}.patch
     94echo "" >> gcc-${VERSION}-branch_update-${PATCH_NUM}.patch
     95echo "This patch was made from Revision # ${REVISION}." >> gcc-${VERSION}-branch_update-${PATCH_NUM}.patch
     96echo "" >> gcc-${VERSION}-branch_update-${PATCH_NUM}.patch
     97diff -Naur gcc-${VERSION}.orig gcc-${VERSION} >> gcc-${VERSION}-branch_update-${PATCH_NUM}.patch
     98echo "Created /usr/src/gcc-${VERSION}-branch_update-${PATCH_NUM}.patch."
    10299
    103100# Create Another Copy to create fixes patch
    104101#
    105 cd ~/tmp
     102cd /usr/src
     103rm -rf gcc-${VERSION}.orig
     104cp -ar gcc-${VERSION} gcc-${VERSION}.orig
     105
     106# Apply Patches from directories
     107#
     108cd /usr/src/gcc-${VERSION}
    106109if [ -e ${PATCH_DIR}/${VERSION} ]; then
    107   rm -rf gcc-${VERSION}.orig
    108   cp -ar gcc-${VERSION} gcc-${VERSION}.orig
    109 
    110   # Apply Patches from directories
    111   #
    112   cd ~/tmp/gcc-${VERSION}
    113110  PATCH_FILES=$(ls ${PATCH_DIR}/${VERSION}/*.patch)
    114111  if [ "${PATCH_FILES}" != "" ]; then
     
    130127    done
    131128  fi
    132 
    133   # Cleanup Directory
    134   #
    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 *~ *.rej
    140 
    141   # Create Patch
    142   #
    143   cd ~/tmp
    144   install -d ~/patches
    145   echo "Submitted By: Jim Gifford (jim at cross-lfs dot org)" > ~/patches/gcc-${VERSION}-fixes-${PATCH_NUM2}.patch
    146   echo "Date: `date +%m-%d-%Y`" >> ~/patches/gcc-${VERSION}-fixes-${PATCH_NUM2}.patch
    147   echo "Initial Package Version: ${VERSION}" >> ~/patches/gcc-${VERSION}-fixes-${PATCH_NUM2}.patch
    148   echo "Origin: Upstream" >> ~/patches/gcc-${VERSION}-fixes-${PATCH_NUM2}.patch
    149   echo "Upstream Status: Applied" >> ~/patches/gcc-${VERSION}-fixes-${PATCH_NUM2}.patch
    150   echo "Description: This Patch contains fixes for gcc-${VERSION}, and should be" >> ~/patches/gcc-${VERSION}-fixes-${PATCH_NUM2}.patch
    151   echo "             rechecked periodically." >> ~/patches/gcc-${VERSION}-fixes-${PATCH_NUM2}.patch
    152   echo "" >> ~/patches/gcc-${VERSION}-fixes-${PATCH_NUM2}.patch
    153   diff -Naur gcc-${VERSION}.orig gcc-${VERSION} >> ~/patches/gcc-${VERSION}-fixes-${PATCH_NUM2}.patch
    154   echo "Created ~/patches/gcc-${VERSION}-fixes-${PATCH_NUM2}.patch."
    155129fi
    156130
    157131# Cleanup Directory
    158132#
    159 cd ~/tmp
    160 rm -rf gcc-${VERSION} gcc-${VERSION}.orig
     133
     134for 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
     145done
     146cd /usr/src/gcc-${VERSION}/
     147rm -rf *.orig *~ *.rej
     148
     149# Create Patch
     150#
     151cd /usr/src
     152echo "Submitted By: Jim Gifford (jim at cross-lfs dot org)" > gcc-${VERSION}-fixes-${PATCH_NUM2}.patch
     153echo "Date: `date +%m-%d-%Y`" >> gcc-${VERSION}-fixes-${PATCH_NUM2}.patch
     154echo "Initial Package Version: ${VERSION}" >> gcc-${VERSION}-fixes-${PATCH_NUM2}.patch
     155echo "Origin: Upstream" >> gcc-${VERSION}-fixes-${PATCH_NUM2}.patch
     156echo "Upstream Status: Applied" >> gcc-${VERSION}-fixes-${PATCH_NUM2}.patch
     157echo "Description: This Patch contains fixes for gcc-${VERSION}, and should be" >> gcc-${VERSION}-fixes-${PATCH_NUM2}.patch
     158echo "             rechecked periodically." >> gcc-${VERSION}-fixes-${PATCH_NUM2}.patch
     159echo "" >> gcc-${VERSION}-fixes-${PATCH_NUM2}.patch
     160diff -Naur gcc-${VERSION}.orig gcc-${VERSION} >> gcc-${VERSION}-fixes-${PATCH_NUM2}.patch
     161echo "Created /usr/src/gcc-${VERSION}-fixes-${PATCH_NUM2}.patch."
  • scripts/patch/gcc-specs-patch.sh

    r3c32719 r2cca6fd  
    1616# Download GCC Source
    1717#
    18 cd ~/tmp
     18cd /usr/src
    1919if ! [ -e gcc-${VERSION}.tar.bz2  ]; then
    2020  wget ftp://gcc.gnu.org/pub/gcc/releases/gcc-${VERSION}/gcc-${VERSION}.tar.bz2
     
    2323# Cleanup Directory
    2424#
    25 cd ~/tmp
    2625rm -rf gcc-${VERSION} gcc-${VERSION}.orig
    2726tar xvf gcc-${VERSION}.tar.bz2
    2827cp -ar gcc-${VERSION} gcc-${VERSION}.orig
     28CURRENTDIR=$(pwd -P)
    2929
    3030# Modify the Data
    3131#
    32 cd ~/tmp/gcc-${VERSION}
     32cd /usr/src/gcc-${VERSION}
    3333for file in $(find gcc/config -name "*.h"); do
    3434  if [ "$(echo ${file} | grep -c bsd)" = "0" ]; then
     
    5353# Create Patch
    5454#
    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
     55cd /usr/src
     56echo "Submitted By: Jim Gifford (jim at cross-lfs dot org)" > gcc-${VERSION}-specs-x.patch
     57echo "Date: `date +%m-%d-%Y`" >> gcc-${VERSION}-specs-x.patch
     58echo "Initial Package Version: ${VERSION}" >> gcc-${VERSION}-specs-x.patch
     59echo "Origin: Idea originally developed by Ryan Oliver and Greg Schafer for" >> gcc-${VERSION}-specs-x.patch
     60echo "        the Pure LFS project." >> gcc-${VERSION}-specs-x.patch
     61echo "Upstream Status: Not Applied" >> gcc-${VERSION}-specs-x.patch
     62echo "Description: This patch modifies the location of the dynamic linker for gcc-${VERSION}." >> gcc-${VERSION}-specs-x.patch
     63echo "" >> gcc-${VERSION}-specs-x.patch
     64diff -Naur gcc-${VERSION}.orig gcc-${VERSION} >> gcc-${VERSION}-specs-x.patch
    6665
    6766# Cleanup Directory
    6867#
    69 cd ~/tmp
    7068rm -rf gcc-${VERSION} gcc-${VERSION}.orig
    7169tar xvf gcc-${VERSION}.tar.bz2
    7270cp -ar gcc-${VERSION} gcc-${VERSION}.orig
     71CURRENTDIR=$(pwd -P)
    7372
    7473# Modify the Data
    7574#
    76 cd ~/tmp/gcc-${VERSION}
     75cd /usr/src/gcc-${VERSION}
    7776for file in $(find gcc/config -name "*.h"); do
    7877  if [ "$(echo ${file} | grep -c bsd)" = "0" ]; then
     
    9998# Create Patch
    10099#
    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
     100cd /usr/src
     101echo "Submitted By: Jim Gifford (jim at cross-lfs dot org)" > gcc-${VERSION}-pure64_specs-x.patch
     102echo "Date: `date +%m-%d-%Y`" >> gcc-${VERSION}-pure64_specs-x.patch
     103echo "Initial Package Version: ${VERSION}" >> gcc-${VERSION}-pure64_specs-x.patch
     104echo "Origin: Idea originally developed by Ryan Oliver and Greg Schafer for" >> gcc-${VERSION}-pure64_specs-x.patch
     105echo "        the Pure LFS project." >> gcc-${VERSION}-pure64_specs-x.patch
     106echo "Upstream Status: Not Applied" >> gcc-${VERSION}-pure64_specs-x.patch
     107echo "Description: This patch modifies the location of the dynamic linker for gcc-${VERSION}." >> gcc-${VERSION}-pure64_specs-x.patch
     108echo "" >> gcc-${VERSION}-pure64_specs-x.patch
     109diff -Naur gcc-${VERSION}.orig gcc-${VERSION} >> gcc-${VERSION}-pure64_specs-x.patch
    112110
    113111# Cleanup Directory
    114112#
    115 cd ~/tmp
    116113rm -rf gcc-${VERSION} gcc-${VERSION}.orig
    117114tar xvf gcc-${VERSION}.tar.bz2
     
    121118# Modify the Data
    122119#
    123 cd ~/tmp/gcc-${VERSION}
     120cd /usr/src/gcc-${VERSION}
    124121for file in $(find gcc/config -name "*.h"); do
    125122  if [ "$(echo ${file} | grep -c bsd)" = "0" ]; then
     
    154151# Create Patch
    155152#
    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
     153cd /usr/src
     154echo "Submitted By: Jim Gifford (jim at cross-lfs dot org)" > gcc-${VERSION}-pure64-x.patch
     155echo "Date: `date +%m-%d-%Y`" >> gcc-${VERSION}-pure64-x.patch
     156echo "Initial Package Version: ${VERSION}" >> gcc-${VERSION}-pure64-x.patch
     157echo "Origin: Idea originally developed by Ryan Oliver and Greg Schafer for" >> gcc-${VERSION}-pure64-x.patch
     158echo "        the Pure LFS project." >> gcc-${VERSION}-pure64-x.patch
     159echo "Upstream Status: Not Applied" >> gcc-${VERSION}-pure64-x.patch
     160echo "Description: This patch modifies the location of the dynamic linker for gcc-${VERSION}." >> gcc-${VERSION}-pure64-x.patch
     161echo "" >> gcc-${VERSION}-pure64-x.patch
     162diff -Naur gcc-${VERSION}.orig gcc-${VERSION} >> gcc-${VERSION}-pure64-x.patch
    167163
    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
     164echo "Created /usr/src/gcc-${VERSION}-specs-x.patch."
     165echo "Created /usr/src/gcc-${VERSION}-pure64_specs-x.patch."
     166echo "Created /usr/src/gcc-${VERSION}-pure64-x.patch."
  • scripts/patch/ncurses-patch.sh

    r3c32719 r2cca6fd  
    1616# Get Patch Names
    1717#
    18 cd ~/tmp
     18cd /usr/src
    1919wget ftp://invisible-island.net/ncurses/${VERSION}/ --no-remove-listing
    2020ROLLUP=$(cat index.html | grep bz2 | cut -f2 -d'>' | cut -f1 -d'<' | tail -n 1)
     
    2626# Download Ncurses Source
    2727#
    28 cd ~/tmp
    2928if ! [ -e ncurses-${VERSION}.tar.gz ]; then
    3029  wget ftp://invisible-island.net/ncurses/ncurses-${VERSION}.tar.gz
     
    3332# Set Patch Number
    3433#
    35 cd ~/tmp
     34cd /usr/src
    3635wget http://svn.cross-lfs.org/svn/repos/cross-lfs/trunk/patches/ --no-remove-listing
    3736PATCH_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)
     
    4140# Cleanup Directory
    4241#
    43 cd ~/tmp
    4442rm -rf ncurses-${VERSION} ncurses-${VERSION}.orig
    4543tar xvf ncurses-${VERSION}.tar.gz
    4644cp -ar ncurses-${VERSION} ncurses-${VERSION}.orig
     45cd ncurses-${VERSION}
    4746
    4847# Download and Apply Rollup Patch
    4948#
    50 cd ~/tmp/ncurses-${VERSION}
    5149CURRENTDIR=$(pwd -P)
    52 mkdir ~/tmp/ncurses-${VERSION}-patches
    53 cd ~/tmp/ncurses-${VERSION}
     50mkdir /tmp/ncurses-${VERSION}
     51cd /tmp/ncurses-${VERSION}
    5452if [ "${ROLLUP}" != "" ]; then
    5553  echo "Getting Rollup ${ROLLUP} Patch..."
    56   cd ~/tmp/ncurses-${VERSION}-patches
    5754  wget --quiet ftp://invisible-island.net/ncurses/${VERSION}/${ROLLUP}
    5855  cd ${CURRENTDIR}
    5956  echo "Applying Rollup ${ROLLUP} Patch..."
    60   cp ~/tmp/ncurses-${VERSION}-patches/${ROLLUP} ${CURRENTDIR}/${ROLLUP}
     57  cp /tmp/ncurses-${VERSION}/${ROLLUP} ${CURRENTDIR}/${ROLLUP}
    6158  bunzip2 ${ROLLUP}
    6259  ROLLUP2=$(echo ${ROLLUP} | sed -e 's/.bz2//g')
     
    6663# Download and Apply Patches
    6764#
    68 install -d ~/tmp/ncurses-${VERSION}-patches
    69 cd ~/tmp/ncurses-${VERSION}
    70 CURRENTDIR=$(pwd -P)
    7165for file in ${FILES}; do
    7266  if [ "${ROLLPATCH}" != "" ]; then
     
    7670  fi
    7771  if [ "${TEST}" = "0" ]; then
    78     cd ~/tmp/ncurses-${VERSION}-patches
     72    cd /tmp/ncurses-${VERSION}
    7973    echo "Getting Patch ${file}..."
    8074    wget --quiet ftp://invisible-island.net/ncurses/${VERSION}/${file}
    8175    cd ${CURRENTDIR}
    82     gunzip -c ~/tmp/ncurses-${VERSION}-patches/${file} | patch --dry-run -s -f -Np1
     76    gunzip -c /tmp/ncurses-${VERSION}/${file} | patch --dry-run -s -f -Np1
    8377    if [ "$?" = "0" ]; then
    8478      echo "Apply Patch ${file}..."
    85       gunzip -c ~/tmp/ncurses-${VERSION}-patches/${file} | patch -Np1
     79      gunzip -c /tmp/ncurses-${VERSION}/${file} | patch -Np1
    8680      LASTFILE=$(echo ${file} | cut -f2 -d. | cut -f2 -d-)
    8781    fi
     
    9185# Cleanup Directory
    9286#
    93 cd ~/tmp
    94 cd ncurses-${VERSION}
     87# Cleanup Directory
     88#
    9589for dir in $(find * -type d); do
    96   cd ~/tmp/ncurses-${VERSION}/${dir}
     90  cd /usr/src/ncurses-${VERSION}/${dir}
    9791  for file in $(find . -name '*~'); do
    9892    rm -f ${file}
     
    10296  done
    10397done
    104 cd ~/tmp/ncurses-${VERSION}
     98cd /usr/src/ncurses-${VERSION}
    10599rm -f *~ *.orig
    106100
    107101# Create Patch
    108102#
    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
     103cd /usr/src
     104echo "Submitted By: Jim Gifford (jim at cross-lfs dot org)" > ncurses-${VERSION}-branch_update-${PATCH_NUM}.patch
     105echo "Date: `date +%m-%d-%Y`" >> ncurses-${VERSION}-branch_update-${PATCH_NUM}.patch
     106echo "Initial Package Version: ${VERSION}" >> ncurses-${VERSION}-branch_update-${PATCH_NUM}.patch
     107echo "Origin: Upstream" >> ncurses-${VERSION}-branch_update-${PATCH_NUM}.patch
     108echo "Upstream Status: Applied" >> ncurses-${VERSION}-branch_update-${PATCH_NUM}.patch
     109echo "Description: This is a branch update for NCurses-${VERSION}, and should be" >> ncurses-${VERSION}-branch_update-${PATCH_NUM}.patch
     110echo "             rechecked periodically. This patch covers up to ${VERSION}-${LASTFILE}." >> ncurses-${VERSION}-branch_update-${PATCH_NUM}.patch
     111echo "" >> ncurses-${VERSION}-branch_update-${PATCH_NUM}.patch
     112diff -Naur ncurses-${VERSION}.orig ncurses-${VERSION} >> ncurses-${VERSION}-branch_update-${PATCH_NUM}.patch
     113echo "Created /usr/src/ncurses-${VERSION}-branch_update-${PATCH_NUM}.patch."
  • scripts/patch/readline-patch.sh

    r3c32719 r2cca6fd  
    1616# Get the # of Patches
    1717#
    18 cd ~/tmp
     18cd /usr/src
    1919wget ftp://ftp.cwru.edu/pub/bash/readline-${VERSION}-patches/ --no-remove-listing
    2020VERSION2=$(echo ${VERSION} | sed -e 's/\.//g')
     
    2727# Download Readline Source
    2828#
    29 cd ~/tmp
    3029if ! [ -e readline-${VERSION}.tar.gz ]; then
    3130  wget ftp://ftp.cwru.edu/pub/bash/readline-${VERSION}.tar.gz
     
    3433# Set Patch Number
    3534#
    36 cd ~/tmp
     35cd /usr/src
    3736wget http://svn.cross-lfs.org/svn/repos/cross-lfs/trunk/patches/ --no-remove-listing
    3837PATCH_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)
     
    4241# Cleanup Directory
    4342#
    44 cd ~/tmp
    4543rm -rf readline-${VERSION} readline-${VERSION}.orig
    4644tar xvf readline-${VERSION}.tar.gz
    4745cp -ar readline-${VERSION} readline-${VERSION}.orig
     46cd readline-${VERSION}
     47CURRENTDIR=$(pwd -P)
    4848
    4949# Download and Apply Patches
    5050#
    51 install -d ~/tmp/readline-${VERSION}-patches
    52 cd ~/tmp/readline-${VERSION}
    53 CURRENTDIR=$(pwd -P)
    5451PATCHURL=ftp://ftp.cwru.edu/pub/bash/readline-${VERSION}-patches
    5552mkdir /tmp/readline-${VERSION}
    5653COUNT=1
    5754while [ ${COUNT} -le ${FILES} ]; do
    58   cd ~/tmp/readline-${VERSION}           
     55  cd /tmp/readline-${VERSION}           
    5956  DLCOUNT="${COUNT}"
    6057  SKIPME=no
     
    7471  if [ "${SKIPME}" != "yes" ]; then
    7572    if ! [ -e ${VERSION}.${DLCOUNT} ]; then
    76       cd ~/tmp/readline-${VERSION}-patches
    7773      wget --quiet ${PATCHURL}/readline${VERSION2}-${DLCOUNT}
    7874    fi
    7975    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}
    8177    if [ "$?" = "0" ]; then
    8278      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}
    8480    else
    8581      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}
    8783      SKIPPED="${SKIPPED} ${DLCOUNT}"
    8884     fi
     
    9692#
    9793for dir in $(find * -type d); do
    98   cd ~/tmp/readline-${VERSION}/${dir}
     94  cd /usr/src/readline-${VERSION}/${dir}
    9995  for file in $(find . -name '*~'); do
    10096    rm -f ${file}
     
    104100  done
    105101done
    106 cd ~/tmp/readline-${VERSION}
     102cd /usr/src/readline-${VERSION}
    107103rm -f *~ *.orig
    108104
    109105# Create Patch
    110106#
    111 cd ~/tmp
    112 echo "Submitted By: Jim Gifford (jim at cross-lfs dot org)" > ~/patches/readline-${VERSION}-branch_update-${PATCH_NUM}.patch
    113 echo "Date: `date +%m-%d-%Y`" >> ~/patches/readline-${VERSION}-branch_update-${PATCH_NUM}.patch
    114 echo "Initial Package Version: ${VERSION}" >> ~/patches/readline-${VERSION}-branch_update-${PATCH_NUM}.patch
    115 echo "Origin: Upstream" >> ~/patches/readline-${VERSION}-branch_update-${PATCH_NUM}.patch
    116 echo "Upstream Status: Applied" >> ~/patches/readline-${VERSION}-branch_update-${PATCH_NUM}.patch
    117 echo "Description: Contains all upstream patches up to ${VERSION}-${FILES}" >> ~/patches/readline-${VERSION}-branch_update-${PATCH_NUM}.patch
     107cd /usr/src
     108echo "Submitted By: Jim Gifford (jim at cross-lfs dot org)" > readline-${VERSION}-branch_update-${PATCH_NUM}.patch
     109echo "Date: `date +%m-%d-%Y`" >> readline-${VERSION}-branch_update-${PATCH_NUM}.patch
     110echo "Initial Package Version: ${VERSION}" >> readline-${VERSION}-branch_update-${PATCH_NUM}.patch
     111echo "Origin: Upstream" >> readline-${VERSION}-branch_update-${PATCH_NUM}.patch
     112echo "Upstream Status: Applied" >> readline-${VERSION}-branch_update-${PATCH_NUM}.patch
     113echo "Description: Contains all upstream patches up to ${VERSION}-${FILES}" >> readline-${VERSION}-branch_update-${PATCH_NUM}.patch
    118114if [ -n "${SKIPPED}" ]; then
    119   echo "            Thee following patches were skipped" >> ~/patches/readline-${VERSION}-branch_update-${PATCH_NUM}.patch
    120   echo "            ${SKIPPED}" >> ~/patches/readline-${VERSION}-branch_update-${PATCH_NUM}.patch
     115  echo "            Thee following patches were skipped" >> readline-${VERSION}-branch_update-${PATCH_NUM}.patch
     116  echo "            ${SKIPPED}" >> readline-${VERSION}-branch_update-${PATCH_NUM}.patch
    121117fi
    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
     118echo "" >> readline-${VERSION}-branch_update-${PATCH_NUM}.patch
     119diff -Naur readline-${VERSION}.orig readline-${VERSION} >> readline-${VERSION}-branch_update-${PATCH_NUM}.patch
     120echo "Created /usr/src/readline-${VERSION}-branch_update-${PATCH_NUM}.patch."
  • scripts/patch/vim-patch.sh

    r3c32719 r2cca6fd  
    1616# Get the # of Patches
    1717#
    18 cd ~/tmp
     18cd /usr/src
    1919wget ftp://ftp.vim.org/pub/vim/patches/${VERSION}/ --no-remove-listing
    2020FILES=$(cat index.html | grep "${VERSION}" | cut -f6 -d. | cut -f1 -d'"' | sed '/^$/d' | tail -n 1)
     
    3333# Set Patch Number
    3434#
    35 cd ~/tmp
     35cd /usr/src
    3636wget http://svn.cross-lfs.org/svn/repos/cross-lfs/trunk/patches/ --no-remove-listing
    3737PATCH_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)
     
    4444tar xvf vim-${VERSION}.tar.bz2
    4545cp -ar vim${SERIES} vim${SERIES}.orig
     46cd vim${SERIES}
     47CURRENTDIR=$(pwd -P)
    4648
    4749# Download and Apply Patches
    4850#
    49 install -d ~/tmp/vim-${VERSION}-patches
    50 cd ~/tmp/vim${SERIES}
    51 CURRENTDIR=$(pwd -P)
    5251PATCHURL=ftp://ftp.vim.org/pub/vim/patches/${VERSION}
     52mkdir /tmp/vim-${VERSION}
    5353COUNT=1
    5454while [ ${COUNT} -le ${FILES} ]; do
    55   cd ~/tmp/vim${SERIES}
     55  cd /tmp/vim-${VERSION}           
    5656  DLCOUNT="${COUNT}"
    5757  SKIPME=no
     
    7171  if [ "${SKIPME}" != "yes" ]; then
    7272    if ! [ -e ${VERSION}.${DLCOUNT} ]; then
    73       cd ~/tmp/vim-${VERSION}-patches
    7473      wget --quiet $PATCHURL/${VERSION}.${DLCOUNT}
    7574    fi
    7675    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}
    7877    if [ "$?" = "0" ]; then
    7978      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}
    8180    else
    8281      echo "Patch ${VERSION}.${DLCOUNT} not applied"
     82      rm -f /tmp/vim-${VERSION}/${VERSION}.${DLCOUNT}
    8383      SKIPPED="${SKIPPED} ${DLCOUNT}"
    8484    fi
     
    9090#
    9191for dir in $(find * -type d); do
    92   cd ~/tmp/vim${SERIES}
     92  cd /usr/src/vim${SERIES}
    9393  for file in $(find . -name '*~'); do
    9494    rm -f ${file}
     
    9898  done
    9999done
    100 cd ~/tmp/vim${SERIES}
     100cd /usr/src/vim${SERIES}
    101101rm -f *~ *.orig
    102102
    103103# Create Patch
    104104#
    105 cd ~/tmp
    106 echo "Submitted By: Jim Gifford (jim at cross-lfs dot org)" > ~/patches/vim-${VERSION}-branch_update-${PATCH_NUM}.patch
    107 echo "Date: `date +%m-%d-%Y`" >> ~/patches/vim-${VERSION}-branch_update-${PATCH_NUM}.patch
    108 echo "Initial Package Version: ${VERSION}" >> ~/patches/vim-${VERSION}-branch_update-${PATCH_NUM}.patch
    109 echo "Origin: Upstream" >> ~/patches/vim-${VERSION}-branch_update-${PATCH_NUM}.patch
    110 echo "Upstream Status: Applied" >> ~/patches/vim-${VERSION}-branch_update-${PATCH_NUM}.patch
    111 echo "Description: Contains all upstream patches up to ${VERSION}.${FILES}" >> ~/patches/vim-${VERSION}-branch_update-${PATCH_NUM}.patch
     105cd /usr/src
     106echo "Submitted By: Jim Gifford (jim at cross-lfs dot org)" > vim-${VERSION}-branch_update-${PATCH_NUM}.patch
     107echo "Date: `date +%m-%d-%Y`" >> vim-${VERSION}-branch_update-${PATCH_NUM}.patch
     108echo "Initial Package Version: ${VERSION}" >> vim-${VERSION}-branch_update-${PATCH_NUM}.patch
     109echo "Origin: Upstream" >> vim-${VERSION}-branch_update-${PATCH_NUM}.patch
     110echo "Upstream Status: Applied" >> vim-${VERSION}-branch_update-${PATCH_NUM}.patch
     111echo "Description: Contains all upstream patches up to ${VERSION}.${FILES}" >> vim-${VERSION}-branch_update-${PATCH_NUM}.patch
    112112if [ -n "${SKIPPED}" ]; then
    113   echo "             The following patches were skipped" >> ~/patches/vim-${VERSION}-branch_update-${PATCH_NUM}.patch
    114   echo "            ${SKIPPED}" >> ~/patches/vim-${VERSION}-branch_update-${PATCH_NUM}.patch
     113  echo "             The following patches were skipped" >> vim-${VERSION}-branch_update-${PATCH_NUM}.patch
     114  echo "            ${SKIPPED}" >> vim-${VERSION}-branch_update-${PATCH_NUM}.patch
    115115fi
    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
     116echo "" >> vim-${VERSION}-branch_update-${PATCH_NUM}.patch
     117diff -Naur vim${SERIES}.orig vim${SERIES} >> vim-${VERSION}-branch_update-${PATCH_NUM}.patch
     118echo "Created /usr/src/vim-${VERSION}-branch_update-${PATCH_NUM}.patch."
Note: See TracChangeset for help on using the changeset viewer.