Skip to contentSkip to conversation

kbuild: rpm-pkg: ghost modules.weakdep file

PATCH In review Jose Ignacio Tornos Martinez 2 participants 2 messages Jul 26, 2024 – Jul 28, 2024 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kbuild: rpm-pkg: ghost modules.weakdep file

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.

---
 scripts/package/kernel.spec | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/package/kernel.spec +1 -1
index 74355ff0e106..d558d39c01b6 100644
@@ -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 weakdep symbols symbols.bin; do
 		echo "%ghost /lib/modules/%{KERNELRELEASE}/modules.${x}"
 	done
 
Signature · 1 line
2.45.2
#1 lore raw
Quoted 8 lines · Jose Ignacio Tornos Martinez

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.

---

The usage in another thread seems to be kind of controversial, but modules.weakdep already landed in kmod.
So, I applied this to linux-kbuild/fixes.
Thanks!

Quoted 20 lines
 scripts/package/kernel.spec | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/package/kernel.spec +1 -2
index 74355ff0e106..d558d39c01b6 100644
@@ -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 weakdep symbols symbols.bin; do
                echo "%ghost /lib/modules/%{KERNELRELEASE}/modules.${x}"
        done
 
--

2.45.2

Signature · 2 lines
Best Regards
Masahiro Yamada