Your message dated Wed, 18 Feb 2026 19:25:38 +0100
with message-id <[email protected]>
and subject line Re: Bug#1128355: linux-base: indirectly missing perl
dependency?
has caused the Debian Bug report #1128355,
regarding linux-base: indirectly missing perl dependency?
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
1128355: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1128355
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: linux-base
Version: 4.12
Hi. This relates to whether Perl should be a package dependency of
linux-base. linux-base provides /usr/bin/linux-version which can be
invoked by many things that interact with initramfs / firmware
generation, kernel level build stuff. If perl is not installed, the
invocation will fail. If this occurs when creating a chroot (eg via
mmdebstrap as we are), this breaks the build. A workaround is to specify
perl in the list of packages that get installed in the chroot.
While package linux-base does not require perl, it installs a script
that if invoked will fail to run if perl is not installed. This problem
goes unnoticed if installing a system from minbase or friends (because
perl is pulled by something), but it shows up if doing a custom chroot
build where a specific list of packages is used to seed (and therefore
expected to be installed in) the chroot, along with their dependencies.
perl-base is listed as Priority:required which, AFAIK, means it is
absolutely mandatory. If so, why does it not get auto-installed as a
dependency of at least one of the packages below when constructing a
Trixie base? The same is true of Bookworm (excluding
linux-sysctl-defaults).
findutils
dpkg
libc-bin
base-files
base-passwd
debianutils
bash
diffutils
util-linux
sed
grep
gzip
udev
e2fsprogs
linux-sysctl-defaults
If the above set plus initramfs-tools plus our raspberry pi kernel image
is requested for install, apt fails to install all packages:
Processing triggers for initramfs-tools (0.148.3+rpt2) ...
/usr/sbin/update-initramfs: line 217: /usr/bin/linux-version: cannot
execute: required file not found
dpkg: error processing package initramfs-tools (--install):
linux-version cannot be executed because there is no (perl) interpreter
installed in the chroot.
Adding perl-base to the above list results in a successful build. Why
should this be required? If perl-base is mandatory for any Debian
system, why is it not pulled in automatically by one of the above
packages?
At first glance, it may seem reasonable to think that base-files could
be a candidate of which to mark perl-base as a dependency of. However,
the above package list is able to install successfully without any linux
package dependency because nothing invokes linux-base, therefore making
it not mandatory in such a system (although how useful this system would
be is unclear - probably not very).
I would like to ask the linux-base maintainers if there should be an
explicitly dependency on perl-base and if not, where should the
dependency be wired?
Thanks,
-- Matt
--- End Message ---
--- Begin Message ---
As explained by other developers, perl-base is essential and does not
require an explicit dependency.
Ben.
--
Ben Hutchings
Tomorrow will be cancelled due to lack of interest.
signature.asc
Description: This is a digitally signed message part
--- End Message ---