Parent Directory
|
Revision Log
Revision 64 - (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 | 56 | # - Edit the sed scripts below to adapt the build dependencies |
| 11 : | ranke | 64 | # (don't forget distribution name) to the appropriate version of |
| 12 : | # r-base-dev | ||
| 13 : | ranke | 56 | # - Set the R version |
| 14 : | |||
| 15 : | # R version against which the software is compiled | ||
| 16 : | ranke | 63 | Rversion=2.11.0 |
| 17 : | ranke | 56 | |
| 18 : | echo Distribution is $DIST | ||
| 19 : | echo Architecture is $ARCH | ||
| 20 : | |||
| 21 : | text="Recompiled on $DIST for CRAN" | ||
| 22 : | |||
| 23 : | ranke | 61 | apt-get update |
| 24 : | pbuilder update | ||
| 25 : | ranke | 56 | |
| 26 : | ranke | 62 | #for i in vr; do |
| 27 : | 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; do | ||
| 28 : | ranke | 64 | apt-get source $i |
| 29 : | ranke | 56 | cd $i-* |
| 30 : | version=`dpkg-parsechangelog | grep ^Version | cut -f2 -d " "`~$DIST"cran".$Rversion | ||
| 31 : | ranke | 60 | dch -b -v $version --force-distribution -D $DIST-cran $text |
| 32 : | ranke | 56 | |
| 33 : | ranke | 63 | ssed -i -R '/^Build-Depends/s/r-base-dev \(>= 2\..*?\)/r-base-dev (>= 2.11.0-1~etchcran.0)/' debian/control |
| 34 : | ssed -i -R '/^Build-Depends-Indep/s/r-base-dev \(>= 2\..*?\)/r-base-dev (>= 2.11.0-1~etchcran.0)/' debian/control | ||
| 35 : | ranke | 56 | |
| 36 : | dch -a "debian/control: adapt build dependencies on r-base-dev to current backport" | ||
| 37 : | |||
| 38 : | ranke | 62 | # Reverts for etch: |
| 39 : | if [ $DIST = "etch" ] | ||
| 40 : | then | ||
| 41 : | |||
| 42 : | # In newer packages from the former VR bundle and in the new r-cran-vr dummy | ||
| 43 : | # package, there is a build dependency on debhelper >= 7.0.0, which is not | ||
| 44 : | # in etch. | ||
| 45 : | |||
| 46 : | sed -i '/^Build-Depends/s/debhelper (>= 7.0.0)/debhelper/' debian/control | ||
| 47 : | dch -a "debian/control: revert Build-Depends: to 'debhelper' since $DIST has a version < 7.0.0" | ||
| 48 : | |||
| 49 : | echo 5 > debian/compat | ||
| 50 : | dch -a "debian/compat: revert 'debhelper' compatibility level to 5" | ||
| 51 : | fi | ||
| 52 : | |||
| 53 : | 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 |
| 54 : | ranke | 56 | cd .. |
| 55 : | done |
| Johannes Ranke | ViewVC Help |
| Powered by ViewVC 1.0.1 |