Bug#972234: mmdebstrap: variant=standard fails with mixing buster and bullseye

2020-11-14 Thread Johannes Schauer
Control: tag -1 + pending

Hi,

Quoting Ryutaroh Matsumoto (2020-10-15 01:48:13)
> Backgroud: I want to build a Debian Buster SD card image booting
> Raspberry Pi 4B.
> To do this, linux-image-arm64 in Buster is too old and cannot be used.
> Some packages have to be pulled from buster-backports and bullseye,
> as done at
> https://raspi.debian.net/daily/raspi_4.yaml
> So I give 
> --include=linux-image-arm64/buster-backports,raspi-firmware/bullseye,firmware-brcm80211/buster-backports,wireless-regdb/buster-backports
> 
> With --variant=standard, I started mmdebstrap as follows:
> 
> mmdebstrap '--aptopt=APT::Default-Release "buster"' \\
> --architectures=arm64 --variant=standard \\
> --components="main contrib non-free" \\
> --include=linux-image-arm64/buster-backports,raspi-firmware/bullseye,firmware-brcm80211/buster-backports,wireless-regdb/buster-backports
>  \\
> buster /tmp/test - < deb http://deb.debian.org/debian/ buster main non-free contrib
> deb http://deb.debian.org/debian/ buster-backports main non-free contrib
> deb http://deb.debian.org/debian/ bullseye main contrib non-free
> EOF
> 
> Then I get the following error. It seems that mmdebstrap tries to install
> all packages in Buster and Bullseye with Priority == standard.
> It seems a bug, because "buster" is given as Suite to mmdebstrap.
> 
> I: automatically chosen mode: root
> I: arm64 cannot be executed, falling back to qemu-user
> I: Reading sources.list from standard input...
> I: automatically chosen format: directory
> I: running apt-get update...
> done
> I: downloading packages with apt...
> done
> I: extracting archives...
> done
> I: installing packages...
> done
> I: downloading apt...
> done
> I: installing apt...
> done
> I: installing remaining packages inside the chroot...
> done
> Reading package lists...
> Building dependency tree...
> adduser is already the newest version (3.118).
> apt is already the newest version (1.8.2.1).
> debconf is already the newest version (1.5.71).
> debian-archive-keyring is already the newest version (2019.1).
> gpgv is already the newest version (2.2.12-1+deb10u1).
> mawk is already the newest version (1.3.3-17+b3).
> libpam-modules is already the newest version (1.3.1-5).
> libpam-modules-bin is already the newest version (1.3.1-5).
> libpam-runtime is already the newest version (1.3.1-5).
> passwd is already the newest version (1:4.5-1.1).
> fdisk is already the newest version (2.33.1-0.1).
> Some packages could not be installed. This may mean that you have
> requested an impossible situation or if you are using the unstable
> distribution that some required packages have not yet been created
> or been moved out of Incoming.
> The following information may help to resolve the situation:
> 
> The following packages have unmet dependencies:
>  perl-modules-5.30 : Depends: perl-base (>= 5.30.3-1) but 5.28.1-6+deb10u1 is 
> to be installed
>  Breaks: libarchive-tar-perl (< 2.32)
>  Breaks: libexperimental-perl (< 0.020)
>  Breaks: libextutils-cbuilder-perl (< 0.280231)
>  Breaks: libextutils-parsexs-perl (< 3.40)
>  Breaks: libfile-spec-perl (< 3.7800)
>  Breaks: libhttp-tiny-perl (< 0.076)
>  Breaks: libjson-pp-perl (< 4.02000)
>  Breaks: libmath-bigint-perl (< 1.999816)
>  Breaks: libmodule-corelist-perl (< 5.20200601.30)
>  Breaks: libmodule-load-perl (< 0.34)
>  Breaks: libmodule-metadata-perl (< 1.36)
>  Breaks: libnet-ping-perl (< 2.71)
>  Breaks: libparent-perl (< 0.237)
>  Breaks: libtest-simple-perl (< 1.302162)
>  Breaks: libtest-tester-perl (< 1.302162)
>  Breaks: libtest-use-ok-perl (< 1.302162)
>  Breaks: libthread-queue-perl (< 3.13)
>  Breaks: libtime-local-perl (< 1.2800)
>  Breaks: libunicode-collate-perl (< 1.27)
>  Breaks: libversion-perl (< 1:0.9924)
>  Breaks: perl (< 5.30.3~) but 5.28.1-6+deb10u1 is to be 
> installed
>  Breaks: podlators-perl (< 4.11)
> E: Unable to correct problems, you have held broken packages.
> E: run_chroot failed: E: env --unset=APT_CONFIG --unset=TMPDIR 
> /usr/sbin/chroot /tmp/test env --unset=APT_CONFIG --unset=TMPDIR apt-get 
> --yes install -oAPT::Status-Fd=<$fd> -oDpkg::Use-Pty=false 
> linux-image-arm64/buster-backports raspi-firmware/bullseye 
> firmware-brcm80211/buster-backports wireless-regdb/buster-backports adduser 
> apt apt-utils apt-listchanges bash-completion bind9-host bsdmainutils bzip2 
> cpio cron dbus debconf debconf-i18n debian-archive-keyring debian-faq 
> dmidecode doc-debian e2fsprogs file gdbm-l10n gettext-base libc-l10n locales 
> gpgv groff-base hdparm ifupdown init iproute2 

Bug#972234: mmdebstrap: variant=standard fails with mixing buster and bullseye

2020-10-14 Thread Ryutaroh Matsumoto
Package: mmdebstrap
Version: 0.7.1-2
Severity: normal

Dear Maintainer,

Backgroud: I want to build a Debian Buster SD card image booting
Raspberry Pi 4B.
To do this, linux-image-arm64 in Buster is too old and cannot be used.
Some packages have to be pulled from buster-backports and bullseye,
as done at
https://raspi.debian.net/daily/raspi_4.yaml
So I give 
--include=linux-image-arm64/buster-backports,raspi-firmware/bullseye,firmware-brcm80211/buster-backports,wireless-regdb/buster-backports

With --variant=standard, I started mmdebstrap as follows:

mmdebstrap '--aptopt=APT::Default-Release "buster"' \\
--architectures=arm64 --variant=standard \\
--components="main contrib non-free" \\
--include=linux-image-arm64/buster-backports,raspi-firmware/bullseye,firmware-brcm80211/buster-backports,wireless-regdb/buster-backports
 \\
buster /tmp/test - = 5.30.3-1) but 5.28.1-6+deb10u1 is 
to be installed
 Breaks: libarchive-tar-perl (< 2.32)
 Breaks: libexperimental-perl (< 0.020)
 Breaks: libextutils-cbuilder-perl (< 0.280231)
 Breaks: libextutils-parsexs-perl (< 3.40)
 Breaks: libfile-spec-perl (< 3.7800)
 Breaks: libhttp-tiny-perl (< 0.076)
 Breaks: libjson-pp-perl (< 4.02000)
 Breaks: libmath-bigint-perl (< 1.999816)
 Breaks: libmodule-corelist-perl (< 5.20200601.30)
 Breaks: libmodule-load-perl (< 0.34)
 Breaks: libmodule-metadata-perl (< 1.36)
 Breaks: libnet-ping-perl (< 2.71)
 Breaks: libparent-perl (< 0.237)
 Breaks: libtest-simple-perl (< 1.302162)
 Breaks: libtest-tester-perl (< 1.302162)
 Breaks: libtest-use-ok-perl (< 1.302162)
 Breaks: libthread-queue-perl (< 3.13)
 Breaks: libtime-local-perl (< 1.2800)
 Breaks: libunicode-collate-perl (< 1.27)
 Breaks: libversion-perl (< 1:0.9924)
 Breaks: perl (< 5.30.3~) but 5.28.1-6+deb10u1 is to be 
installed
 Breaks: podlators-perl (< 4.11)
E: Unable to correct problems, you have held broken packages.
E: run_chroot failed: E: env --unset=APT_CONFIG --unset=TMPDIR /usr/sbin/chroot 
/tmp/test env --unset=APT_CONFIG --unset=TMPDIR apt-get --yes install 
-oAPT::Status-Fd=<$fd> -oDpkg::Use-Pty=false linux-image-arm64/buster-backports 
raspi-firmware/bullseye firmware-brcm80211/buster-backports 
wireless-regdb/buster-backports adduser apt apt-utils apt-listchanges 
bash-completion bind9-host bsdmainutils bzip2 cpio cron dbus debconf 
debconf-i18n debian-archive-keyring debian-faq dmidecode doc-debian e2fsprogs 
file gdbm-l10n gettext-base libc-l10n locales gpgv groff-base hdparm ifupdown 
init iproute2 iptables iputils-ping isc-dhcp-client isc-dhcp-common kmod 
krb5-locales less liblockfile-bin logrotate lsof man-db manpages mawk 
mime-support nano ncurses-term netbase netcat-traditional telnet whiptail