• Bug#1099698: dracut: recommends nonexistent package

    From cacin@allfreemail.net@21:1/5 to All on Thu Mar 6 23:00:01 2025
    This is a multi-part MIME message sent by reportbug.


    Source: dracut
    Version: 106-5
    Severity: serious
    Tags: patch
    Justification: Policy 2.2.1

    Dear Maintainer,

    dracut-core currently recommends the package dmraid which has been
    removed from debian, see #1056944 [1].

    recommending a package that is not present in debian main is considered
    a violation of a 'must' directive of the debian policy, which carries a 'serious' severity for bug reports [2].

    Debian policy [3] states:
    "the packages in main must not require or recommend a package outside of
    main for compilation or execution (thus, the package must not declare a Pre-Depends, Depends, Recommends, Build-Depends, Build-Depends-Indep, or Build-Depends-Arch relationship on a non-main package unless that
    package is only listed as a non-default alternative for a package in
    main)"

    Please review your package dependencies so that they are aligned with
    the debian policy. Thanks.

    Patch attached that removes the dmraid dependency from the control file.
    I don't know if it's suitable to also remove the unpacking of usr/lib/dracut/modules.d/90dmraid in dracut-core.install so I did not
    remove it.

    [1] https://bugs.debian.org/1056944
    [2] https://www.debian.org/doc/debian-policy/ch-scope.html#id2
    [3] https://www.debian.org/doc/debian-policy/ch-archive.html#the-main-archive-area

    diff --git a/debian/control b/debian/control
    index 0db7cfa..679df7d 100644
    --- a/debian/control
    +++ b/debian/control
    @@ -30,7 +30,6 @@ Depends: cpio,
    Recommends: binutils,
    console-setup,
    cryptsetup,
    - dmraid,
    dmsetup,
    kpartx,
    lvm2,

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andreas Tille@21:1/5 to All on Fri Apr 11 11:30:01 2025
    Hi Thomas,

    Cacin has injected the suggested patch in Git[1]. Just let me know
    if you think the solution is that simple - I have seen

    dracut-core.install:usr/lib/dracut/modules.d/90dmraid

    which might make less sense without this recommends. If the fix is OK
    for you and you simply have no time for uploading I'd volunteer to
    upload the repository as is.

    Kind regards
    Andreas.


    [1] https://salsa.debian.org/debian/dracut/-/commit/ed0d14da0aeb17d77dd6e851f7a9733dd551884a

    --
    https://fam-tille.de

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