From 442c37f1fb9c648da671b68e53c9ad21c5cbffdb Mon Sep 17 00:00:00 2001 From: ranke Date: Mon, 31 Oct 2011 09:42:01 +0000 Subject: Build scripts for the R 2.14.0 backport git-svn-id: svn+ssh://stiller/home/schatz/reps/r-backports@75 f247ebf9-aa24-0410-a698-f940e971ad2b --- backport_others.sh | 9 ++++++--- backport_r-base.sh | 6 +++--- move_lenny64.sh | 6 ++++++ move_squeeze64.sh | 6 ++++++ 4 files changed, 21 insertions(+), 6 deletions(-) create mode 100644 move_lenny64.sh create mode 100644 move_squeeze64.sh diff --git a/backport_others.sh b/backport_others.sh index ceb012c..987fcdc 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.13.2 +Rversion=2.14.0 echo Distribution is $DIST echo Architecture is $ARCH @@ -22,16 +22,19 @@ text="Recompiled on $DIST for CRAN" apt-get update pbuilder update +# single package: #for i in r-cran-rjags; do +# lenny packages: #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; do +# squeeze packages: 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 rkward r-cran-rjags; 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.13.2-1~squeezecran.0)/' debian/control - ssed -i -R '/^Build-Depends-Indep/s/r-base-dev \(>= 2\..*?\)/r-base-dev (>= 2.13.2-1~squeezecran.0)/' debian/control + ssed -i -R '/^Build-Depends/s/r-base-dev \(>= 2\..*?\)/r-base-dev (>= 2.14.0-1~squeezecran.0)/' debian/control + ssed -i -R '/^Build-Depends-Indep/s/r-base-dev \(>= 2\..*?\)/r-base-dev (>= 2.14.0-1~squeezecran.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 d8c04f1..61d6b87 100644 --- a/backport_r-base.sh +++ b/backport_r-base.sh @@ -60,7 +60,7 @@ then 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'" + dch -a "debian/rules: revert dh_prep calls to dh_clean calls since the latter is not present lennys version of 'debhelper'" # 2. Starting with Debian packages for R 2.9.2-2 there is an install # dependency on 'dpkg (>= 1.15.4) | install-info'. Neither package is in @@ -68,12 +68,12 @@ then # debian/r-doc-{info,html}.{postinst,prerm}, just like for the fix above. 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" + dch -a "debian/control: revert Depends: to 'dpkg | install-info' for r-doc-info since lenny 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" + dch -a "debian/control: Remove dependency to liblzma-dev as it is not available in lenny. As a consequence, the version provided in the R sources is used" fi pbuilder update diff --git a/move_lenny64.sh b/move_lenny64.sh new file mode 100644 index 0000000..cb5c83b --- /dev/null +++ b/move_lenny64.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +# Move binary packages built in a chroot to the local repository + +mv /var/chroot/lenny-amd64/home/ranke/svn/r-backports/*lennycran*_amd64.deb ~/svn/website/www/ranke/r-cran/lenny-cran + diff --git a/move_squeeze64.sh b/move_squeeze64.sh new file mode 100644 index 0000000..7690d38 --- /dev/null +++ b/move_squeeze64.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +# Move binary packages built in a chroot to the local repository + +mv /var/chroot/squeeze-amd64/home/ranke/svn/r-backports/*squeezecran*_amd64.deb ~/svn/website/www/ranke/r-cran/squeeze-cran + -- cgit v1.2.1