| 18 |
rm -rf `ls -d r-base-*` |
rm -rf `ls -d r-base-*` |
| 19 |
fi |
fi |
| 20 |
|
|
| 21 |
apt-get update |
#apt-get update |
| 22 |
apt-get source -t unstable r-base |
apt-get source -t unstable r-base |
| 23 |
|
|
| 24 |
# Change any ~ in the name of the build directory for a - to avoid a |
# Change any ~ in the name of the build directory for a - to avoid a |
| 41 |
# Reverts for lenny: |
# Reverts for lenny: |
| 42 |
# None at this time |
# None at this time |
| 43 |
|
|
| 44 |
pbuilder update |
# Reverts for etch: |
| 45 |
|
if [ $DIST = "etch" ] |
| 46 |
|
then |
| 47 |
|
# 1. Starting with Debian packages for R 2.6.1-2, the build dependency |
| 48 |
|
# to 'refblas3-dev|atlas3-base-dev' is changed to 'libblas-dev' to |
| 49 |
|
# use the new gfortran-built BLAS libraries. From R 2.7.0, the |
| 50 |
|
# dependency is on 'libblas-dev | libatlas-base-dev' for |
| 51 |
|
# r-base-dev. |
| 52 |
|
|
| 53 |
|
sed -i '/^Build-Depends/s/libblas-dev/refblas3-dev|atlas3-base-dev/' debian/control |
| 54 |
|
sed -i '/^Depends/s/libblas-dev | libatlas-base-dev/refblas3-dev|atlas3-base-dev/' debian/control |
| 55 |
|
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" |
| 56 |
|
|
| 57 |
|
# 2. Starting with Debian packages for R 2.6.2, new build dependency |
| 58 |
|
# on liblapack-dev to switch back to using Debian's Lapack rather |
| 59 |
|
# than the version supplied by R. From R 2.7.0, the dependency is |
| 60 |
|
# on 'liblapack-dev (>= 3.1.1)' for r-base and 'liblapack-dev | |
| 61 |
|
# libatlas-base-dev' for r-base-dev. |
| 62 |
|
|
| 63 |
|
sed -i '/^Build-Depends/s/liblapack-dev (>= 3.1.1), //' debian/control |
| 64 |
|
sed -i '/^Depends/s/liblapack-dev | libatlas-base-dev, //' debian/control |
| 65 |
|
dch -a "debian/control: revert Build-Depends: and Depends: fields since we use the Lapack supplied with R" |
| 66 |
|
sed -i '/^lapack/{ |
| 67 |
|
s/lapack/\#lapack/ |
| 68 |
|
a\ |
| 69 |
|
# jr 24 Apr 2008 Set to =no for Debian etch |
| 70 |
|
a\lapack = --with-lapack=no |
| 71 |
|
}' debian/rules |
| 72 |
|
dch -a "debian/rules: Accordingly, do not configure --with-lapack" |
| 73 |
|
|
| 74 |
|
# 3. Requirement for tk8.4 >= 8.4.16-2 introduced in r-base 2.6.0-4 to |
| 75 |
|
# circumvent a breakage with 8.4.16-1. The version in etch is 8.4.12-1etch2. |
| 76 |
|
|
| 77 |
|
rm debian/shlibs.local |
| 78 |
|
dch -a "delete debian/shlibs.local since the dependency on tk8.4 is not an issue for Debian etch" |
| 79 |
|
|
| 80 |
|
# 4. The TeX distribution in etch is tetex |
| 81 |
|
|
| 82 |
|
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 |
| 83 |
|
dch -a "debian/control: revert Build-Depends: to 'tetex-bin, tetex-extra' since etch does not have texlive" |
| 84 |
|
|
| 85 |
|
# 5. xauth is part of xbase-clients in etch |
| 86 |
|
|
| 87 |
|
sed -i '/^Build-Depends/s/xauth/xbase-clients/' debian/control |
| 88 |
|
dch -a "debian/control: replace xauth by xbase-clients in Build-Depends:" |
| 89 |
|
|
| 90 |
|
# 6. Tcl and TK are 8.4 on Debian etch |
| 91 |
|
|
| 92 |
|
sed -i '/^Build-Depends/s/ tcl8.5-dev/tcl8.4-dev/' debian/control |
| 93 |
|
sed -i '/^Build-Depends/s/ tk8.5-dev/tk8.4-dev/' debian/control |
| 94 |
|
dch -a "debian/control: revert build dependence for tcl/tk to 8.4" |
| 95 |
|
|
| 96 |
|
# 7. Openjdk is not in etch |
| 97 |
|
|
| 98 |
|
sed -i '/^Build-Depends/s/, openjdk-6-jdk \[!arm !hppa !kfreebsd-i386 !kfreebsd-amd64 !hurd-i386\]//' debian/control |
| 99 |
|
dch -a "debian/control: Remove build dependence on openjdk" |
| 100 |
|
|
| 101 |
|
# 8. R 2.9.0 wants debhelper >= 7.0.0, which is not in etch |
| 102 |
|
|
| 103 |
|
sed -i '/^Build-Depends/s/debhelper (>= 7.0.0)/debhelper/' debian/control |
| 104 |
|
dch -a "debian/control: revert Build-Depends: to 'debhelper' since etch has a version < 7.0.0" |
| 105 |
|
sed -i 's/dh_prep/dh_clean/g' debian/rules |
| 106 |
|
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'" |
| 107 |
|
echo 5 > debian/compat |
| 108 |
|
dch -a "debian/compat: revert 'debhelper' compatibility level to 5" |
| 109 |
|
|
| 110 |
|
# 9. R 2.9.0 wants ucf >= 3.0 which is not available in etch (2.0020) |
| 111 |
|
|
| 112 |
|
sed -i 's/ucf (>= 3.0)/ucf/' debian/control |
| 113 |
|
dch -a "debian/control: revert Depends: of r-base-core to 'ucf' since the version in etch is < 3.0" |
| 114 |
|
fi |
| 115 |
|
|
| 116 |
|
#pbuilder update |
| 117 |
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 |
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 |
| 118 |
if [ $? -ne 0 ]; then |
if [ $? -ne 0 ]; then |
| 119 |
exit |
exit |
| 120 |
fi |
fi |
| 121 |
|
|
| 122 |
cd .. |
cd .. |
|
|
|
|
# Create diff to Debian unstable |
|
|
interdiff -z r-base_*.diff.gz /home/ranke/svn/website/www/ranke/r-cran/$DIST-cran/r-base_*cran*.diff.gz > /home/ranke/svn/website/www/ranke/r-cran/$DIST-cran/interdiff_to_debian_sid |
|