• Bug#1079020: lintian: bin-sbin-mismatch vs. shells

    From =?UTF-8?Q?Louis-Philippe_V=C3=A9ron@21:1/5 to Thorsten Glaser on Thu May 22 18:20:02 2025
    On 2024-08-18 7 h 38 p.m., Thorsten Glaser wrote:
    Package: lintian
    Version: 2.118.0

    lintian reports now, after dh_movetousr:

    X: mksh: bin-sbin-mismatch bin/mksh -> usr/bin/mksh [usr/share/doc/mksh/examples/uhr]

    I can only assume that this is due to the #!/bin/mksh shebang
    in that file. If so, please carry a list of interpreters in
    lintian whose canonical path is in /bin/ (or /sbin/) instead
    of the /usr/-moved locations, so that people won’t mistakenly
    change the canonical #!/bin/mksh shebang to the unportable,
    broken #!/usr/bin/mksh[sic!].

    Agreed, this is pretty bad.

    Happy to work on the Lintian code if someone can provide me with the aforementioned list (or a way to find it?).

    I'm CCing Helmut as he's worked on usr-merge and might already have one!
    --
    ⢀⣴⠾⠻⢶⣦⠀
    ⣾⠁⢠⠒⠀⣿⡁ Louis-Philippe Véronneau
    ⢿⡄⠘⠷⠚⠋ pollo@debian.org / veronneau.org
    ⠈⠳⣄

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Helmut Grohne@21:1/5 to All on Thu May 22 23:20:01 2025
    Hi Louis-Philippe and Thorsten,

    On Thu, May 22, 2025 at 12:16:20PM -0400, Louis-Philippe Véronneau wrote:
    lintian reports now, after dh_movetousr:

    X: mksh: bin-sbin-mismatch bin/mksh -> usr/bin/mksh [usr/share/doc/mksh/examples/uhr]

    This very much sounds like a bug in lintian to me. The bin-sbin-mismatch
    tag should be about names being used in bin/ and sbin/ concurrently and
    not be concerned with absence or presence of /usr.

    I can only assume that this is due to the #!/bin/mksh shebang
    in that file. If so, please carry a list of interpreters in
    lintian whose canonical path is in /bin/ (or /sbin/) instead
    of the /usr/-moved locations, so that people won’t mistakenly
    change the canonical #!/bin/mksh shebang to the unportable,
    broken #!/usr/bin/mksh[sic!].

    The #!/bin/mksh is totally right and should not be changed. We encoded
    that rather explicitly into policy that while the files should be moved
    inside data.tar, file references should remain as is.

    Happy to work on the Lintian code if someone can provide me with the aforementioned list (or a way to find it?).

    The list is quite simple: Everything.

    Helmut

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