• Bug#1086012: dpkg: don't spawn a subprocess when it's not needed

    From Matteo Croce@1:229/2 to All on Fri Oct 25 00:50:01 2024
    XPost: linux.debian.bugs.dist
    From: [email protected]

    This is a multi-part MIME message sent by reportbug.


    Package: dpkg
    Version: 1.21.22
    Severity: wishlist

    Dear Maintainer,

    I'm working on the dpkg codebase, and I've found that when extracting a
    .deb with an uncompressed data.tar, we can install it even without calling dpk-deb as subprocess.
    Find a patch attached.

    Regards,

    -- Package-specific info:
    This system uses merged-usr-via-aliased-dirs, going behind dpkg's
    back, breaking its core assumptions. This can cause silent file
    overwrites and disappearances, and its general tools misbehavior.
    See <https://wiki.debian.org/Teams/Dpkg/FAQ#broken-usrmerge>.

    -- System Information:
    Debian Release: 12.7
    APT prefers stable-security
    APT policy: (500, 'stable-security'), (500, 'stable')
    Architecture: amd64 (x86_64)

    Kernel: Linux 6.11.0-saturno (SMP w/8 CPU threads)
    Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
    Shell: /bin/sh linked to /usr/bin/dash
    Init: systemd (via /run/systemd/system)

    Versions of packages dpkg depends on:
    ii libbz2-1.0 1.0.8-5+b1
    ii libc6 2.36-9+deb12u8
    ii liblzma5 5.4.1-0.2
    ii libmd0 1.0.4-2
    ii libselinux1 3.4-1+b6
    ii libzstd1 1.5.4+dfsg2-5
    ii tar 1.34+dfsg-1.2+deb12u1
    ii zlib1g 1:1.2.13.dfsg-1

    dpkg recommends no packages.

    Versions of packages dpkg suggests:
    ii apt 2.6.1
    pn debsig-verify <none>

    -- no debconf information

    [SoupGate killed MIME-encoded file 0001-dpkg-don-t-spawn-a-subprocess-if-not-needed.patch (7214 bytes)]

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)