diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-26 16:03:02 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-26 16:03:02 +0000 |
commit | d6edc734e3aaaa59a2d5f6cf35e18b997463f3cb (patch) | |
tree | e2df1503005d3a8ad440f1332146e4940a44c835 /debian | |
parent | Merging upstream version 1.5.2. (diff) | |
download | mmdebstrap-d6edc734e3aaaa59a2d5f6cf35e18b997463f3cb.tar.xz mmdebstrap-d6edc734e3aaaa59a2d5f6cf35e18b997463f3cb.zip |
Merging debian version 1.5.2-1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
5 files changed, 9 insertions, 176 deletions
diff --git a/debian/changelog b/debian/changelog index f634568..10f42fb 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,12 @@ +mmdebstrap (1.5.2-1) unstable; urgency=medium + + * New upstream version 1.5.2 + * drop patches + * mmdebstrap-autopkgtest-build-qemu: fix kernel selection (closes: #1073543) + * do not require /var/log/faillog to exist (closes: #1074082) + + -- Johannes Schauer Marin Rodrigues <josch@debian.org> Wed, 26 Jun 2024 14:33:50 +0200 + mmdebstrap (1.5.1-4~progress7.99u1) graograman-backports; urgency=medium * Uploading to graograman-updates, remaining changes: diff --git a/debian/patches/0001-tests-base-files-now-ships-merged-usr-symlinks.patch b/debian/patches/0001-tests-base-files-now-ships-merged-usr-symlinks.patch deleted file mode 100644 index 9d083fa..0000000 --- a/debian/patches/0001-tests-base-files-now-ships-merged-usr-symlinks.patch +++ /dev/null @@ -1,109 +0,0 @@ -From a1a2d76f6ef37c0b47ba27ef6447a5ba3bb9244f Mon Sep 17 00:00:00 2001 -From: Johannes Schauer Marin Rodrigues <josch@mister-muffin.de> -Date: Mon, 10 Jun 2024 00:12:16 +0200 -Subject: [PATCH] tests: base-files now ships merged-/usr symlinks - ---- - tests/check-against-debootstrap-dist | 2 ++ - tests/eatmydata-via-hook-dir | 1 - - tests/jessie-or-older | 1 + - tests/missing-dev-sys-proc-inside-the-chroot | 4 ++-- - tests/pivot_root | 10 +++++----- - 5 files changed, 10 insertions(+), 8 deletions(-) - -diff --git a/tests/check-against-debootstrap-dist b/tests/check-against-debootstrap-dist -index b5706c6..3ac0db3 100644 ---- a/tests/check-against-debootstrap-dist -+++ b/tests/check-against-debootstrap-dist -@@ -70,6 +70,8 @@ rm /tmp/debian-{{ DIST }}-debootstrap/var/cache/debconf/templates.dat-old \ - /tmp/debian-{{ DIST }}-mm/var/cache/debconf/templates.dat-old - rm /tmp/debian-{{ DIST }}-debootstrap/var/lib/dpkg/status-old \ - /tmp/debian-{{ DIST }}-mm/var/lib/dpkg/status-old -+rm -f /tmp/debian-{{ DIST }}-debootstrap/var/lib/dpkg/diversions-old \ -+ /tmp/debian-{{ DIST }}-mm/var/lib/dpkg/diversions-old - # remove dpkg files - rm /tmp/debian-{{ DIST }}-debootstrap/var/lib/dpkg/available - rm /tmp/debian-{{ DIST }}-debootstrap/var/lib/dpkg/cmethopt -diff --git a/tests/eatmydata-via-hook-dir b/tests/eatmydata-via-hook-dir -index 0df72df..b554508 100644 ---- a/tests/eatmydata-via-hook-dir -+++ b/tests/eatmydata-via-hook-dir -@@ -37,7 +37,6 @@ elfheader="$elfheader\\001\\000" - tar -C /tmp/debian-chroot --one-file-system -c . \ - | tar -t \ - | sort \ -- | grep -v '^\./var/lib/dpkg/diversions\(-old\)\?$' \ - | diff -u tar1.txt - - rm /tmp/checkeatmydata.sh - rm -r /tmp/debian-chroot -diff --git a/tests/jessie-or-older b/tests/jessie-or-older -index a3a2ace..db941b6 100644 ---- a/tests/jessie-or-older -+++ b/tests/jessie-or-older -@@ -30,6 +30,7 @@ filter() { - --path-exclude=/var/cache/debconf/templates.dat-old \ - --path-exclude=/var/lib/dpkg/available \ - --path-exclude=/var/lib/dpkg/diversions \ -+ --path-exclude=/var/lib/dpkg/diversions-old \ - --path-exclude=/var/lib/dpkg/cmethopt \ - --path-exclude=/var/lib/dpkg/status-old \ - --path-exclude=/var/lib/shells.state -diff --git a/tests/missing-dev-sys-proc-inside-the-chroot b/tests/missing-dev-sys-proc-inside-the-chroot -index 9c9b1c0..efc39b3 100644 ---- a/tests/missing-dev-sys-proc-inside-the-chroot -+++ b/tests/missing-dev-sys-proc-inside-the-chroot -@@ -17,8 +17,8 @@ if [ "$(id -u)" -eq 0 ] && [ "{{ MODE }}" != "root" ] && [ "{{ MODE }}" != "auto - prefix="runuser -u ${SUDO_USER:-user} --" - fi - --# creating /sbin manually because of #1071078 -+# do not install base-files, so that /proc, /sys and /dev are missing - $prefix {{ CMD }} --mode={{ MODE }} --variant={{ VARIANT }} \ -- --setup-hook='mkdir "$1/sbin"' \ -+ --setup-hook='for dir in bin lib lib32 lib64 libo32 libx32 sbin; do ln -s "usr/$dir" "$1/$dir"; done' \ - --include=dpkg,dash,diffutils,coreutils,libc-bin,sed \ - {{ DIST }} /dev/null {{ MIRROR }} -diff --git a/tests/pivot_root b/tests/pivot_root -index 860c41b..7aa025e 100644 ---- a/tests/pivot_root -+++ b/tests/pivot_root -@@ -17,19 +17,19 @@ if [ "$(id -u)" -eq 0 ] && [ "{{ MODE }}" != "root" ] && [ "{{ MODE }}" != "auto - fi - - $prefix {{ CMD }} --mode={{ MODE }} --variant=apt \ -- --include=mount \ -+ --include=mount,perl \ - {{ DIST }} /tmp/chroot1.tar {{ MIRROR }} - - if [ {{ MODE }} = "unshare" ]; then - # calling pivot_root in root mode does not work for mysterious reasons: - # pivot_root: failed to change root from `.' to `mnt': Invalid argument -- $prefix {{ CMD }} --mode={{ MODE }} --variant=apt --include=mount \ -+ $prefix {{ CMD }} --mode={{ MODE }} --variant=apt --include=mount,perl \ - --customize-hook='mkdir -p "$1/mnt" "$1/oldroot"' \ - --customize-hook='[ ! -e /usr/bin/mmdebstrap ] || cp -aT /usr/bin/mmdebstrap "$1/usr/bin/mmdebstrap"' \ - --customize-hook='[ ! -e ./mmdebstrap ] || cp -aT ./mmdebstrap "$1/mnt/mmdebstrap"' \ - --customize-hook='mount -o rbind "$1" /mnt && cd /mnt && /sbin/pivot_root . oldroot' \ - --customize-hook='unshare -U echo nested unprivileged unshare' \ -- --customize-hook='env --chdir=/mnt {{ CMD }} --mode=unshare --variant=apt --include=mount {{ DIST }} /tmp/chroot3.tar {{ MIRROR }}' \ -+ --customize-hook='env --chdir=/mnt {{ CMD }} --mode=unshare --variant=apt --include=mount,perl {{ DIST }} /tmp/chroot3.tar {{ MIRROR }}' \ - --customize-hook='copy-out /tmp/chroot3.tar /tmp' \ - --customize-hook='rm -f "/usr/bin/mmdebstrap" "/mnt/mmdebstrap"' \ - --customize-hook='umount -l oldroot sys' \ -@@ -41,11 +41,11 @@ if [ {{ MODE }} = "unshare" ]; then - rm /tmp/chroot2.tar /tmp/chroot3.tar - fi - --$prefix {{ CMD }} --mode={{ MODE }} --variant=apt --include=mount \ -+$prefix {{ CMD }} --mode={{ MODE }} --variant=apt --include=mount,perl \ - --customize-hook='mkdir -p "$1/mnt"' \ - --customize-hook='[ ! -e /usr/bin/mmdebstrap ] || cp -aT /usr/bin/mmdebstrap "$1/usr/bin/mmdebstrap"' \ - --customize-hook='[ ! -e ./mmdebstrap ] || cp -aT ./mmdebstrap "$1/mnt/mmdebstrap"' \ -- --chrooted-customize-hook='env --chdir=/mnt {{ CMD }} --mode=unshare --variant=apt --include=mount {{ DIST }} /tmp/chroot3.tar {{ MIRROR }}' \ -+ --chrooted-customize-hook='env --chdir=/mnt {{ CMD }} --mode=unshare --variant=apt --include=mount,perl {{ DIST }} /tmp/chroot3.tar {{ MIRROR }}' \ - --customize-hook='copy-out /tmp/chroot3.tar /tmp' \ - --customize-hook='rm -f "$1/usr/bin/mmdebstrap" "$1/mnt/mmdebstrap"' \ - {{ DIST }} /tmp/chroot2.tar {{ MIRROR }} --- -2.39.2 - diff --git a/debian/patches/0001-tests-debootstrap-dump-tmpdir-debootstrap-debootstra.patch b/debian/patches/0001-tests-debootstrap-dump-tmpdir-debootstrap-debootstra.patch deleted file mode 100644 index d80e282..0000000 --- a/debian/patches/0001-tests-debootstrap-dump-tmpdir-debootstrap-debootstra.patch +++ /dev/null @@ -1,31 +0,0 @@ -From d0c30c70bd7de22a7fc1f281346e7915dfb3d057 Mon Sep 17 00:00:00 2001 -From: Johannes Schauer Marin Rodrigues <josch@mister-muffin.de> -Date: Wed, 12 Jun 2024 11:41:17 +0200 -Subject: [PATCH] tests/debootstrap: dump $tmpdir/debootstrap/debootstrap.log - on failure - ---- - tests/debootstrap | 8 +++++++- - 1 file changed, 7 insertions(+), 1 deletion(-) - -diff --git a/tests/debootstrap b/tests/debootstrap -index 63c217d..9e1709e 100644 ---- a/tests/debootstrap -+++ b/tests/debootstrap -@@ -5,6 +5,12 @@ export SOURCE_DATE_EPOCH={{ SOURCE_DATE_EPOCH }} - - tmpdir="$(mktemp -d)" - chmod 755 "$tmpdir" --debootstrap "$([ "{{ DIST }}" = oldstable ] && echo --no-merged-usr || echo --merged-usr)" --variant={{ VARIANT }} {{ DIST }} "$tmpdir" {{ MIRROR }} -+ret=0 -+debootstrap "$([ "{{ DIST }}" = oldstable ] && echo --no-merged-usr || echo --merged-usr)" --variant={{ VARIANT }} {{ DIST }} "$tmpdir" {{ MIRROR }} || ret=$? -+if [ "$ret" -ne 0 ]; then -+ echo "E: debootstrap failed, dumping $tmpdir/debootstrap/debootstrap.log" -+ cat "$tmpdir/debootstrap/debootstrap.log" -+ exit 1 -+fi - tar --sort=name --mtime=@$SOURCE_DATE_EPOCH --clamp-mtime --numeric-owner --one-file-system --xattrs -C "$tmpdir" -c . > "./cache/debian-{{ DIST }}-{{ VARIANT }}.tar" - rm -r "$tmpdir" --- -2.39.2 - diff --git a/debian/patches/0001-tests-empty-sources.list-only-write-out-etc-apt-sour.patch b/debian/patches/0001-tests-empty-sources.list-only-write-out-etc-apt-sour.patch deleted file mode 100644 index 522f4ca..0000000 --- a/debian/patches/0001-tests-empty-sources.list-only-write-out-etc-apt-sour.patch +++ /dev/null @@ -1,33 +0,0 @@ -From 482699f377be9456cf42642e8912d040807c7b0b Mon Sep 17 00:00:00 2001 -From: Johannes Schauer Marin Rodrigues <josch@mister-muffin.de> -Date: Tue, 11 Jun 2024 12:41:15 +0200 -Subject: [PATCH] tests/empty-sources.list: only write out - /etc/apt/sources.list if it doesn't exist yet - -In the mmdebstrap autpkgtest, debian/tests/sourcesfilter will write out -/etc/apt/sources.list before the test's setup-hook is run. Thus, the -test's setup-hook will overwrite the contents of the sources.list that -debian/tests/sourcesfilter set up, which will end up pulling in the -wrong packages. - -Thus, only write out our own /etc/apt/sources.list if it does not yet -exist. If it does exist, nothing needs to be done. ---- - tests/empty-sources.list | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/tests/empty-sources.list b/tests/empty-sources.list -index bf384f3..f9a6a6a 100644 ---- a/tests/empty-sources.list -+++ b/tests/empty-sources.list -@@ -3,6 +3,6 @@ set -eu - export LC_ALL=C.UTF-8 - trap "rm -f /tmp/debian-chroot.tar" EXIT INT TERM - printf '' | {{ CMD }} --mode={{ MODE }} --variant=apt \ -- --setup-hook='echo "deb {{ MIRROR }} {{ DIST }} main" > "$1"/etc/apt/sources.list' \ -+ --setup-hook='test -e "$1"/etc/apt/sources.list || echo "deb {{ MIRROR }} {{ DIST }} main" > "$1"/etc/apt/sources.list' \ - {{ DIST }} /tmp/debian-chroot.tar - - tar -tf /tmp/debian-chroot.tar | sort | diff -u tar1.txt - --- -2.39.2 - diff --git a/debian/patches/series b/debian/patches/series deleted file mode 100644 index fc211c6..0000000 --- a/debian/patches/series +++ /dev/null @@ -1,3 +0,0 @@ -0001-tests-base-files-now-ships-merged-usr-symlinks.patch -0001-tests-empty-sources.list-only-write-out-etc-apt-sour.patch -0001-tests-debootstrap-dump-tmpdir-debootstrap-debootstra.patch |