• Bug#1063804: FTBFS: depmod: FATAL: could not search modules: No such fi

    From Bastian Blank@21:1/5 to Salvatore Bonaccorso on Mon Feb 12 22:30:01 2024
    On Mon, Feb 12, 2024 at 10:09:41PM +0100, Salvatore Bonaccorso wrote:
    kernel-wedge copy-modules 6.6.15 amd64 6.6.15-amd64
    depmod: ERROR: could not open directory /<<PKGBUILDDIR>>/debian/linux-image-6.6.15-amd64/usr/lib/modules/6.6.15-amd64: No such file or directory

    I would say depmod changed the API from /lib/modules to
    /usr/lib/modules. Re-assign?

    Bastian

    --
    Every living thing wants to survive.
    -- Spock, "The Ultimate Computer", stardate 4731.3

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Salvatore Bonaccorso@21:1/5 to Bastian Blank on Mon Feb 12 22:40:01 2024
    Hi Bastian,

    On Mon, Feb 12, 2024 at 10:16:21PM +0100, Bastian Blank wrote:
    On Mon, Feb 12, 2024 at 10:09:41PM +0100, Salvatore Bonaccorso wrote:
    kernel-wedge copy-modules 6.6.15 amd64 6.6.15-amd64
    depmod: ERROR: could not open directory /<<PKGBUILDDIR>>/debian/linux-image-6.6.15-amd64/usr/lib/modules/6.6.15-amd64: No such file or directory

    I would say depmod changed the API from /lib/modules to
    /usr/lib/modules. Re-assign?

    A right, the last upload of kmod changed to use:

    --with-module-directory=/usr/lib/modules

    Looping in Marco for comments.

    Regards,
    Salvatore

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Bastian Blank@21:1/5 to Salvatore Bonaccorso on Mon Feb 12 22:50:01 2024
    On Mon, Feb 12, 2024 at 10:26:07PM +0100, Salvatore Bonaccorso wrote:
    On Mon, Feb 12, 2024 at 10:16:21PM +0100, Bastian Blank wrote:
    On Mon, Feb 12, 2024 at 10:09:41PM +0100, Salvatore Bonaccorso wrote:
    kernel-wedge copy-modules 6.6.15 amd64 6.6.15-amd64
    depmod: ERROR: could not open directory /<<PKGBUILDDIR>>/debian/linux-image-6.6.15-amd64/usr/lib/modules/6.6.15-amd64: No such file or directory
    I would say depmod changed the API from /lib/modules to
    /usr/lib/modules. Re-assign?
    A right, the last upload of kmod changed to use: --with-module-directory=/usr/lib/modules

    The problem is, this now ties linux, kernel-wedge and kmod together.
    And with backports and the implicit nature of dh_movetousr, this is not
    a good idea right now.

    So we need to
    - make /usr usage explicit (in linux-signed-* it is still completely
    disabled, because of this implicit usage)
    - teach kernel-wedge to not assume

    Bastian

    --
    A Vulcan can no sooner be disloyal than he can exist without breathing.
    -- Kirk, "The Menagerie", stardate 3012.4

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Bastian Blank@21:1/5 to Marco d'Itri on Mon Feb 12 23:10:01 2024
    Control: reassign -1 kmod

    On Mon, Feb 12, 2024 at 10:37:46PM +0100, Marco d'Itri wrote:
    On Feb 12, Salvatore Bonaccorso <carnil@debian.org> wrote:
    --with-module-directory=/usr/lib/modules
    I can revert it if it causes too much trouble, but maybe this is just
    the right time to switch the kernel packages to /usr/lib/modules/ as well?

    We can't change this on our own. The usage of $BASE/lib/modules is
    baked in pretty deep into the kernel build.

    | MODLIB = $(INSTALL_MOD_PATH)/lib/modules/$(KERNELRELEASE)
    and
    | depmod -b "$INSTALL_MOD_PATH"

    depmod need to learn to work with MODLIB to even be able to change this
    value.

    The main linux build does not break, because we skip depmod during
    build. But any other, including manual linux builds, will break.

    Bastian

    --
    Only a fool fights in a burning house.
    -- Kank the Klingon, "Day of the Dove", stardate unknown

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Martin Steigerwald@21:1/5 to All on Tue Feb 13 00:40:01 2024
    Hi!

    This breaks compiling my own kernel with:

    time eatmydata make -j16 bindeb-pkg LOCALVERSION=-t14

    Likely going to downgrade and pin kmod to a working version as I am
    seriously fed up with usr-merge related bugs. (Yeah, it is called unstable
    for a reason and if I use it unstable is what I may get. But I really
    don't see how any possible benefit justifies that immense and error-prone effort. Anyway it is not me doing that work.)

    Best,
    --
    Martin

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Martin Steigerwald@21:1/5 to All on Tue Feb 13 09:30:01 2024
    Martin Steigerwald - 13.02.24, 00:24:35 CET:
    This breaks compiling my own kernel with:

    time eatmydata make -j16 bindeb-pkg LOCALVERSION=-t14

    Work-around:

    […]etc/apt/preferences.d% cat kmod
    Explanation: Bug #1063804: FTBFS: depmod: FATAL: could not search modules: No such file or directory
    Package: kmod libkmod2
    Pin: version *
    Pin-Priority: -30000

    Install kmod and libkmod2 31-1 from snapshot.debian.org.

    Best,
    --
    Martin

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