From dc22033affd1d3544764f61170aec9cf3adeb941 Mon Sep 17 00:00:00 2001 From: ranke Date: Wed, 2 Sep 2009 04:57:22 +0000 Subject: Updated scripts for backporting of R 2.9.2 git-svn-id: svn+ssh://stiller/home/schatz/reps/r-backports@60 f247ebf9-aa24-0410-a698-f940e971ad2b --- backport_r-base.sh | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) (limited to 'backport_r-base.sh') diff --git a/backport_r-base.sh b/backport_r-base.sh index a7ab71d..760a601 100644 --- a/backport_r-base.sh +++ b/backport_r-base.sh @@ -36,12 +36,21 @@ oldversion=`dpkg-parsechangelog | grep ^Version | cut -f2 -d " "` cranversion=$oldversion"~"$DIST"cran.0" # Add new version to changelog -dch -v "${cranversion}" -D $DIST-cran -b "Backport from Debian unstable to Debian $DIST" +dch -v "${cranversion}" --force-distribution -D $DIST-cran -b "Backport from Debian unstable to Debian $DIST" -# Reverts for lenny: -# None at this time +# Reverts for lenny and etch: -# Reverts for etch: + # 1. R 2.9.2 wants debhelper >= 7.2.3, which is not in lenny nor etch + # This also means we have to reinclude debian/r-doc-{info,html}.{postinst,prerm}, + # thanks Dirk for pointing this out. + + sed -i '/^Build-Depends/s/debhelper (>= 7.2.3)/debhelper/' debian/control + dch -a "debian/control: revert Build-Depends: to 'debhelper' since $DIST has a version < 7.2.3" + sed -i 's/dh_prep/dh_clean/g' debian/rules + dch -a "debian/rules: revert dh_prep calls to dh_clean calls since the latter is not present in this release's version of 'debhelper'" + cp ../r-doc-scripts/r-doc-{info,html}.{postinst,prerm} debian + +# Reverts for etch only: if [ $DIST = "etch" ] then # 1. Starting with Debian packages for R 2.6.1-2, the build dependency @@ -98,12 +107,8 @@ 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. R 2.9.0 wants debhelper >= 7.0.0, which is not in etch + # 8. Debhelper in etch is 5.0.42 - sed -i '/^Build-Depends/s/debhelper (>= 7.0.0)/debhelper/' debian/control - dch -a "debian/control: revert Build-Depends: to 'debhelper' since etch has a version < 7.0.0" - sed -i 's/dh_prep/dh_clean/g' debian/rules - dch -a "debian/rules: revert dh_prep calls to dh_clean calls since the latter is not present in this release's version of 'debhelper'" echo 5 > debian/compat dch -a "debian/compat: revert 'debhelper' compatibility level to 5" @@ -113,7 +118,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 /exthd/pbuilder/$DIST-$ARCH/aptcache --buildplace /exthd/pbuilder/$DIST-$ARCH/build if [ $? -ne 0 ]; then exit -- cgit v1.2.1