• Bug#1101454: adduser: deluser needs perl-modules-5.40

    From Samuel Thibault@21:1/5 to All on Thu Mar 27 19:30:01 2025
    Package: adduser
    Version: 3.137
    Severity: serious
    Justification: Makes postrm scripts fail

    Hello,

    In a fresh chroot without perl-modules-5.40, running deluser fails:

    # deluser
    Can't locate File/Find.pm in @INC (you may need to install the File::Find module) (@INC entries checked: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.40.1 /usr/local/share/perl/5.40.1 /usr/lib/x86_64-linux-gnu/perl5/5.40 /usr/share/perl5 /usr/lib/x86_
    64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.40 /usr/share/perl/5.40 /usr/local/lib/site_perl) at /usr/sbin/deluser line 48.
    BEGIN failed--compilation aborted at /usr/sbin/deluser line 48.

    This makes some postrm scripts fail, for instance in piuparts tests:

    https://piuparts.debian.org/sid/fail/speech-dispatcher_0.12.0-2.log

    Samuel

    -- System Information:
    Debian Release: trixie/sid
    APT prefers testing
    APT policy: (990, 'testing'), (500, 'unstable-debug'), (500, 'testing-debug'), (500, 'stable-security'), (500, 'stable-debug'), (500, 'oldstable-proposed-updates-debug'), (500, 'oldoldstable'), (500, 'buildd-unstable'), (500, 'unstable'), (500, 'stable'
    ), (500, 'oldstable'), (1, 'experimental-debug'), (1, 'buildd-experimental'), (1, 'experimental')
    Architecture: amd64 (x86_64)
    Foreign Architectures: i386, arm64

    Kernel: Linux 6.13.0 (SMP w/8 CPU threads; PREEMPT)
    Kernel taint flags: TAINT_WARN, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
    Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
    Shell: /bin/sh linked to /usr/bin/dash
    Init: systemd (via /run/systemd/system)
    LSM: AppArmor: enabled

    Versions of packages adduser depends on:
    ii passwd 1:4.17.3-1

    adduser recommends no packages.

    Versions of packages adduser suggests:
    ii cron 3.0pl1-194
    ii liblocale-gettext-perl 1.07-7+b1
    ii perl 5.40.1-2
    pn quota <none>

    -- debconf information:
    adduser/title:
    * adduser/homedir-permission: true

    --
    Samuel
    <m> bouhouhouh, b il m'a abandonné. Tout ca parce que je regardais plus mon emacs que lui !
    <m> s/lui/ses messages irc/
    -+- #ens-mim esseulé -+-

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Marc Haber@21:1/5 to Samuel Thibault on Thu Mar 27 22:10:01 2025
    On Thu, Mar 27, 2025 at 07:19:40PM +0100, Samuel Thibault wrote:
    # deluser
    Can't locate File/Find.pm in @INC (you may need to install the File::Find module) (@INC entries checked: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.40.1 /usr/local/share/perl/5.40.1 /usr/lib/x86_64-linux-gnu/perl5/5.40 /usr/share/perl5 /usr/lib/
    x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.40 /usr/share/perl/5.40 /usr/local/lib/site_perl) at /usr/sbin/deluser line 48.
    BEGIN failed--compilation aborted at /usr/sbin/deluser line 48.

    That should not happen. It made me jump directly to stage six of the
    "six stages of debugging". How could this ever have worked?!?

    This is also present in the current version of adduser, 3.149. May I ask
    why you were testing with a version from half a year ago?

    Try this patch please, against adduser 3.149

    diff --git a/deluser b/deluser
    index d41d45e..4054f1f 100755
    --- a/deluser
    +++ b/deluser
    @@ -45,13 +45,13 @@ my $install_more_packages;
    BEGIN {
    local $ENV{PERL_DL_NONLAZY}=1;
    eval {
    - use File::Find;
    + require File::Find;
    };
    if ($@) {
    $install_more_packages = 1;
    }
    eval {
    - use File::Temp;
    + require File::Temp;
    };
    if ($@) {
    $install_more_packages = 1;

    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)