threads / patch / 62797

patchmeson: move config-list from libgit to builtin

Subject: [PATCH] meson: move config-list from libgit to builtin

## tl;dr

3 messages between Jan 13, 2025 and Jan 13, 2025. Diffs are folded; open one to read it.

replies: 2people: 3as markdown or json

Alex Xu (Hello71)· Jan 13, 2025, 13:46 UTC · lore

config-list is used by builtin/help.c, not libgit. this matches Makefile dependencies

Signed-off-by: Alex Xu (Hello71) <alex_y_xu@yahoo.ca>
---
 meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Show changes to meson.build +1 −1
diff --git a/meson.build b/meson.build
index 0064eb64f5..ef3604a17f 100644
--- a/meson.build
+++ b/meson.build
@@ -614,7 +614,7 @@ libgit_sources += custom_target(
   env: script_environment,
 )
 
-libgit_sources += custom_target(
+builtin_sources += custom_target(
   output: 'config-list.h',
   command: [
     shell,
-- 
2.47.1
Kristoffer Haugsbakk· Jan 13, 2025, 14:17 UTC · re: Alex Xu (Hello71) · lore

Re: [PATCH] meson: move config-list from libgit to builtin

On Mon, Jan 13, 2025, at 14:46, Alex Xu (Hello71) wrote:
Show 18 quoted lines
> config-list is used by builtin/help.c, not libgit. this matches Makefile
> dependencies
>
> Signed-off-by: Alex Xu (Hello71) <alex_y_xu@yahoo.ca>
> ---
>  meson.build | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meson.build b/meson.build
> index 0064eb64f5..ef3604a17f 100644
> --- a/meson.build
> +++ b/meson.build
> @@ -614,7 +614,7 @@ libgit_sources += custom_target(
>    env: script_environment,
>  )
> 
> -libgit_sources += custom_target(
> +builtin_sources += custom_target(
Looks like the same change is in another patch from today
https://lore.kernel.org/git/20250113-b4-pks-meson-additions-v1-3-97f6a93f691d@pks.im/
-- 
Kristoffer Haugsbakk
Patrick Steinhardt· Jan 13, 2025, 15:42 UTC · re: Kristoffer Haugsbakk · lore

Re: [PATCH] meson: move config-list from libgit to builtin

On Mon, Jan 13, 2025 at 03:17:08PM +0100, Kristoffer Haugsbakk wrote:
Show 23 quoted lines
> On Mon, Jan 13, 2025, at 14:46, Alex Xu (Hello71) wrote:
> > config-list is used by builtin/help.c, not libgit. this matches Makefile
> > dependencies
> >
> > Signed-off-by: Alex Xu (Hello71) <alex_y_xu@yahoo.ca>
> > ---
> >  meson.build | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/meson.build b/meson.build
> > index 0064eb64f5..ef3604a17f 100644
> > --- a/meson.build
> > +++ b/meson.build
> > @@ -614,7 +614,7 @@ libgit_sources += custom_target(
> >    env: script_environment,
> >  )
> > 
> > -libgit_sources += custom_target(
> > +builtin_sources += custom_target(
> 
> Looks like the same change is in another patch from today
> 
> https://lore.kernel.org/git/20250113-b4-pks-meson-additions-v1-3-97f6a93f691d@pks.im/

Yup, indeed :) I'd prefer to go with my series as it also contains a couple more additions, and because it also fixes the same issue for "hook-list.h".

Thanks for your contribution!
Patrick

← back to recent threads