summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorranke <ranke@f247ebf9-aa24-0410-a698-f940e971ad2b>2010-10-18 10:04:34 +0000
committerranke <ranke@f247ebf9-aa24-0410-a698-f940e971ad2b>2010-10-18 10:04:34 +0000
commit1bae2d9629fb88b59316bd50ada27234b12054f5 (patch)
tree3ef809117640921f176f8244b699a73296982108
parent6d7746c313ac186d66126255b639a14f0ea6e3ba (diff)
Build infrastructure used for the backport to lenny. I just noted
that I did not adjust the build dependencies of the other packages to the latest R version, but this is not critical. git-svn-id: svn+ssh://stiller/home/schatz/reps/r-backports@67 f247ebf9-aa24-0410-a698-f940e971ad2b
-rw-r--r--README25
-rw-r--r--backport_others.sh6
-rw-r--r--backport_r-base.sh9
-rw-r--r--build_others.sh2
4 files changed, 22 insertions, 20 deletions
diff --git a/README b/README
index 4055a27..3d1326f 100644
--- a/README
+++ b/README
@@ -1,20 +1,20 @@
This directory contains my scripts to build backports of R software from Debian
sid to older Debian distributions.
-Currently (2009-11-02) I am using the following setup:
+Currently (2010-10-17) I am using the following setup:
~/.pbuilderrc contains:
- NAME="$DIST-$ARCH"
- APTCACHEHARDLINK=no
- DISTRIBUTION="$DIST"
- DEBOOTSTRAPOPTS=("--arch" "$ARCH" "${DEBOOTSTRAPOPTS[@]}")
- BASETGZ="`dirname $BASETGZ`/$NAME-base.tgz"
- BUILDRESULT="/exthd/pbuilder/$NAME/result/"
- APTCACHE="/exthd/pbuilder/$NAME/aptcache/"
- MIRRORSITE="http://ftp.de.debian.org/debian/"
- OTHERMIRROR="deb http://security.debian.org $DIST/updates main|deb http://localhost/r-cran $DIST-cran/"
- COMPONENTS="main"
+ NAME="$DIST-$ARCH"
+ APTCACHEHARDLINK=yes
+ DISTRIBUTION="$DIST"
+ DEBOOTSTRAPOPTS=("--arch" "$ARCH" "${DEBOOTSTRAPOPTS[@]}")
+ BASETGZ="`dirname $BASETGZ`/$NAME-base.tgz"
+ BUILDRESULT="/var/cache/pbuilder/$NAME/result/"
+ APTCACHE="/var/cache/pbuilder/$NAME/aptcache/"
+ MIRRORSITE="http://ftp.de.debian.org/debian/"
+ OTHERMIRROR="deb http://security.debian.org $DIST/updates main|deb http://localhost/r-cran $DIST-cran/"
+ COMPONENTS="main"
This means I have the appropriate aptcache and buildresult directories set up
under /var/cache/pbuilder. I have four pbuilder images used for package
@@ -27,6 +27,3 @@ All of these have a standard Debian mirror and the security sources setup in
their /etc/apt/sources.list, as well as my local http package source where the
r-base package build results are available. I have also imported the apt key
of my repository inside the pbuilder chroots.
-
-
-
diff --git a/backport_others.sh b/backport_others.sh
index d7c3b86..5c18ad8 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.11.1
+Rversion=2.12.0
echo Distribution is $DIST
echo Architecture is $ARCH
@@ -29,8 +29,8 @@ for i in boot cluster codetools foreign kernsmooth lattice mgcv nlme r-cran-clas
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.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
+ ssed -i -R '/^Build-Depends/s/r-base-dev \(>= 2\..*?\)/r-base-dev (>= 2.11.1-1~lennycran.0)/' debian/control
+ ssed -i -R '/^Build-Depends-Indep/s/r-base-dev \(>= 2\..*?\)/r-base-dev (>= 2.11.1-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 fa07ab9..63a821e 100644
--- a/backport_r-base.sh
+++ b/backport_r-base.sh
@@ -65,6 +65,11 @@ dch -v "${cranversion}" --force-distribution -D $DIST-cran -b "Backport from Deb
sed -i '/^Depends/s/dpkg (>= 1.15.4) | install-info/dpkg | install-info/' debian/control
dch -a "debian/control: revert Depends: to 'dpkg | install-info' for r-doc-info since ${DISTRIB_DESCRIPTION} has a version of dpkg < 1.15.4 and no separate package install-info"
+ # 3. liblzma is not available in Debian distributions before squeeze
+
+ 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
@@ -122,7 +127,7 @@ then
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
+ # 8. Debhelper in etch is 5.0.42
echo 5 > debian/compat
dch -a "debian/compat: revert 'debhelper' compatibility level to 5"
@@ -133,7 +138,7 @@ then
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
diff --git a/build_others.sh b/build_others.sh
index 61915f2..7c0ff16 100644
--- a/build_others.sh
+++ b/build_others.sh
@@ -13,7 +13,7 @@ echo Architecture is $ARCH
apt-get update
pbuilder update
-#for i in r-cran-class; do
+#for i in mgcv; do
for i in cluster foreign lattice mgcv nlme r-cran-class r-cran-spatial r-cran-nnet r-cran-mass kernsmooth rmatrix rodbc rpart survival littler rpy; do
apt-get source $i
cd $i-*

Contact - Imprint