summaryrefslogtreecommitdiff
path: root/backport_others.sh
diff options
context:
space:
mode:
Diffstat (limited to 'backport_others.sh')
-rw-r--r--backport_others.sh35
1 files changed, 15 insertions, 20 deletions
diff --git a/backport_others.sh b/backport_others.sh
index f9c2bad..731ea29 100644
--- a/backport_others.sh
+++ b/backport_others.sh
@@ -7,13 +7,12 @@
# - current R backport in /etc/apt/sources/list
# - sid sources in /etc/apt/sources/list
# - ssed and cdbs installed (and maybe more)
-# - Edit the sed scripts below to adapt the build dependencies
-# (don't forget distribution name) to the appropriate version of
-# r-base-dev
+# - Edit R version and the sed scripts below (don't forget
+# distribution name) to the appropriate version of R
# - Set the R version
# R version against which the software is compiled
-Rversion=2.11.0
+Rversion=2.11.1
echo Distribution is $DIST
echo Architecture is $ARCH
@@ -23,31 +22,27 @@ text="Recompiled on $DIST for CRAN"
apt-get update
pbuilder update
-#for i in vr; do
-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
+#for i in rpy; do
+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
apt-get source $i
cd $i-*
version=`dpkg-parsechangelog | grep ^Version | cut -f2 -d " "`~$DIST"cran".$Rversion
dch -b -v $version --force-distribution -D $DIST-cran $text
- ssed -i -R '/^Build-Depends/s/r-base-dev \(>= 2\..*?\)/r-base-dev (>= 2.11.0-1~etchcran.0)/' debian/control
- ssed -i -R '/^Build-Depends-Indep/s/r-base-dev \(>= 2\..*?\)/r-base-dev (>= 2.11.0-1~etchcran.0)/' debian/control
+ ssed -i -R '/^Build-Depends/s/r-base-dev \(>= 2\..*?\)/r-base-dev (>= 2.11.1-1~etchcran.0)/' debian/control
+ ssed -i -R '/^Build-Depends-Indep/s/r-base-dev \(>= 2\..*?\)/r-base-dev (>= 2.11.1-1~etchcran.0)/' debian/control
dch -a "debian/control: adapt build dependencies on r-base-dev to current backport"
- # Reverts for etch:
- if [ $DIST = "etch" ]
+ # Backport rpy
+ if [ ${i} = "rpy" ]
then
-
- # In newer packages from the former VR bundle and in the new r-cran-vr dummy
- # package, there is a build dependency on debhelper >= 7.0.0, which is not
- # in etch.
-
- sed -i '/^Build-Depends/s/debhelper (>= 7.0.0)/debhelper/' debian/control
- dch -a "debian/control: revert Build-Depends: to 'debhelper' since $DIST has a version < 7.0.0"
-
- echo 5 > debian/compat
- dch -a "debian/compat: revert 'debhelper' compatibility level to 5"
+ sed -i '/^Build-Depends/s/debhelper (>= 7.2.17)/debhelper/' debian/control
+ dch -a "debian/control: revert Build-Depends: to 'debhelper' since lenny has a version of debhelper < 7.2.17"
+ sed -i '/^Build-Depends/s/python-numpy (>= 1:1.3.0)/python-numpy/' debian/control
+ dch -a "debian/control: revert Build-Depends: to 'python-numpy' since lenny has a version of python-numpy < 1.3.0"
+ sed -i '/^Depends/s/python-numpy (>= 1:1.3.0)/python-numpy/' debian/control
+ dch -a "debian/control: revert Depends: to 'python-numpy' since lenny has a version of python-numpy < 1.3.0"
fi
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

Contact - Imprint