• Re: dpkg-maintscript-helper and usrmerge

    From Mark Pearson@21:1/5 to Michael Biebl on Mon Sep 30 19:10:01 2024
    Hi Michael, Thanks Vincent

    On Mon, Sep 30, 2024, at 12:42 PM, Michael Biebl wrote:
    Hi Vincent

    Am 30.09.24 um 18:28 schrieb Vincent Bernat:
    Hey!

    When a package migrates from /lib to /usr/lib, it seems that dpkg-
    maintscript-helper gets confused and says that the target path (when
    trying to turn a directory to symlink for example) is not owned by the
    (currently installed) package, which is right.

    Is there a way to make dpkg-maintscript-helper plays nice with these
    changes without hacking something in each package?

    Do you have a specific package which is affected by this so we can have
    a look?

    Vincent has been kindly helping me with this.

    The firmware-sof-signed 2024.06 package: https://packages.debian.org/trixie/firmware-sof-signed

    In particular the sof-ipc4-tplg package that is being converted from a directory to a symlink.

    The dpkg-maintscript-helper complains about /usr/lib/firmware/intel/sof-ace-tplg (and it's contents) not being owned by the package - because they were all previously under /lib.

    I suspect this is more of a special case, so would like to see a few
    more details.


    Holler if you need anything else.

    Mark

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Mark Pearson@21:1/5 to Michael Biebl on Tue Oct 1 20:40:01 2024
    Thanks Michael

    On Tue, Oct 1, 2024, at 7:44 AM, Michael Biebl wrote:
    Am 01.10.24 um 12:17 schrieb Michael Biebl:
    Am 30.09.24 um 18:53 schrieb Mark Pearson:
    The firmware-sof-signed 2024.06 package:
    https://packages.debian.org/trixie/firmware-sof-signed

    In particular the sof-ipc4-tplg package that is being converted from a
    directory to a symlink.

    The dpkg-maintscript-helper complains about /usr/lib/firmware/intel/
    sof-ace-tplg (and it's contents) not being owned by the package -
    because they were all previously under /lib.

    I suspect this is more of a special case, so would like to see a few
    more details.


    Holler if you need anything else.

    I test upgraded firmware-sof-signed from bookworm to trixie. The
    bookworm chroot was usrmerged.


    Ok, I see the problem now.

    The issue is, that the path used in dir_to_symlink changed pre and post usrmove. I don't think you can express that via a .maintscript file.

    The attached debdiff should do.

    This looks good to me.

    Just to confirm with an expert - I also have this MR for the issue: https://salsa.debian.org/mpearson/firmware-sof/-/merge_requests/7/diffs?commit_id=e25d24fbbb99d8416eef2eb51bf3f1a84ce54fbe

    But I think your solution is cleaner - in my limited knowledge/experience.

    I'm going ahead and testing it, but if you have any feedback or thoughts let me know.

    Many thanks for the help

    Mark

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Mark Pearson@21:1/5 to Michael Biebl on Wed Oct 2 01:40:01 2024
    On Tue, Oct 1, 2024, at 4:32 PM, Michael Biebl wrote:
    Am 01.10.24 um 20:15 schrieb Mark Pearson:

    On Tue, Oct 1, 2024, at 7:44 AM, Michael Biebl wrote:
    Am 01.10.24 um 12:17 schrieb Michael Biebl:

    The issue is, that the path used in dir_to_symlink changed pre and post
    usrmove. I don't think you can express that via a .maintscript file.

    The attached debdiff should do.

    This looks good to me.

    Just to confirm with an expert - I also have this MR for the issue:
    https://salsa.debian.org/mpearson/firmware-sof/-/merge_requests/7/diffs?commit_id=e25d24fbbb99d8416eef2eb51bf3f1a84ce54fbe

    But I think your solution is cleaner - in my limited knowledge/experience. >>
    I'm going ahead and testing it, but if you have any feedback or thoughts let me know.

    Thanks for the reference.
    The lintian-overrides is probably a good idea. You might want to pull
    that (and adapt it, regarding the comment and the the path) from that MR. That said, I prefer my solution, as it is more obvious to me what it
    does and why.

    Ack - will do.
    I did some testing this afternoon, of your version, and it looked good.
    Thanks again
    Mark

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