kbuild: rpm-pkg: ghost modules.weakdep file
authorJose Ignacio Tornos Martinez <jtornosm@redhat.com>
Fri, 26 Jul 2024 09:00:26 +0000 (11:00 +0200)
committerMasahiro Yamada <masahiroy@kernel.org>
Sun, 28 Jul 2024 08:07:03 +0000 (17:07 +0900)
In the same way as for other similar files, mark as ghost the new file
generated by depmod for configured weak dependencies for modules,
modules.weakdep, so that although it is not included in the package,
claim the ownership on it.

Signed-off-by: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/package/kernel.spec

index 74355ff..ac3e5ac 100644 (file)
@@ -74,7 +74,7 @@ ln -fns /usr/src/kernels/%{KERNELRELEASE} %{buildroot}/lib/modules/%{KERNELRELEA
        echo "/lib/modules/%{KERNELRELEASE}"
 
        for x in alias alias.bin builtin.alias.bin builtin.bin dep dep.bin \
-                                       devname softdep symbols symbols.bin; do
+                               devname softdep symbols symbols.bin weakdep; do
                echo "%ghost /lib/modules/%{KERNELRELEASE}/modules.${x}"
        done