summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorranke <ranke@f247ebf9-aa24-0410-a698-f940e971ad2b>2011-03-05 10:27:52 +0000
committerranke <ranke@f247ebf9-aa24-0410-a698-f940e971ad2b>2011-03-05 10:27:52 +0000
commitf5f3a124912d4bd5da816d4de5ef81f382a1c2a9 (patch)
tree09525b528cdeaf743e516c3b46a23c224131d6b7
parent1dba276bde175799eb238739e3631afb8c87fd20 (diff)
Helper scripts adapted of the backport of R 2.12.2 to lenny and squeeze published this week.
git-svn-id: svn+ssh://stiller/home/schatz/reps/r-backports@69 f247ebf9-aa24-0410-a698-f940e971ad2b
-rw-r--r--backport_others.sh8
-rw-r--r--backport_r-base.sh76
2 files changed, 11 insertions, 73 deletions
diff --git a/backport_others.sh b/backport_others.sh
index e863472..bfbf05e 100644
--- a/backport_others.sh
+++ b/backport_others.sh
@@ -12,7 +12,7 @@
# - Set the R version
# R version against which the software is compiled
-Rversion=2.12.1
+Rversion=2.12.2
echo Distribution is $DIST
echo Architecture is $ARCH
@@ -22,15 +22,15 @@ text="Recompiled on $DIST for CRAN"
apt-get update
pbuilder update
-#for i in r-cran-class; do
+#for i in boot; 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.12.1-1~lennycran.0)/' debian/control
- ssed -i -R '/^Build-Depends-Indep/s/r-base-dev \(>= 2\..*?\)/r-base-dev (>= 2.12.1-1~lennycran.0)/' debian/control
+ ssed -i -R '/^Build-Depends/s/r-base-dev \(>= 2\..*?\)/r-base-dev (>= 2.12.2-1~lennycran.0)/' debian/control
+ ssed -i -R '/^Build-Depends-Indep/s/r-base-dev \(>= 2\..*?\)/r-base-dev (>= 2.12.2-1~lennycran.0)/' debian/control
dch -a "debian/control: adapt build dependencies on r-base-dev to current backport"
diff --git a/backport_r-base.sh b/backport_r-base.sh
index 63a821e..d8c04f1 100644
--- a/backport_r-base.sh
+++ b/backport_r-base.sh
@@ -45,7 +45,12 @@ echo CRAN version is $cranversion
# Add new version to changelog
dch -v "${cranversion}" --force-distribution -D $DIST-cran -b "Backport from Debian unstable to Debian $DIST"
-# Reverts for lenny and etch:
+# Reverts for squeeze and lenny:
+# None at present
+
+# Reverts for lenny only:
+if [ $DIST = "lenny" ]
+then
# 1. Starting with Debian packages for R 2.9.2 there is a build dependency
# on debhelper >= 7.2.3, which is not in lenny nor etch This also means we
@@ -69,76 +74,9 @@ dch -v "${cranversion}" --force-distribution -D $DIST-cran -b "Backport from Deb
sed -i '/^Build-Depends/s/, liblzma-dev//' debian/control
dch -a "debian/control: Remove dependency to liblzma-dev as it is not available in ${DISTRIB_DESCRIPTION}. As a consequence, the version provided in the R sources is used"
-
-# Reverts for etch only:
-if [ $DIST = "etch" ]
-then
- # 1. Starting with Debian packages for R 2.6.1-2, the build dependency
- # to 'refblas3-dev|atlas3-base-dev' is changed to 'libblas-dev' to
- # use the new gfortran-built BLAS libraries. From R 2.7.0, the
- # dependency is on 'libblas-dev | libatlas-base-dev' for
- # r-base-dev.
-
- sed -i '/^Build-Depends/s/libblas-dev/refblas3-dev|atlas3-base-dev/' debian/control
- sed -i '/^Depends/s/libblas-dev | libatlas-base-dev/refblas3-dev|atlas3-base-dev/' debian/control
- dch -a "debian/control: revert Build-Depends: to 'refblas3-dev|atlas3-base-dev' and Depends: to 'refblas3-dev|atlas3-base-dev' since etch does not have the new gfortran-built BLAS libraries"
-
- # 2. Starting with Debian packages for R 2.6.2, new build dependency
- # on liblapack-dev to switch back to using Debian's Lapack rather
- # than the version supplied by R. From R 2.7.0, the dependency is
- # on 'liblapack-dev (>= 3.1.1)' for r-base and 'liblapack-dev |
- # libatlas-base-dev' for r-base-dev.
-
- sed -i '/^Build-Depends/s/liblapack-dev (>= 3.1.1), //' debian/control
- sed -i '/^Depends/s/liblapack-dev | libatlas-base-dev, //' debian/control
- dch -a "debian/control: revert Build-Depends: and Depends: fields since we use the Lapack supplied with R"
- sed -i '/^lapack/{
- s/lapack/\#lapack/
- a\
- # jr 24 Apr 2008 Set to =no for Debian etch
- a\lapack = --with-lapack=no
- }' debian/rules
- dch -a "debian/rules: Accordingly, do not configure --with-lapack"
-
- # 3. Requirement for tk8.4 >= 8.4.16-2 introduced in r-base 2.6.0-4 to
- # circumvent a breakage with 8.4.16-1. The version in etch is 8.4.12-1etch2.
-
- rm debian/shlibs.local
- dch -a "delete debian/shlibs.local since the dependency on tk8.4 is not an issue for Debian etch"
-
- # 4. The TeX distribution in etch is tetex
-
- sed -i '/^Build-Depends/s/texlive-base, texlive-latex-base, texlive-generic-recommended, texlive-fonts-recommended, texlive-extra-utils, texlive-latex-recommended, texlive-latex-extra, texinfo, texi2html/tetex-bin, tetex-extra/' debian/control
- dch -a "debian/control: revert Build-Depends: to 'tetex-bin, tetex-extra' since etch does not have texlive"
-
- # 5. xauth is part of xbase-clients in etch
-
- sed -i '/^Build-Depends/s/xauth/xbase-clients/' debian/control
- dch -a "debian/control: replace xauth by xbase-clients in Build-Depends:"
-
- # 6. Tcl and TK are 8.4 on Debian etch
-
- sed -i '/^Build-Depends/s/ tcl8.5-dev/tcl8.4-dev/' debian/control
- sed -i '/^Build-Depends/s/ tk8.5-dev/tk8.4-dev/' debian/control
- dch -a "debian/control: revert build dependence for tcl/tk to 8.4"
-
- # 7. Openjdk is not in etch
-
- sed -i '/^Build-Depends/s/, openjdk-6-jdk \[!arm !hppa !kfreebsd-i386 !kfreebsd-amd64 !hurd-i386\]//' debian/control
- dch -a "debian/control: Remove build dependence on openjdk"
-
- # 8. Debhelper in etch is 5.0.42
-
- echo 5 > debian/compat
- dch -a "debian/compat: revert 'debhelper' compatibility level to 5"
-
- # 9. R 2.9.0 wants ucf >= 3.0 which is not available in etch (2.0020)
-
- sed -i 's/ucf (>= 3.0)/ucf/' debian/control
- dch -a "debian/control: revert Depends: of r-base-core to 'ucf' since the version in etch is < 3.0"
fi
-#pbuilder update
+pbuilder update
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
if [ $? -ne 0 ]; then
exit

Contact - Imprint