2022-05-25 14:02:09 +00:00
|
|
|
#!/bin/sh
|
|
|
|
set -eu
|
|
|
|
export LC_ALL=C.UTF-8
|
|
|
|
if [ ! -e /mmdebstrap-testenv ]; then
|
2024-10-11 16:29:25 +00:00
|
|
|
echo "this test modifies the system and should only be run inside a container" >&2
|
|
|
|
exit 1
|
2022-05-25 14:02:09 +00:00
|
|
|
fi
|
|
|
|
# remove qemu just to be sure
|
2024-09-12 23:13:04 +00:00
|
|
|
apt-get remove --yes qemu-user-binfmt binfmt-support qemu-user
|
2022-05-25 14:02:09 +00:00
|
|
|
{{ CMD }} --mode={{ MODE }} --variant=apt --architectures=i386 {{ DIST }} /tmp/debian-chroot.tar {{ MIRROR }}
|
|
|
|
# we ignore differences between architectures by ignoring some files
|
|
|
|
# and renaming others
|
2024-10-11 16:29:25 +00:00
|
|
|
{
|
|
|
|
tar -tf /tmp/debian-chroot.tar \
|
|
|
|
| grep -v '^\./usr/bin/i386$' \
|
|
|
|
| grep -v '^\./usr/lib/ld-linux\.so\.2$' \
|
|
|
|
| grep -v '^\./usr/lib/i386-linux-gnu/ld-linux\.so\.2$' \
|
|
|
|
| grep -v '^\./usr/lib/gcc/i686-linux-gnu/$' \
|
|
|
|
| grep -v '^\./usr/lib/gcc/i686-linux-gnu/[0-9]\+/$' \
|
|
|
|
| grep -v '^\./usr/share/man/man8/i386\.8\.gz$' \
|
|
|
|
| grep -v '^\./usr/share/doc/[^/]\+/changelog\(\.Debian\)\?\.i386\.gz$' \
|
|
|
|
| sed 's/i386-linux-gnu/x86_64-linux-gnu/' \
|
|
|
|
| sed 's/i386/amd64/' \
|
|
|
|
| sed 's/\/stubs-32.ph$/\/stubs-64.ph/'
|
|
|
|
} | sort >tar2.txt
|
|
|
|
{
|
|
|
|
grep <tar1.txt -v '^\./usr/bin/i386$' \
|
|
|
|
| grep -v '^\./usr/bin/x86_64$' \
|
|
|
|
| grep -v '^\./usr/lib32/$' \
|
|
|
|
| grep -v '^\./lib32$' \
|
|
|
|
| grep -v '^\./lib64$' \
|
|
|
|
| grep -v '^\./usr/lib64/$' \
|
|
|
|
| grep -v '^\./usr/lib64/ld-linux-x86-64\.so\.2$' \
|
|
|
|
| grep -v '^\./usr/lib/gcc/x86_64-linux-gnu/$' \
|
|
|
|
| grep -v '^\./usr/lib/gcc/x86_64-linux-gnu/[0-9]\+/$' \
|
|
|
|
| grep -v '^\./usr/lib/x86_64-linux-gnu/ld-linux-x86-64\.so\.2$' \
|
|
|
|
| grep -v '^\./usr/lib/x86_64-linux-gnu/libmvec\.so\.1$' \
|
|
|
|
| grep -v '^\./usr/share/doc/[^/]\+/changelog\(\.Debian\)\?\.amd64\.gz$' \
|
|
|
|
| grep -v '^\./usr/share/man/man8/i386\.8\.gz$' \
|
|
|
|
| grep -v '^\./usr/share/man/man8/x86_64\.8\.gz$'
|
2022-10-16 20:32:46 +00:00
|
|
|
} | sort | diff -u - tar2.txt >&2
|
2022-05-25 14:02:09 +00:00
|
|
|
rm /tmp/debian-chroot.tar
|