[r-backports] / backport_others.sh Repository:
ViewVC logotype

Diff of /backport_others.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 64, Fri May 7 06:20:44 2010 UTC revision 65, Mon May 31 22:56:27 2010 UTC
# Line 7  Line 7 
7  #                - current R backport in /etc/apt/sources/list  #                - current R backport in /etc/apt/sources/list
8  #                - sid sources in /etc/apt/sources/list  #                - sid sources in /etc/apt/sources/list
9  #                - ssed and cdbs installed (and maybe more)  #                - ssed and cdbs installed (and maybe more)
10  #                - Edit the sed scripts below to adapt the build dependencies  #                - Edit R version and the sed scripts below (don't forget
11  #                  (don't forget distribution name) to the appropriate version of  #                  distribution name) to the appropriate version of R
 #                  r-base-dev  
12  #                - Set the R version  #                - Set the R version
13    
14  # R version against which the software is compiled  # R version against which the software is compiled
15  Rversion=2.11.0  Rversion=2.11.1
16    
17  echo Distribution is $DIST  echo Distribution is $DIST
18  echo Architecture is $ARCH  echo Architecture is $ARCH
# Line 23  Line 22 
22  apt-get update  apt-get update
23  pbuilder update  pbuilder update
24    
25  #for i in vr; do  #for i in rpy; do
26  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  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; do
27      apt-get source $i      apt-get source $i
28      cd $i-*      cd $i-*
29      version=`dpkg-parsechangelog | grep ^Version | cut -f2 -d " "`~$DIST"cran".$Rversion      version=`dpkg-parsechangelog | grep ^Version | cut -f2 -d " "`~$DIST"cran".$Rversion
30      dch -b -v $version --force-distribution -D $DIST-cran $text      dch -b -v $version --force-distribution -D $DIST-cran $text
31    
32      ssed -i -R '/^Build-Depends/s/r-base-dev \(>= 2\..*?\)/r-base-dev (>= 2.11.0-1~etchcran.0)/' debian/control      ssed -i -R '/^Build-Depends/s/r-base-dev \(>= 2\..*?\)/r-base-dev (>= 2.11.1-1~etchcran.0)/' debian/control
33      ssed -i -R '/^Build-Depends-Indep/s/r-base-dev \(>= 2\..*?\)/r-base-dev (>= 2.11.0-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
34    
35      dch -a "debian/control: adapt build dependencies on r-base-dev to current backport"      dch -a "debian/control: adapt build dependencies on r-base-dev to current backport"
36    
37      # Reverts for etch:      # Backport rpy
38      if [ $DIST = "etch" ]      if [ ${i} = "rpy" ]
39      then      then
40            sed -i '/^Build-Depends/s/debhelper (>= 7.2.17)/debhelper/' debian/control
41          # In newer packages from the former VR bundle and in the new r-cran-vr dummy          dch -a "debian/control: revert Build-Depends: to 'debhelper' since lenny has a version of debhelper < 7.2.17"
42          # package, there is a build dependency on debhelper >= 7.0.0, which is not          sed -i '/^Build-Depends/s/python-numpy (>= 1:1.3.0)/python-numpy/' debian/control
43          # in etch.          dch -a "debian/control: revert Build-Depends: to 'python-numpy' since lenny has a version of python-numpy < 1.3.0"
44            sed -i '/^Depends/s/python-numpy (>= 1:1.3.0)/python-numpy/' debian/control
45          sed -i '/^Build-Depends/s/debhelper (>= 7.0.0)/debhelper/' debian/control          dch -a "debian/control: revert Depends: to 'python-numpy' since lenny has a version of python-numpy < 1.3.0"
         dch -a "debian/control: revert Build-Depends: to 'debhelper' since $DIST has a version < 7.0.0"  
   
         echo 5 > debian/compat  
         dch -a "debian/compat: revert 'debhelper' compatibility level to 5"  
46      fi      fi
47    
48      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      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

Legend:
Removed from v.64  
changed lines
  Added in v.65

Johannes Ranke
ViewVC Help
Powered by ViewVC 1.0.1