• Bug#1069593: libsequoia-octopus-librnp: dpkg-divert in preinst doesn't

    From Daniel Kahn Gillmor@21:1/5 to All on Sun Apr 21 10:40:01 2024
    Package: libsequoia-octopus-librnp
    Version: 1.8.1-2
    Severity: normal
    X-Debbugs-Cc: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
    Control: affects -1 thunderbird gpg-from-sq gpgv-from-sq

    When i try to install thunderbird 1:115.10.1-1, i get this error:

    ```
    Unpacking thunderbird (1:115.10.1-1) over (1:115.9.0-1+b1) ...
    dpkg: error processing archive /var/cache/apt/archives/thunderbird_1%3a115.10.1-1_amd64.deb (--unpack):
    trying to overwrite '/usr/lib/thunderbird/librnp.so', which is also in package libsequoia-octopus-librnp 1.8.1-2
    dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
    Errors were encountered while processing:
    /var/cache/apt/archives/thunderbird_1%3a115.10.1-1_amd64.deb
    ```

    This looks to me like the octopus's dpkg-diversion is supposed to work
    to avoid this, but i don't see it happening.

    This seems to be due to the way the preinst script adds the diversion:

    ```
    if [ "$1" != "upgrade" ] ; then
    add_diversion /usr/lib/thunderbird/librnp.so
    fi
    ```

    i had version 1.8.1-1 installed before 1.8.1-2, which meant that i
    upgraded, and i didn't get the diversion added:

    grep octopus /var/log/dpkg.log.1 shows:

    2024-03-26 06:38:49 status installed libsequoia-octopus-librnp:amd64 1.8.1-1 2024-03-28 10:27:08 upgrade libsequoia-octopus-librnp:amd64 1.8.1-1 1.8.1-2

    Why does the package exclude the diversion when preinst runs on upgrade?

    i see the same issue in the use of dpkg-divert in gpg-from-sq and
    gpgv-from-sq also, btw. Compare that to the use of dpkg-divert in /var/lib/dpkg/info/perl-doc.preinst, for example, which triggers on both "install" and on "upgrade".

    I worked around this on my system by removing libsequoia-octopus-librnp, upgrading thunderbird, and then reinstalling libsequoia-octopus-librnp,
    but it seems like the goal should be to not have to make the user do
    that.

    --dkg



    -- System Information:
    Debian Release: trixie/sid
    APT prefers testing-debug
    APT policy: (500, 'testing-debug'), (500, 'testing'), (500, 'stable'), (500, 'oldstable'), (200, 'unstable-debug'), (200, 'unstable'), (1, 'experimental-debug'), (1, 'experimental')
    Architecture: amd64 (x86_64)

    Kernel: Linux 6.6.15-amd64 (SMP w/4 CPU threads; PREEMPT)
    Kernel taint flags: TAINT_FIRMWARE_WORKAROUND
    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)


    -----BEGIN PGP SIGNATURE-----

    wr0EARYKAG8FgmYkzlcJEHctFh41zUuBRxQAAAAAAB4AIHNhbHRAbm90YXRpb25z LnNlcXVvaWEtcGdwLm9yZ+oW1hIYlBV3c2XgOmgYfHWUb4dkgY1r+V+DRTSn3WZc FiEEdLwExD2GCEvoZywGdy0WHjXNS4EAAMm7AP9ph4+XnncorqP/3ZrHKKQeQMVI THEa2bHN1nkYleuWaQD+IwUw+0B6JvpzytSOWUsptlvWQS2xuuHdFloIYtkVOw8=
    =lyWa
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Holger Levsen@21:1/5 to Daniel Kahn Gillmor on Mon Apr 22 11:20:01 2024
    hi dkg,

    thanks for these bugreports! I've commited fixes and am doing test
    builds now and will upload shortly.

    On Sun, Apr 21, 2024 at 04:29:10AM -0400, Daniel Kahn Gillmor wrote:
    Why does the package exclude the diversion when preinst runs on upgrade?

    I guess because I used a bad example...

    i see the same issue in the use of dpkg-divert in gpg-from-sq and gpgv-from-sq also, btw. Compare that to the use of dpkg-divert in /var/lib/dpkg/info/perl-doc.preinst, for example, which triggers on both "install" and on "upgrade".

    thanks. will upload a new version of chameleon once we confirmed
    with this package that the fix works.

    I worked around this on my system by removing libsequoia-octopus-librnp, upgrading thunderbird, and then reinstalling libsequoia-octopus-librnp,
    but it seems like the goal should be to not have to make the user do
    that.

    yes, absolutly.


    --
    cheers,
    Holger

    ⢀⣴⠾⠻⢶⣦⠀
    ⣾⠁⢠⠒⠀⣿⡁ holger@(debian|reproducible-builds|layer-acht).org
    ⢿⡄⠘⠷⠚⠋⠀ OpenPGP: B8BF54137B09D35CF026FE9D 091AB856069AAA1C
    ⠈⠳⣄

    "I became an antifascist out of a sense of common decency.” – Marlene Dietrich

    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCgAdFiEEuL9UE3sJ01zwJv6dCRq4VgaaqhwFAmYmKkkACgkQCRq4Vgaa qhyK8A/+PSZ/IqZyLyG9q1xwSvEgE2Bq4B03v+UxWbsb/bguPys/dU1UefgYTN/4 YWfdPNDgIoPqaahNWgr05SrEjrsdtLSF0y6zZ6EbqQaiGPbvek+XWpLfBqJUq6CP bUQOHqpNoihy+8KSCjxAffKtximmcNd9tZiK+Bp0iKI8RnNCLBt1heAPL4FdVPMq QOtf88AyGJ/R2qTDbhffJSpLWOkzoFJx97Iebj66ZG0sxzXwXcDkaEJNhzccTqvc ++tVyVg0jAhG7rGWuf8AocGIPszhPZzwIdTOsCiwYb22yj/NHes9ZHGHgx+MMpFz O4E02Z4PS2VmD435UzRFZQMZlTKGLwXy0QC4Y7r/worT8aLaf/s7OzwURc14+1gx 1rGnrFI7bWHN0gHWobL5QDNPVP1HifcKsBv8PS18Wtr7ySus4wPNMaiqKa9mVKKu R3w4GT6ZuhADtbmOGoyFPqXSzYHYSyyLztMRXVWO+2Fk+fn5T63b6o1/eUteur0x sksFkT+Jms7x9pSUe3EI/XKI5hvC+kOvtzAGsiLYsZzg/xLYXuVs8jQZdtaqZTUd j+t5eVBq7ARROulpcXL6DsVI2zfJXb