Discussion:
Bug#1090367: debfoster: wants to remove libperl5.40 (which removes perl and openssh-server) even with -oMaxPriority=standard
Add Reply
Lucas Nussbaum
2024-12-17 16:00:01 UTC
Reply
Permalink
Package: debfoster
Version: 2.8-1
Severity: important
X-Debbugs-Cc: ***@debian.org

Hi,

I use debfoster in an automated way when building system images, to
clean up the image of unwanted packages.

For that, I use:
debfoster -oMaxPriority=standard -f <list of packages I want to keep>

<list of packages I want to keep> includes openssh-server.

However, on Debian testing, this removes openssh-server and perl.
# debfoster -oMaxPriority=standard openssh-server
libgdbm-compat4t64 perl perl-modules-5.40
So debfoster thinks it can remove libperl5.40, even if it removes perl,
which also removes ucf, which also removes openssh-server.

That looks wrong.

Lucas


-- System Information:
Debian Release: trixie/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 6.11.10-amd64 (SMP w/2 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=C.UTF-8 (charmap=locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages debfoster depends on:
ii libc6 2.40-4
ii libgc1 1:8.2.8-1

Versions of packages debfoster recommends:
ii apt 2.9.16

debfoster suggests no packages.

-- debconf information:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "C.UTF-8",
LC_NUMERIC = (unset),
LC_COLLATE = (unset),
LC_TIME = (unset),
LC_MESSAGES = (unset),
LC_MONETARY = (unset),
LC_ADDRESS = (unset),
LC_IDENTIFICATION = (unset),
LC_MEASUREMENT = (unset),
LC_PAPER = (unset),
LC_TELEPHONE = (unset),
LC_NAME = (unset),
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Marc Haber
2024-12-20 21:30:01 UTC
Reply
Permalink
Post by Lucas Nussbaum
I use debfoster in an automated way when building system images, to
clean up the image of unwanted packages.
debfoster -oMaxPriority=standard -f <list of packages I want to keep>
<list of packages I want to keep> includes openssh-server.
However, on Debian testing, this removes openssh-server and perl.
What happens if you include libper5.40 and/or perl it self into the
list?

I usually "initialize" debfoster by putting a /var/lib/debfoster/keepers
with the desired contents into the file system.

Yes, that's only a possible workaround.

Greetings
Marc
--
-----------------------------------------------------------------------------
Marc Haber | "I don't trust Computers. They | Mailadresse im Header
Leimen, Germany | lose things." Winona Ryder | Fon: *49 6224 1600402
Nordisch by Nature | How to make an American Quilt | Fax: *49 6224 1600421
Lucas Nussbaum
2024-12-21 08:40:01 UTC
Reply
Permalink
Hi,
Post by Marc Haber
Post by Lucas Nussbaum
I use debfoster in an automated way when building system images, to
clean up the image of unwanted packages.
debfoster -oMaxPriority=standard -f <list of packages I want to keep>
<list of packages I want to keep> includes openssh-server.
However, on Debian testing, this removes openssh-server and perl.
What happens if you include libper5.40 and/or perl it self into the
list?
Yes, that works: I worked around this by adding perl to the list.

Lucas

Loading...