All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Yann E. MORIN" <yann.morin.1998@free.fr>
To: Jarkko Sakkinen <jarkko@kernel.org>
Cc: Stefan Berger <stefanb@linux.ibm.com>, buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH v2 1/3] package/json-glib: add host build
Date: Fri, 17 May 2024 20:35:38 +0200	[thread overview]
Message-ID: <ZkejevC_Jkanjo06@landeda> (raw)
In-Reply-To: <20240517173140.24531-2-jarkko@kernel.org>

Jarkko, All,

On 2024-05-17 20:31 +0300, Jarkko Sakkinen spake thusly:
> Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
> ---
> v2:
> - Disable GOI and NLS for the host.

I think your forgot the GOI part [0]...

> - Add the missing host config.

Err, I was probably not explicit enough in my previous review: there is
no need for a Kconfig option for host packages, when they only provide a
library.

Also see below...

> ---
>  package/json-glib/Config.in    | 9 +++++++++
>  package/json-glib/json-glib.mk | 5 +++++
>  2 files changed, 14 insertions(+)
> 
> diff --git a/package/json-glib/Config.in b/package/json-glib/Config.in
> index 9df03d924a..ebf697bc64 100644
> --- a/package/json-glib/Config.in
> +++ b/package/json-glib/Config.in
> @@ -11,6 +11,15 @@ config BR2_PACKAGE_JSON_GLIB
> 
>  	  https://live.gnome.org/JsonGlib/
> 
> +config BR2_HOST_PACKAGE_JSON_GLIB

The actual Kconfig symbol should be BR2_PACKAGE_HOST_JSON_GLIB (note the
inversion between PACKAGE and HOST). You can catch such mis-naming by
running the basic sanity checks:

    $ ./utils/docker-run make check-package
    package/json-glib/Config.in:14: BR2_HOST_PACKAGE_JSON_GLIB defined but not referenced

Also, Kconfig entries for host packages should be in a separate
Config.in.host.

But in this case, there is no need for a Kconfig symbol, because
json-glib only provides a library, so you only need the changes in
json-glib.mk.

> +	bool "json-glib"
> +	help
> +	  JSON-GLib is a library providing serialization and
> +	  deserialization support for the JavaScript Object Notation
> +	  (JSON) format described by RFC 4627.
> +
> +	  https://live.gnome.org/JsonGlib/
> +
>  comment "json-glib needs a toolchain w/ wchar, threads"
>  	depends on BR2_USE_MMU
>  	depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS
> diff --git a/package/json-glib/json-glib.mk b/package/json-glib/json-glib.mk
> index cd53f24cee..a6bc53b823 100644
> --- a/package/json-glib/json-glib.mk
> +++ b/package/json-glib/json-glib.mk
> @@ -18,6 +18,10 @@ JSON_GLIB_DEPENDENCIES = \
>  	host-pkgconf \
>  	libglib2
> 
> +HOST_JSON_GLIB_DEPENDENCIES = \
> +	host-pkgconf \
> +	host-libglib2

...[0] I think you forgot:

    HOST_JSON_GLIB_CONF_OPTS = -Dintrospection=diabled

Regards,
Yann E. MORIN.

>  ifeq ($(BR2_PACKAGE_GOBJECT_INTROSPECTION),y)
>  JSON_GLIB_CONF_OPTS += -Dintrospection=enabled
>  JSON_GLIB_DEPENDENCIES += gobject-introspection
> @@ -34,3 +38,4 @@ endif
>  JSON_GLIB_LDFLAGS = $(TARGET_LDFLAGS) $(TARGET_NLS_LIBS)
> 
>  $(eval $(meson-package))
> +$(eval $(host-meson-package))
> --
> 2.45.0
> 
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

  reply	other threads:[~2024-05-17 18:35 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-17 17:31 [Buildroot] [PATCH v2 0/3] swtpm and libtpms host packages Jarkko Sakkinen
2024-05-17 17:31 ` [Buildroot] [PATCH v2 1/3] package/json-glib: add host build Jarkko Sakkinen
2024-05-17 18:35   ` Yann E. MORIN [this message]
2024-05-17 17:31 ` [Buildroot] [PATCH v2 2/3] package/libtpms: add host package Jarkko Sakkinen
2024-05-17 18:44   ` Yann E. MORIN
2024-05-17 17:31 ` [Buildroot] [PATCH v2 3/3] package/swtpm: " Jarkko Sakkinen
2024-05-17 19:23   ` Yann E. MORIN

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ZkejevC_Jkanjo06@landeda \
    --to=yann.morin.1998@free.fr \
    --cc=buildroot@buildroot.org \
    --cc=jarkko@kernel.org \
    --cc=stefanb@linux.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.