diff options
Diffstat (limited to 'README')
-rw-r--r-- | README | 39 |
1 files changed, 24 insertions, 15 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 |