• Re: Versioning question

    From The Wanderer@21:1/5 to Hilmar on Fri Mar 14 22:00:01 2025
    On 2025-03-14 at 16:40, Preuße, Hilmar wrote:

    Hello,

    I have some relationships defined in latest texlive-extra-utils:

    Package: texlive-extra-utils
    Replaces: <snip>, texlive-binaries (<= 2024.20240313.70630+ds-5)
    Breaks: <snip>, texlive-binaries (<= 2024.20240313.70630+ds-5)

    Nevertheless a test suite fails:

    38s Unpacking texlive-extra-utils (2024.20250309-1) ...
    39s dpkg: error processing archive /tmp/apt-dpkg-install-r5Hx5g/64-texlive-extra-utils_2024.20250309-1_all.deb (--unpack):
    39s trying to overwrite '/usr/share/man/man1/mflua.1.gz', which is
    also in package texlive-binaries (2024.20240313.70630+ds-5+b1)

    I guess 2024.20240313.70630+ds-5+b1 is larger than
    2024.20240313.70630+ds-5

    Yes, it is. You can see this by asking dpkg:

    $ dpkg --compare-versions 2024.20240313.70630+ds-5 gt 2024.20240313.70630+ds-5+b1
    $ echo $?
    1

    and I should rather write

    Replaces: <snip>, texlive-binaries (< 2024.20240313.70630+ds-6)
    Breaks: <snip>, texlive-binaries (< 2024.20240313.70630+ds-6)

    I'm not enough of an expert to say whether this is what you *should* do,
    but at a glance I think it looks like it would *work*.

    --
    The Wanderer

    The reasonable man adapts himself to the world; the unreasonable one
    persists in trying to adapt the world to himself. Therefore all
    progress depends on the unreasonable man. -- George Bernard Shaw

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Maytham Alsudany@21:1/5 to Hilmar on Sat Mar 15 01:50:01 2025
    On Fri, 2025-03-14 at 21:40 +0100, Preuße, Hilmar wrote:
    I guess 2024.20240313.70630+ds-5+b1 is larger than
    2024.20240313.70630+ds-5

    Yes.

    and I should rather write
    Replaces: <snip>, texlive-binaries (< 2024.20240313.70630+ds-6)
    Breaks: <snip>, texlive-binaries (< 2024.20240313.70630+ds-6)

    Use "<<" for "strictly less than", "<" will not work.
    Refer to the 4th paragraph of the Debian policy, section 7.1: https://www.debian.org/doc/debian-policy/ch-relationships.html

    --
    Maytham

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

    iQIzBAABCgAdFiEESl/RzRFQh8wD3DXB1ZeJcgbF8H8FAmfUzgEACgkQ1ZeJcgbF 8H8uWw/8Di3fyooa+TdcFtgqGU4TbAFjlOYl+sGJYg/Yk9ImZRbk+AvrU/w1crRw fJ9RHMeIvZ/aGBcxFkvwl9bGfkXxfrjZuQLL1GL9xsbskvpNlsaVKd6BFzJfp/r9 uLxW3dJ1lI7eoH/zqCVyeDgyxoTpxSkCePRLMvaIfaWLkCgn2vPRnKilGhJIg7+5 wlRC14ruGWT47HEDX9BVsfGk3UBzAf1C9qJFY78LnKzPLwqkAJjtnxURBxiA2MVr mESp5ZyAb0HQO2pQRUd9jgJdZMjg/tEXYbL9U0TeVzA36BwurTywr/eWthg/XN04 0X19enDDkFO51xRyIIru9LCPkOMuBg1B8QRhKT2kFx1gF+bWni/NztXdW7PW05ey 78XE1lPSMLjgLuwnwhhcFUVpkcOqFJPSBgC7EUnAWssM0YN3ilpvvj454L5PkPmw YBZ4HvP1KLhLKLiYQYgjmUUlrxuCrG2ziH/kLZKCFH3cS027VaW9JnYltCQB5YRC DGNttC2CdGEyI8GQ9dFdcC1gI+9q2+Wf/QkiH1/qdnFhVMQz7Ay11uykghGJh6E3 p7xwRV9QBicaosIB7+10ryffNjXVZAVoAYdVpDaR4+t2o9wREAvyLCC+KqiNHxs1 Gha2sXfxllySP5voe2vmTiw4shvj2X0Hm1A+oahsLj+vS4UTfLY=
    =eIEQ
    -----END PGP SIGNATURE-----

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