diff options
Diffstat (limited to 'r-base/backport_r-base.sh')
-rw-r--r-- | r-base/backport_r-base.sh | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/r-base/backport_r-base.sh b/r-base/backport_r-base.sh index dc89282..644edeb 100644 --- a/r-base/backport_r-base.sh +++ b/r-base/backport_r-base.sh @@ -12,7 +12,7 @@ export DEBEMAIL="Johannes Ranke <jranke@uni-bremen.de>" #rm -rf r-base* r-base-core* r-mathlib* -apt-get update +#apt-get update apt-get source -t unstable r-base cd r-base-* @@ -76,9 +76,23 @@ 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\]//' debian/control +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 + +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" + +# 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" + # Build package showing all messages and separating output to build and error logs (dpkg-buildpackage -tc | tee ../build_log_r-base_i386) 3>&1 1>&2 2>&3 | tee ../build_errors_r-base_i386 if [ $? -ne 0 ]; then |