From 07a3f2556e39f051b85970024b3839a69b9cfba6 Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Wed, 5 May 2021 15:25:01 +0200 Subject: [PATCH 1/2] debootstrap: Add version 1.0.124 This allows to easily install Debian or Ubuntu into a directory, and later on into a VM image avoiding using the installer images. sudo debootstrap --arch=amd64 sid /scratch/local2/debian-sid For Ubuntu, get the archive keyring from somewhere (`/usr/share/keyrings/` on some installation or the WWW), and pass it: sudo debootstrap --arch=amd64 --keyring /scratch/tmp/ubuntu-archive-keyring.gpg hirsute /scratch/local2/ubuntu-hirsute You can also use systemd-nspawn or chroot to work in these directories. --- debootstrap.be0 | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100755 debootstrap.be0 diff --git a/debootstrap.be0 b/debootstrap.be0 new file mode 100755 index 000000000..383c3b0c5 --- /dev/null +++ b/debootstrap.be0 @@ -0,0 +1,36 @@ +#!/usr/bin/env beesh + +# BEE_VERSION debootstrap-1.0.124-0 + +# https://salsa.debian.org/installer-team/debootstrap/-/archive/fbd2ea51c7ddf519209e78d1ba79ade70c76c015/debootstrap-1.0.124.tar.gz +SRCURL[0]="https://beehive.molgen.mpg.de/7b4dfb583c7b7c755efc26ac51ec3c64/debootstrap-${PKGVERSION}.tar.gz" + +# PATCHURL+=() + +# build_in_sourcedir + +# sourcesubdir_append src + +#mee_extract() { +# bee_extract "${@}" +#} + +#mee_patch() { +# bee_patch "${@}" +#} + +#mee_configure() { +# bee_configure +#} + +#mee_build() { +# bee_build +#} + +#mee_install() { +# bee_install +#} + +#mee_install_post() { +# exit +#} From 848954e729dde63ff770a0a494087aea1de4401c Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Fri, 7 May 2021 15:21:40 +0200 Subject: [PATCH 2/2] fakechroot: Add version 2.20.1 plus some patches MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [Web site][https://github.com/dex4er/fakechroot] It does not build with glibc 2.33, so use [merge/pull request 85 (glibc 2.33+ compatibility)](https://github.com/dex4er/fakechroot/pull/85) fixing this. $ chroot / whoami chroot: cannot change root directory to '/': Operation not permitted $ fakechroot chroot / whoami pmenzel $ fakechroot fakeroot chroot / whoami root It’s *not* working yet with debootstrap, fakechroot, fakeroot, as there are incompatibilies between the glibc versions. Debian sid/unstable still has glibc 2.31 and Ubuntu 21.04 (Hirsute) also seems to be incompatible. $ fakechroot fakeroot chroot "/scratch/local2/ubuntu-hirsute" /bin/true fakechroot: bindtextdomain: bindtextdomain: invalid mode for dlopen(): Invalid argument --- fakechroot.be0 | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100755 fakechroot.be0 diff --git a/fakechroot.be0 b/fakechroot.be0 new file mode 100755 index 000000000..71144a4d9 --- /dev/null +++ b/fakechroot.be0 @@ -0,0 +1,39 @@ +#!/usr/bin/env beesh + +# BEE_VERSION fakechroot-2.20.1_13_ge7c1f3a-0 + +# https://github.com/dex4er/fakechroot +# https://github.com/lipnitsk/fakechroot/commit/e7c1f3a446e594a4d0cce5f5d499c9439ce1d5c5 +# https://github.com/lipnitsk/fakechroot/archive/e7c1f3a446e594a4d0cce5f5d499c9439ce1d5c5.zip +SRCURL[0]="https://beehive.molgen.mpg.de/473d9e856389f9ba0f494e2a9c138e88/fakechroot-${PKGFULLVERSION}.zip" + +# PATCHURL+=() + +# build_in_sourcedir + +# sourcesubdir_append src + +#mee_extract() { +# bee_extract "${@}" +#} + +mee_patch() { + bee_patch "${@}" + start_cmd autoreconf -fi +} + +#mee_configure() { +# bee_configure +#} + +#mee_build() { +# bee_build +#} + +#mee_install() { +# bee_install +#} + +#mee_install_post() { +# exit +#}