* [Buildroot] [PATCH 1/1] package/libcgroup: needs threads
@ 2024-01-02 21:07 Fabrice Fontaine
2024-01-02 22:20 ` Thomas Petazzoni via buildroot
2024-01-12 17:18 ` Peter Korsgaard
0 siblings, 2 replies; 3+ messages in thread
From: Fabrice Fontaine @ 2024-01-02 21:07 UTC (permalink / raw)
To: buildroot; +Cc: Fabrice Fontaine
threads are mandatory since the addition of the package in commit and
https://github.com/libcgroup/libcgroup/commit/99ccdf671e9df5b13f646e1487393d562aa7fa62
resulting in the following build failure since commit
9d58b525fcfd0d92fcdd3c66d7858213c4b139c6 which enables build on uclibc
and musl:
In file included from config.c:30:
./libcgroup-internal.h:29:10: fatal error: pthread.h: No such file or directory
29 | #include <pthread.h>
| ^~~~~~~~~~~
Fixes:
- http://autobuild.buildroot.org/results/87c4454aee97b6955f461651c41c4186a8838c4d
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
package/libcgroup/Config.in | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/package/libcgroup/Config.in b/package/libcgroup/Config.in
index b9333be2a2..4f9ec074b4 100644
--- a/package/libcgroup/Config.in
+++ b/package/libcgroup/Config.in
@@ -1,6 +1,7 @@
config BR2_PACKAGE_LIBCGROUP
bool "libcgroup"
depends on BR2_INSTALL_LIBSTDCPP
+ depends on BR2_TOOLCHAIN_HAS_THREADS
select BR2_PACKAGE_MUSL_FTS if !BR2_TOOLCHAIN_USES_GLIBC
help
libcgroup is a library that abstracts the control
@@ -17,5 +18,5 @@ config BR2_PACKAGE_LIBCGROUP_TOOLS
endif
-comment "libcgroup needs a toolchain w/ C++"
- depends on !BR2_INSTALL_LIBSTDCPP
+comment "libcgroup needs a toolchain w/ C++, threads"
+ depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS
--
2.43.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [Buildroot] [PATCH 1/1] package/libcgroup: needs threads
2024-01-02 21:07 [Buildroot] [PATCH 1/1] package/libcgroup: needs threads Fabrice Fontaine
@ 2024-01-02 22:20 ` Thomas Petazzoni via buildroot
2024-01-12 17:18 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni via buildroot @ 2024-01-02 22:20 UTC (permalink / raw)
To: Fabrice Fontaine; +Cc: buildroot
On Tue, 2 Jan 2024 22:07:51 +0100
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:
> threads are mandatory since the addition of the package in commit and
> https://github.com/libcgroup/libcgroup/commit/99ccdf671e9df5b13f646e1487393d562aa7fa62
> resulting in the following build failure since commit
> 9d58b525fcfd0d92fcdd3c66d7858213c4b139c6 which enables build on uclibc
> and musl:
>
> In file included from config.c:30:
> ./libcgroup-internal.h:29:10: fatal error: pthread.h: No such file or directory
> 29 | #include <pthread.h>
> | ^~~~~~~~~~~
>
> Fixes:
> - http://autobuild.buildroot.org/results/87c4454aee97b6955f461651c41c4186a8838c4d
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
> package/libcgroup/Config.in | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/libcgroup: needs threads
2024-01-02 21:07 [Buildroot] [PATCH 1/1] package/libcgroup: needs threads Fabrice Fontaine
2024-01-02 22:20 ` Thomas Petazzoni via buildroot
@ 2024-01-12 17:18 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2024-01-12 17:18 UTC (permalink / raw)
To: Fabrice Fontaine; +Cc: buildroot
>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:
> threads are mandatory since the addition of the package in commit and
> https://github.com/libcgroup/libcgroup/commit/99ccdf671e9df5b13f646e1487393d562aa7fa62
> resulting in the following build failure since commit
> 9d58b525fcfd0d92fcdd3c66d7858213c4b139c6 which enables build on uclibc
> and musl:
> In file included from config.c:30:
> ./libcgroup-internal.h:29:10: fatal error: pthread.h: No such file or directory
> 29 | #include <pthread.h>
> | ^~~~~~~~~~~
> Fixes:
> - http://autobuild.buildroot.org/results/87c4454aee97b6955f461651c41c4186a8838c4d
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Committed to 2023.11.x, thanks.
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-01-12 17:18 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-02 21:07 [Buildroot] [PATCH 1/1] package/libcgroup: needs threads Fabrice Fontaine
2024-01-02 22:20 ` Thomas Petazzoni via buildroot
2024-01-12 17:18 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox