From: Thomas Petazzoni via buildroot <buildroot@buildroot.org>
To: Maxime Leroy <maxime@leroys.fr>
Cc: buildroot@buildroot.org, Vincent Jardin <vjardin@free.fr>,
Robin Jarry <robin@jarry.cc>, Julien Olivain <ju.o@free.fr>
Subject: Re: [Buildroot] [PATCH v4 2/3] package/grout: new package
Date: Thu, 24 Apr 2025 23:51:46 +0200 [thread overview]
Message-ID: <20250424235146.4ab41fce@windsurf> (raw)
In-Reply-To: <20250403153950.6407-3-maxime@leroys.fr>
Hello Maxime,
Thanks for your patch! I have applied it, after doing a number of
changes, see below.
On Thu, 3 Apr 2025 17:39:49 +0200
Maxime Leroy <maxime@leroys.fr> wrote:
> diff --git a/DEVELOPERS b/DEVELOPERS
> index 1c84f95943..1cbbf829c5 100644
> --- a/DEVELOPERS
> +++ b/DEVELOPERS
> @@ -2384,6 +2384,9 @@ F: package/libtraceevent/
> F: package/libtracefs
> F: package/linux-tools/linux-tool-rtla.mk.in
>
> +N: Maxime Leroy <maxime@leroys.fr>
> +F: package/grout
^^ Nit: missing final slash.
> diff --git a/package/grout/Config.in b/package/grout/Config.in
> new file mode 100644
> index 0000000000..a39c3283eb
> --- /dev/null
> +++ b/package/grout/Config.in
> @@ -0,0 +1,13 @@
> +config BR2_PACKAGE_GROUT
> + bool "grout"
> + depends on BR2_ENABLE_LOCALE
I really wasn't sure about this dependency, because that doesn't
guarantee you that a UTF-8 locale is present, only that the toolchain
has locale support, which is different. So I dropped this dependency.
However, you had forgotten to replicate the dependencies of the options
you select, so I had to add:
+ depends on BR2_PACKAGE_DPDK_ARCH_SUPPORTS # dpdk
+ depends on BR2_TOOLCHAIN_HAS_THREADS # dpdk
+ depends on BR2_USE_MMU # dpdk, numactl, libecoli, util-linux-smartcols, libcap
+ depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # dpdk
+ depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_19 # dpdk
+ depends on BR2_TOOLCHAIN_USES_GLIBC # dpdk
+ depends on BR2_TOOLCHAIN_HAS_ATOMIC # numactl
+ depends on !BR2_STATIC_LIBS # libecoli
+ depends on BR2_USE_WCHAR # libecoli
> + select BR2_PACKAGE_DPDK
> + select BR2_PACKAGE_LIBEVENT
> + select BR2_PACKAGE_NUMACTL
> + select BR2_PACKAGE_LIBECOLI
> + select BR2_PACKAGE_UTIL_LINUX
> + select BR2_PACKAGE_UTIL_LINUX_LIBSMARTCOLS
libcap was missing here, it is required by grout, so I added:
+ select BR2_PACKAGE_LIBCAP
(at the proper location to preserve alphabetic ordering)
> + help
> + Graph router based on DPDK
> +
> + NOTE: grout needs a working UTF-8 locale (BR2_GENERATE_LOCALE)
The Config.in comment about the dependencies was missing, so I added
this:
+comment "grout needs a glibc toolchain w/ dynamic library, threads, wchar, gcc >= 4.9, headers >= 4.19"
+ depends on BR2_USE_MMU
+ depends on BR2_PACKAGE_DPDK_ARCH_SUPPORTS
+ depends on BR2_TOOLCHAIN_HAS_ATOMIC
+ depends on !BR2_TOOLCHAIN_HAS_THREADS || \
+ !BR2_TOOLCHAIN_USES_GLIBC || \
+ !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 || \
+ !BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_19
> diff --git a/package/grout/grout.mk b/package/grout/grout.mk
> new file mode 100644
> index 0000000000..a75af27978
> --- /dev/null
> +++ b/package/grout/grout.mk
> @@ -0,0 +1,24 @@
> +################################################################################
> +#
> +# grout
> +#
> +################################################################################
> +
> +GROUT_VERSION = 0.9.0
Since 0.9.1 was out, I used this one instead.
> +GROUT_SITE = https://github.com/DPDK/grout/archive/refs/tags
> +GROUT_SOURCE = v$(GROUT_VERSION).tar.gz
I used the github macro instead, because you're anyway using the
auto-generated tarball:
+GROUT_SITE = $(call github,DPDK,grout,v$(GROUT_VERSION))
> +GROUT_LICENSE = BSD-3-Clause
> +GROUT_LICENSE_FILES = LICENSE
> +
> +# Avoid using buildroot commit hash
> +GROUT_CONF_ENV += GROUT_VERSION=$(GROUT_VERSION)
> +
> +GROUT_DEPENDENCIES = \
> + host-pkgconf \
> + dpdk \
I added libcap here.
> + libevent \
> + numactl \
> + libecoli \
> + util-linux
> +
> +$(eval $(meson-package))
Applied with all those changes, thanks!
Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2025-04-24 21:51 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-26 11:16 [Buildroot] [PATCH 1/2] package/libecoli: bump version to 0.5.0 Maxime Leroy
2025-03-26 11:16 ` [Buildroot] [PATCH 2/2] package/grout: new package Maxime Leroy
2025-03-26 11:26 ` Vincent Jardin
2025-03-26 12:24 ` Maxime Leroy
2025-03-26 11:21 ` [Buildroot] [PATCH 1/2] package/libecoli: bump version to 0.5.0 Vincent Jardin
2025-03-26 13:26 ` [Buildroot] [PATCH v2 0/2] Add grout package Maxime Leroy
2025-03-26 13:26 ` [Buildroot] [PATCH v2 1/2] package/libecoli: bump version to 0.5.0 Maxime Leroy
2025-03-27 0:23 ` Vincent Jardin
2025-03-26 13:26 ` [Buildroot] [PATCH v2 2/2] package/grout: new package Maxime Leroy
2025-03-27 0:29 ` Vincent Jardin
2025-03-28 8:47 ` [Buildroot] [PATCH v3 0/3] Add grout package Maxime Leroy
2025-03-28 8:47 ` [Buildroot] [PATCH v3 1/3] package/libecoli: bump version to 0.5.0 Maxime Leroy
2025-03-28 8:47 ` [Buildroot] [PATCH v3 2/3] package/grout: new package Maxime Leroy
2025-03-28 8:47 ` [Buildroot] [PATCH v3 3/3] RFC: support/testing: add grout runtime test Maxime Leroy
2025-04-03 15:39 ` [Buildroot] [PATCH v4 0/3] Add grout package Maxime Leroy
2025-04-03 15:39 ` [Buildroot] [PATCH v4 1/3] package/libecoli: bump version to 0.5.0 Maxime Leroy
2025-04-24 21:48 ` Thomas Petazzoni via buildroot
2025-04-03 15:39 ` [Buildroot] [PATCH v4 2/3] package/grout: new package Maxime Leroy
2025-04-24 21:51 ` Thomas Petazzoni via buildroot [this message]
2025-04-25 8:19 ` Maxime Leroy
2025-04-25 9:06 ` Thomas Petazzoni via buildroot
2025-04-25 9:17 ` Thomas Petazzoni via buildroot
2025-04-03 15:39 ` [Buildroot] [PATCH v4 3/3] RFC: support/testing: add grout runtime test Maxime Leroy
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=20250424235146.4ab41fce@windsurf \
--to=buildroot@buildroot.org \
--cc=ju.o@free.fr \
--cc=maxime@leroys.fr \
--cc=robin@jarry.cc \
--cc=thomas.petazzoni@bootlin.com \
--cc=vjardin@free.fr \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox