Parent Directory
|
Revision Log
Revision 66 - (view) (download) (as text)
| 1 : | ranke | 56 | # Author: Johannes Ranke <jranke@uni-bremen.de> |
| 2 : | |||
| 3 : | ranke | 61 | # On Debian I used to run this script as root. On Ubuntu I now run it with |
| 4 : | # sudo -E sh backport_others.sh | ||
| 5 : | |||
| 6 : | ranke | 56 | # Preconditions: - shell variables DIST and ARCH |
| 7 : | ranke | 64 | # - current R backport in /etc/apt/sources/list |
| 8 : | ranke | 56 | # - sid sources in /etc/apt/sources/list |
| 9 : | ranke | 61 | # - ssed and cdbs installed (and maybe more) |
| 10 : | ranke | 65 | # - Edit R version and the sed scripts below (don't forget |
| 11 : | # distribution name) to the appropriate version of R | ||
| 12 : | ranke | 56 | # - Set the R version |
| 13 : | |||
| 14 : | # R version against which the software is compiled | ||
| 15 : | ranke | 65 | Rversion=2.11.1 |
| 16 : | ranke | 56 | |
| 17 : | echo Distribution is $DIST | ||
| 18 : | echo Architecture is $ARCH | ||
| 19 : | |||
| 20 : | text="Recompiled on $DIST for CRAN" | ||
| 21 : | |||
| 22 : | ranke | 61 | apt-get update |
| 23 : | pbuilder update | ||
| 24 : | ranke | 56 | |
| 25 : | ranke | 66 | #for i in r-cran-class; do |
| 26 : | ranke | 65 | for i in boot cluster codetools foreign kernsmooth lattice mgcv nlme r-cran-class r-cran-spatial r-cran-nnet r-cran-mass rmatrix rodbc rpart survival littler rpy; do |
| 27 : | ranke | 64 | apt-get source $i |
| 28 : | ranke | 56 | cd $i-* |
| 29 : | version=`dpkg-parsechangelog | grep ^Version | cut -f2 -d " "`~$DIST"cran".$Rversion | ||
| 30 : | ranke | 60 | dch -b -v $version --force-distribution -D $DIST-cran $text |
| 31 : | ranke | 56 | |
| 32 : | ranke | 65 | ssed -i -R '/^Build-Depends/s/r-base-dev \(>= 2\..*?\)/r-base-dev (>= 2.11.1-1~etchcran.0)/' debian/control |
| 33 : | ssed -i -R '/^Build-Depends-Indep/s/r-base-dev \(>= 2\..*?\)/r-base-dev (>= 2.11.1-1~etchcran.0)/' debian/control | ||
| 34 : | ranke | 56 | |
| 35 : | dch -a "debian/control: adapt build dependencies on r-base-dev to current backport" | ||
| 36 : | |||
| 37 : | ranke | 66 | # Backport r-cran-class |
| 38 : | if [ ${i} = "r-cran-class" ] | ||
| 39 : | then | ||
| 40 : | sed -i '/^Build-Depends/s/.*/&, r-cran-mass/' debian/control | ||
| 41 : | dch -a "debian/control: add Build-Depends: to 'r-cran-mass'" | ||
| 42 : | fi | ||
| 43 : | |||
| 44 : | ranke | 65 | # Backport rpy |
| 45 : | if [ ${i} = "rpy" ] | ||
| 46 : | ranke | 62 | then |
| 47 : | ranke | 65 | sed -i '/^Build-Depends/s/debhelper (>= 7.2.17)/debhelper/' debian/control |
| 48 : | dch -a "debian/control: revert Build-Depends: to 'debhelper' since lenny has a version of debhelper < 7.2.17" | ||
| 49 : | sed -i '/^Build-Depends/s/python-numpy (>= 1:1.3.0)/python-numpy/' debian/control | ||
| 50 : | dch -a "debian/control: revert Build-Depends: to 'python-numpy' since lenny has a version of python-numpy < 1.3.0" | ||
| 51 : | sed -i '/^Depends/s/python-numpy (>= 1:1.3.0)/python-numpy/' debian/control | ||
| 52 : | dch -a "debian/control: revert Depends: to 'python-numpy' since lenny has a version of python-numpy < 1.3.0" | ||
| 53 : | ranke | 62 | fi |
| 54 : | |||
| 55 : | ranke | 61 | pdebuild --debbuildopts '-sa' --buildresult /home/ranke/svn/website/www/ranke/r-cran/$DIST-cran/ -- --distribution $DIST --basetgz /var/cache/pbuilder/$DIST-$ARCH-base.tgz --aptcache /var/cache/pbuilder/$DIST-$ARCH/aptcache --buildplace /var/cache/pbuilder/$DIST-$ARCH/build |
| 56 : | ranke | 56 | cd .. |
| 57 : | done |
| Johannes Ranke | ViewVC Help |
| Powered by ViewVC 1.0.1 |