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

3 messages from 2025-01-13 to 2025-01-13. Participants: Alex Xu (Hello71), Kristoffer Haugsbakk, Patrick Steinhardt.
Thread: https://gitlist.dev/t/62797

## Alex Xu (Hello71), 2025-01-13 13:46

Subject: [PATCH] meson: move config-list from libgit to builtin
Message-ID: <20250113134632.21592-1-alex_y_xu@yahoo.ca>
URL: https://gitlist.dev/e/20250113134632.21592-1-alex_y_xu%40yahoo.ca
In-Reply-To: <20250113134632.21592-1-alex_y_xu.ref@yahoo.ca>

```
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(
   output: 'config-list.h',
   command: [
     shell,
-- 
2.47.1


```

## Kristoffer Haugsbakk, 2025-01-13 14:17

Subject: Re: [PATCH] meson: move config-list from libgit to builtin
Message-ID: <efb8b6d1-c06a-4f73-89bb-6d164ab03cfa@app.fastmail.com>
URL: https://gitlist.dev/e/efb8b6d1-c06a-4f73-89bb-6d164ab03cfa%40app.fastmail.com
In-Reply-To: <20250113134632.21592-1-alex_y_xu@yahoo.ca>

```
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/

-- 
Kristoffer Haugsbakk


```

## Patrick Steinhardt, 2025-01-13 15:42

Subject: Re: [PATCH] meson: move config-list from libgit to builtin
Message-ID: <Z4U0XengqX_a7ywU@pks.im>
URL: https://gitlist.dev/e/Z4U0XengqX_a7ywU%40pks.im
In-Reply-To: <efb8b6d1-c06a-4f73-89bb-6d164ab03cfa@app.fastmail.com>

```
On Mon, Jan 13, 2025 at 03:17:08PM +0100, Kristoffer Haugsbakk wrote:
> 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

```
