public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] kbuild: rpm-pkg: ghost modules.weakdep file
@ 2024-07-26  9:00 Jose Ignacio Tornos Martinez
  2024-07-28  8:08 ` Masahiro Yamada
  0 siblings, 1 reply; 2+ messages in thread
From: Jose Ignacio Tornos Martinez @ 2024-07-26  9:00 UTC (permalink / raw)
  To: masahiroy, nathan, nicolas, linux-kbuild, linux-kernel
  Cc: 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.

Signed-off-by: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>
---
 scripts/package/kernel.spec | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/package/kernel.spec b/scripts/package/kernel.spec
index 74355ff0e106..d558d39c01b6 100644
--- a/scripts/package/kernel.spec
+++ b/scripts/package/kernel.spec
@@ -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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] kbuild: rpm-pkg: ghost modules.weakdep file
  2024-07-26  9:00 [PATCH] kbuild: rpm-pkg: ghost modules.weakdep file Jose Ignacio Tornos Martinez
@ 2024-07-28  8:08 ` Masahiro Yamada
  0 siblings, 0 replies; 2+ messages in thread
From: Masahiro Yamada @ 2024-07-28  8:08 UTC (permalink / raw)
  To: Jose Ignacio Tornos Martinez; +Cc: nathan, nicolas, linux-kbuild, linux-kernel

On Fri, Jul 26, 2024 at 6:00 PM Jose Ignacio Tornos Martinez
<jtornosm@redhat.com> wrote:
>
> 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>
> ---


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!


>  scripts/package/kernel.spec | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/scripts/package/kernel.spec b/scripts/package/kernel.spec
> index 74355ff0e106..d558d39c01b6 100644
> --- a/scripts/package/kernel.spec
> +++ b/scripts/package/kernel.spec
> @@ -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
>
>


-- 
Best Regards
Masahiro Yamada

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-07-28  8:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-26  9:00 [PATCH] kbuild: rpm-pkg: ghost modules.weakdep file Jose Ignacio Tornos Martinez
2024-07-28  8:08 ` Masahiro Yamada

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox