• Bug#1104578: jabber-muc: preinst fails, calls adduser without Pre-Depen

    From Chris Hofstaedtler@21:1/5 to All on Fri May 2 11:30:02 2025
    Package: jabber-muc
    Version: 0.8-9
    Severity: serious
    User: reproducible-builds@lists.alioth.debian.org
    Usertag: toolchain

    Your package has a preinst maintainer script, calling adduser. At the same time, your package Depends: adduser, but does not Pre-Depends: adduser. Installing your package fails when adduser is not yet configured.

    Reproducer:

    $ mmdebstrap --variant=essential --include=jabber-muc unstable /dev/null
    ...
    Selecting previously unselected package jabber-muc.
    Preparing to unpack .../12-jabber-muc_0.8-9_arm64.deb ...
    warn: `/etc/adduser.conf' does not exist. Using defaults.
    Insecure $ENV{PATH} while running with -T switch at /usr/share/perl5/Debian/AdduserLogging.pm line 161.
    dpkg: error processing archive /tmp/apt-dpkg-install-J8T5y3/12-jabber-muc_0.8-9_arm64.deb (--unpack):
    new jabber-muc package pre-installation script subprocess returned error exit status 25
    Errors were encountered while processing:
    /tmp/apt-dpkg-install-J8T5y3/12-jabber-muc_0.8-9_arm64.deb
    E: Sub-process env returned an error code (1)


    You may consider replacing adduser with a sysusers fragment, see https://manpages.debian.org/unstable/debhelper/dh_installsysusers.1.en.html

    Otherwise, please Pre-Depend on adduser.

    Best,
    Chris

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Debian Bug Tracking System@21:1/5 to All on Sun May 4 18:40:01 2025
    Processing control commands:

    tags -1 patch
    Bug #1104578 [jabber-muc] jabber-muc: preinst fails, calls adduser without Pre-Depend-ing on it
    Added tag(s) patch.

    --
    1104578: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1104578
    Debian Bug Tracking System
    Contact owner@bugs.debian.org with problems

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Martin@21:1/5 to Pirate Praveen on Wed May 7 00:00:01 2025
    On 2025-05-04 21:56, Pirate Praveen wrote:
    The following debdiff should fix this bug, but I have not tested it.

    There are three issues with the patch:

    1. It seems, that debian/rules must be appended with:

    # Can be dropped in compat level 14
    execute_after_dh_installinit:
    dh_installsysusers

    2. The sysusers should be:

    #Type Name ID GECOS Home directory Shell
    g jabber -
    u jabber -:jabber "Jabber User" /var/lib/jabberd2

    3. But even then the chown in postinst happens *before* the group and
    user are created. No idea how to fix that.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Martin Hostettler@21:1/5 to debacle@debian.org on Sun Jun 1 23:10:01 2025
    On Wed, 07 May 2025 20:30:00 +0000 Martin <debacle@debian.org> wrote:
    On 2025-05-07 16:29, Pirate Praveen wrote:
    On Tue, 06 May 2025 21:54:57 +0000 Martin <debacle@debian.org> wrote:
    3. But even then the chown in postinst happens *before* the group and
    user are created. No idea how to fix that.

    May be we can explicitly call systemctl restart systemd-sysusers.service

    before we run chmod ?

    That, or just move the calls to chown below the #DEBHELPER# line?
    (Of course, guarded with an if [ "$1" == "configure" ]; ...)



    Any chance we get a fix before the auto-rm bot removes this package from trixie?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Debian Bug Tracking System@21:1/5 to All on Mon Jun 30 16:00:02 2025
    Processing control commands:

    tags 1104578 + pending
    Bug #1104578 [jabber-muc] jabber-muc: preinst fails, calls adduser without Pre-Depend-ing on it
    Added tag(s) pending.

    --
    1104578: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1104578
    Debian Bug Tracking System
    Contact owner@bugs.debian.org with problems

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Debian Bug Tracking System@21:1/5 to All on Mon Jul 7 10:40:01 2025
    This is a multi-part message in MIME format...

    Your message dated Mon, 07 Jul 2025 08:34:19 +0000
    with message-id <E1uYhIp-001ijk-Ek@fasolo.debian.org>
    and subject line Bug#1104578: fixed in jabber-muc 0.8-9.1
    has caused the Debian Bug report #1104578,
    regarding jabber-muc: preinst fails, calls adduser without Pre-Depend-ing on it 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 owner@bugs.debian.org
    immediately.)


    --
    1104578: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1104578
    Debian Bug Tracking System
    Contact owner@bugs.debian.org with problems

    Received: (at submit) by bugs.debian.org; 2 May 2025 09:24:11 +0000 X-Spam-Checker-Version: SpamAssassin 3.4.6-bugs.debian.org_2005_01_02
    (2021-04-09) on buxtehude.debian.org
    X-Spam-Level:
    X-Spam-Status: No, score=-116.7 required=4.0 tests=BAYES_00,
    BODY_INCLUDES_PACKAGE,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,
    DKIM_VALID_AU,FOURLA,FROMDEVELOPER,HAS_PACKAGE,SPF_HELO_NONE,SPF_NONE,
    UNPARSEABLE_RELAY,USER_IN_DKIM_WELCOMELIST,USER_IN_DKIM_WHITELIST
    autolearn=ham autolearn_force=no
    version=3.4.6-bugs.debian.org_2005_01_02
    X-Spam-Bayes: score:0.0000 Tokens: new, 21; hammy, 150; neutral, 92; spammy,
    0. spammytokens:
    hammytokens:0.000-+--Hx-spam-relays-external:sk:stravin,
    0.000-+--H*RT:sk:stravin, 0.000-+--Hx-spam-relays-external:311,
    0.000-+--H*RT:311, 0.000-+--H*RT:108
    Return-path: <zeha@debian.org>
    Received: from stravinsky.debian.org ([2001:4