diff options
-rw-r--r-- | README | 39 | ||||
-rwxr-xr-x | backport | 4 | ||||
-rwxr-xr-x | backport_others | 7 | ||||
-rw-r--r-- | bookworm/_reverts_littler.sh | 2 | ||||
-rwxr-xr-x | build | 2 | ||||
-rwxr-xr-x | build_others | 3 | ||||
-rwxr-xr-x | clean | 4 | ||||
-rw-r--r-- | jessie/_reverts_lattice.sh | 2 | ||||
-rw-r--r-- | jessie/_reverts_r-base.sh | 2 | ||||
-rwxr-xr-x | move_debs | 4 | ||||
-rwxr-xr-x | move_debs_arm64 | 18 | ||||
-rw-r--r-- | stretch/_reverts_r-base.sh | 3 | ||||
-rw-r--r-- | wheezy/TALOS-2016-0227.patch | 35 | ||||
-rw-r--r-- | wheezy/_reverts_jags.sh | 3 | ||||
-rw-r--r-- | wheezy/_reverts_r-base.sh | 2 | ||||
-rw-r--r-- | wheezy/_reverts_r-cran-rjags.sh | 4 |
16 files changed, 57 insertions, 77 deletions
@@ -14,25 +14,25 @@ Currently I am using the following setup: BASETGZ="`dirname $BASETGZ`/$NAME-base.tgz" BUILDRESULT="/var/cache/pbuilder/$NAME/result/" APTCACHE="/var/cache/pbuilder/$NAME/aptcache/" - MIRRORSITE="http://ftp.de.debian.org/debian/" - OTHERMIRROR="deb http://security.debian.org $DIST/updates main|deb http://ftp.de.debian.org/debian $DIST-backports main|deb http://localhost/r-cran $DIST-cran35/" + MIRRORSITE="http://deb.debian.org/debian/" + OTHERMIRROR="deb http://security.debian.org/debian-security $DIST-security main|deb http://ftp.de.debian.org/debian $DIST-backports main|deb http://localhost/r-cran $DIST-cran40/" COMPONENTS="main" This means I have the appropriate aptcache and buildresult directories set up under /var/cache/pbuilder. I have several pbuilder images used for package creation under /var/cache/pbuilder, among others: - /var/cache/pbuilder/buster-i386-base.tgz + /var/cache/pbuilder/bookworm-i386-base.tgz With the pbuilderrc mentioned above, this can be created as a normal user with export ARCH=i386 - export DIST=bullseye + export DIST=bookworm sudo -E pbuilder create We also need to create the build directory: - sudo mkdir /var/cache/pbuilder/bullseye-i386/build + sudo mkdir /var/cache/pbuilder/bookworm-i386/build When using these scripts on Debian, I used to configure sudo to allow my normal user to use pbuilder, apt-get and the backporting scripts. Currently, I have @@ -42,25 +42,34 @@ I select during the installation. I am building other architectures on different machines (raspi: armxx) or in a local chroot (amd64). -For creating a local chroot, I am using (e.g. for bullseye) +For creating a local chroot, I am using (e.g. for bookworm) cd /var/chroot - sudo mkdir bullseye-amd64 - sudo debootstrap bullseye bullseye-amd64 http://ftp.de.debian.org/debian/ + sudo mkdir bookworm-amd64 + sudo debootstrap bookworm bookworm-amd64 http://deb.debian.org/debian/ Then I add a new entry in /etc/schroot/schroot.conf like - [bullseye64] - description=Debian bullseye 64-bit + [bookworm64] + description=Debian bookworm 64-bit type=directory profile=default - directory=/var/chroot/bullseye-amd64 + directory=/var/chroot/bookworm-amd64 -and use sudo schroot -c bullseye64 to enter it. Within the chroot I install vim -and add the matching local r-cran repository to /etc/apt/sources.list like +and use sudo schroot -c bookworm64 to enter it. Within the chroot I install +some necessary or useful stuff - deb http://localhost/r-cran bullseye-cran40/ - deb-src http://localhost/r-cran bullseye-cran40/ + apt install vim gnupg build-essential devscripts + +add the matching local r-cran repository to /etc/apt/sources.list like + + deb http://localhost/r-cran bookworm-cran40/ + deb-src http://localhost/r-cran bookworm-cran40/ + +and tell apt to trust my key (from my Debian CRAN page): + + gpg --keyserver keyserver.ubuntu.com --recv-key '95C0FAF38DB3CCAD0C080A7BDC78B2DDEABC47B7' + gpg --armor --export '95C0FAF38DB3CCAD0C080A7BDC78B2DDEABC47B7' > /etc/apt/trusted.gpg.d/cran_debian_key.asc In the chroot, build-essential and devscripts have to be installed @@ -22,7 +22,7 @@ rcrandir=/home/jranke/git/uni-bremen/website/www/ranke/r-cran usage() { -echo "Usage: ./backport [options] sourcepackage stretch|buster|bullseye" +echo "Usage: ./backport [options] sourcepackage bullseye|bookworm|trixie" echo "Options:" echo " -k, --keep Keep copied source package and directory used for package building" echo " -s, --skip Skip apt-get update/upgrade and pbuilder update" @@ -58,7 +58,7 @@ pkg=$1 DIST=$2 # Validate distribution argument -if [ $DIST != "stretch" ] && [ $DIST != "buster" ] && [ $DIST != "bullseye" ]; then usage; exit 1; fi +if [ $DIST != "bookworm" ] && [ $DIST != "bullseye" ] && [$DIST != "trixie"]; then usage; exit 1; fi export DIST # Remove previously extracted sources diff --git a/backport_others b/backport_others index dacac7a..482c860 100755 --- a/backport_others +++ b/backport_others @@ -11,7 +11,7 @@ export ARCH usage() { -echo "Usage: ./backport_others [options] stretch|buster|bullseye" +echo "Usage: ./backport_others [options] bullseye|bookworm|trixie" echo "Options:" echo " -s Skip apt-get update/upgrade and pbuilder update" } @@ -51,7 +51,7 @@ then fi # Validate distribution argument -if [ $DIST != "stretch" ] && [ $DIST != "buster" ] && [ $DIST != "bullseye" ]; then usage; exit 1; fi +if [ $DIST != "bookworm" ] && [ $DIST != "bullseye" ] && [ $DIST != "trixie" ]; then usage; exit 1; fi export DIST # When doing a new repository, do lattice, r-cran-mass @@ -64,7 +64,8 @@ export DIST #for i in rmatrix; do #for i in survival nlme; do #for i in rpart mgcv boot cluster codetools foreign kernsmooth r-cran-class r-cran-coda r-cran-spatial r-cran-nnet littler rpy2 rkward; do -for i in lattice nlme rmatrix mgcv boot cluster codetools foreign kernsmooth r-cran-class r-cran-coda r-cran-spatial r-cran-nnet r-cran-mass rpart survival littler rpy2 rkward; do +#for i in lattice nlme rmatrix mgcv boot cluster codetools foreign kernsmooth r-cran-class r-cran-coda r-cran-spatial r-cran-nnet r-cran-mass rpart survival littler rpy2 rkward; do +for i in lattice nlme rmatrix mgcv boot cluster codetools foreign kernsmooth r-cran-class r-cran-coda r-cran-spatial r-cran-nnet r-cran-mass rpart survival littler; do ./backport -s $i $DIST diff --git a/bookworm/_reverts_littler.sh b/bookworm/_reverts_littler.sh new file mode 100644 index 0000000..da34840 --- /dev/null +++ b/bookworm/_reverts_littler.sh @@ -0,0 +1,2 @@ +ssed -i -R "/^Build-Depends/s/debhelper, /debhelper, libzstd-dev, /" debian/control +dch -a "debian/control: Add missing build dependency libzstd-dev" @@ -54,7 +54,7 @@ then apt-get upgrade fi -# stretch needs --only-source (at least for rkward source packages) +# stretch needed --only-source (at least for rkward source packages) apt --only-source build-dep $pkg apt --only-source source $pkg diff --git a/build_others b/build_others index fdb5dc0..0f35701 100755 --- a/build_others +++ b/build_others @@ -39,6 +39,7 @@ fi #for i in rmatrix nlme; do #for i in survival; do #for i in cluster foreign r-cran-class r-cran-spatial r-cran-nnet kernsmooth mgcv rodbc rpart littler rpy2 rkward; do -for i in lattice rmatrix nlme cluster foreign r-cran-class r-cran-spatial r-cran-nnet r-cran-mass kernsmooth mgcv rpart survival littler rpy2 rkward; do +#for i in lattice rmatrix nlme cluster foreign r-cran-class r-cran-spatial r-cran-nnet r-cran-mass kernsmooth mgcv rpart survival littler rpy2 rkward; do +for i in lattice rmatrix nlme cluster foreign r-cran-class r-cran-spatial r-cran-nnet r-cran-mass kernsmooth mgcv rpart survival littler; do ./build -s $i done @@ -4,14 +4,14 @@ usage() { -echo "Usage: ./clean [stretch|buster|bullseye]" +echo "Usage: ./clean [bullseye|bookworm|trixie]" } if [ $# -gt 1 ]; then usage; exit 1; fi if [ $# -eq 1 ] then DIST=$1 - if [ $DIST != "stretch" ] && [ $DIST != "buster" ] && [ $DIST != "bullseye" ]; then usage; exit 1; fi + if [ $DIST != "bookworm" ] && [ $DIST != "bullseye" ] && [ $DIST != "trixie" ]; then usage; exit 1; fi cd $DIST fi diff --git a/jessie/_reverts_lattice.sh b/jessie/_reverts_lattice.sh deleted file mode 100644 index 21f22e6..0000000 --- a/jessie/_reverts_lattice.sh +++ /dev/null @@ -1,2 +0,0 @@ -ssed -i -R "/^Build-Depends/s/debhelper \(>= 11\)/debhelper (>= 10)/" debian/control -dch -a "debian/control: Require debhelper >=10 instead of >=11" diff --git a/jessie/_reverts_r-base.sh b/jessie/_reverts_r-base.sh deleted file mode 100644 index 2f15316..0000000 --- a/jessie/_reverts_r-base.sh +++ /dev/null @@ -1,2 +0,0 @@ -rm debian/r-base-core.maintscript -dch -a "debian/r-base-core.maintscript: Remove maintscript as it causes trouble upgrading r-base-core from jessie" @@ -4,7 +4,7 @@ usage() { -echo "Usage: ./move_debs stretch|buster|bullseye" +echo "Usage: ./move_debs bullseye|bookworm|trixie" } # Positional argument @@ -12,7 +12,7 @@ if [ $# -lt 1 ]; then usage; exit 1; fi DIST=$1 # Validate distribution argument -if [ $DIST != "stretch" ] && [ $DIST != "buster" ] && [ $DIST != "bullseye" ]; then usage; exit 1; fi +if [ $DIST != "bookworm" ] && [ $DIST != "bullseye" ]&& [ $DIST != "trixie" ]; then usage; exit 1; fi sudo chown jranke $DIST/*${DIST}cran*_amd64.{deb,build} mv -v $DIST/*${DIST}cran*_amd64.{deb,build} /home/jranke/git/uni-bremen/website/www/ranke/r-cran/$DIST-cran40 diff --git a/move_debs_arm64 b/move_debs_arm64 new file mode 100755 index 0000000..8cb7999 --- /dev/null +++ b/move_debs_arm64 @@ -0,0 +1,18 @@ +#!/bin/bash + +# Copy binary packages built in a chroot on a remote server to the local repository + +usage() +{ +echo "Usage: ./move_debs bullseye|bookworm|trixie" +} + +# Positional argument +if [ $# -lt 1 ]; then usage; exit 1; fi +DIST=$1 + +# Validate distribution argument +if [ $DIST != "bookworm" ] && [ $DIST != "bullseye" ] && [ $DIST != "trixie" ]; then usage; exit 1; fi + +scp arm64:/var/chroot/$DIST-arm64/root/r-backports/$DIST/*${DIST}cran*_arm64.{deb,build} /home/jranke/git/uni-bremen/website/www/ranke/r-cran/$DIST-cran40 +sudo chown jranke /home/jranke/git/uni-bremen/website/www/ranke/r-cran/$DIST-cran40 diff --git a/stretch/_reverts_r-base.sh b/stretch/_reverts_r-base.sh deleted file mode 100644 index 7f9a6de..0000000 --- a/stretch/_reverts_r-base.sh +++ /dev/null @@ -1,3 +0,0 @@ -ssed -i -R "/^Build-Depends/s/texlive-plain-generic/texlive-generic-recommended/" debian/control -ssed -i -R "/^Suggests/s/texlive-plain-generic/texlive-generic-recommended/" debian/control -dch -a "debian/control: Revert Build-Depends: from texlive-plain-generic to texlive-generic-recommended" diff --git a/wheezy/TALOS-2016-0227.patch b/wheezy/TALOS-2016-0227.patch deleted file mode 100644 index f7bc97e..0000000 --- a/wheezy/TALOS-2016-0227.patch +++ /dev/null @@ -1,35 +0,0 @@ -Index: src/library/grDevices/src/devPS.c -=================================================================== ---- src/library/grDevices/src/devPS.c (Revision 71663) -+++ src/library/grDevices/src/devPS.c (Revision 71664) -@@ -513,13 +513,15 @@ - if (!(fp = R_fopen(R_ExpandFileName(buf), "r"))) return 0; - } - if (GetNextItem(fp, buf, -1, &state)) return 0; /* encoding name */ -- strcpy(encname, buf+1); -+ strncpy(encname, buf+1, 99); -+ encname[99] = '\0'; - if (!isPDF) snprintf(enccode, 5000, "/%s [\n", encname); - else enccode[0] = '\0'; - if (GetNextItem(fp, buf, 0, &state)) { fclose(fp); return 0;} /* [ */ - for(i = 0; i < 256; i++) { - if (GetNextItem(fp, buf, i, &state)) { fclose(fp); return 0; } -- strcpy(encnames[i].cname, buf+1); -+ strncpy(encnames[i].cname, buf+1, 39); -+ encnames[i].cname[39] = '\0'; - strcat(enccode, " /"); strcat(enccode, encnames[i].cname); - if(i%8 == 7) strcat(enccode, "\n"); - } -Index: src/library/grDevices/src/devPS.c -=================================================================== ---- src/library/grDevices/src/devPS.c (Revision 71666) -+++ src/library/grDevices/src/devPS.c (Revision 71667) -@@ -521,7 +521,7 @@ - for(i = 0; i < 256; i++) { - if (GetNextItem(fp, buf, i, &state)) { fclose(fp); return 0; } - strncpy(encnames[i].cname, buf+1, 39); -- encnames[i].cname[39] = '\0'; -+ encnames[i].cname[39] = '\0'; - strcat(enccode, " /"); strcat(enccode, encnames[i].cname); - if(i%8 == 7) strcat(enccode, "\n"); - } diff --git a/wheezy/_reverts_jags.sh b/wheezy/_reverts_jags.sh deleted file mode 100644 index 97a5bd1..0000000 --- a/wheezy/_reverts_jags.sh +++ /dev/null @@ -1,3 +0,0 @@ -ssed -i -R "/^Build-Depends/s/gfortran \(.*\)/gfortran/" debian/control -ssed -i -R "/^Build-Depends/s/g++ \(.*\)/g++/" debian/control -dch -a "debian/control: remove version requirements for gfortran and g++" diff --git a/wheezy/_reverts_r-base.sh b/wheezy/_reverts_r-base.sh deleted file mode 100644 index df47c30..0000000 --- a/wheezy/_reverts_r-base.sh +++ /dev/null @@ -1,2 +0,0 @@ -patch -p0 < ../TALOS-2016-0227.patch -dch -a "debian/control: Apply upstream commits r71664 and r71667 related to CVE-2016-8714 reported as TALOS-2016-0227" diff --git a/wheezy/_reverts_r-cran-rjags.sh b/wheezy/_reverts_r-cran-rjags.sh deleted file mode 100644 index e7fc882..0000000 --- a/wheezy/_reverts_r-cran-rjags.sh +++ /dev/null @@ -1,4 +0,0 @@ -# Lower dependencies for jags -ssed -i -R "/^Build-Depends/s/jags \(>= .*?\)/jags (>= 4.0)/" debian/control -ssed -i -R "/^Depends/s/jags \(>= .*?\)/jags (>= 4.0)/" debian/control -dch -a "debian/control: Lower (build) dependency on jags to be satisfied by backport" |