What | Removed | Added |
---|---|---|
Status | RESOLVED | REOPENED |
CC | mkoutny@suse.com, petr.pavlu@suse.com | |
Resolution | FIXED | --- |
I have
kmod-30-4.1.x86_64
and kernel build is broken:
> make O="$BUILD_DIR_C" INSTALL_MOD_PATH="$BUILD_DIR_C/mods" modules_install
> ...
> DEPMOD /root/build/mods/lib/modules/6.4.0
> sh /root/kernel/scripts/depmod.sh depmod 6.4.0
> (depmod: ERROR: could not open directory /tmp/depmod.PLcuyk/usr/lib/modules/6.4.0: No such file or directory)
> (depmod: FATAL: could not search modules: No such file or directory)
> depmod: ERROR: could not open directory /root/build/mods/usr/lib/modules/99.98.6.4.0: No such file or directory
> depmod: FATAL: could not search modules: No such file or directory
> make[1]: *** [/root/kernel/Makefile:1956: modules_install] Error 1
scripts/depmod.sh effectively calls 'depmod -b $INSTALL_MOD_PATH'
but `make modules_instdall` won't install under usr/ prefix.
Perhaps usr-lib-modules.patch should drop the hunk:
--- a/tools/depmod.c
+++ b/tools/depmod.c
@@ -3009,7 +3009,7 @@ static int do_depmod(int argc, char *argv[])
}
cfg.dirnamelen = snprintf(cfg.dirname, PATH_MAX,
- "%s/lib/modules/%s",
+ "%s" PREFIX "/lib/modules/%s",
root == NULL ? "" : root, cfg.kversion);
if (optind == argc)
IOW take value of `-b` arg verbatim regardless of configured prefix.