All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/4] package/util-linux: Remove -lpthread from uuid.pc for non-threaded builds
@ 2025-12-20 17:06 Bernd Kuhls
  2025-12-20 17:06 ` [Buildroot] [PATCH 2/4] package/util-linux: fix nommu build Bernd Kuhls
                   ` (4 more replies)
  0 siblings, 5 replies; 13+ messages in thread
From: Bernd Kuhls @ 2025-12-20 17:06 UTC (permalink / raw)
  To: buildroot

Buildroot commit 31af509b4f4fe52f67bd9109b8732a55b8f9cd2d bumped
util-linux from version 2.40.2 to 2.41.1.

Upstream release 2.40.3 contains
https://github.com/util-linux/util-linux/commit/e143539d30fd18afb3ba6d3c6e50a260d4219895
which unconditionally adds -lpthread to uuid.pc causing build errors for
other packages using non-threaded toolchains like erofs-utils.

Upstream was notified:
https://github.com/util-linux/util-linux/issues/3210#issuecomment-3477915953

Fixes:
https://autobuild.buildroot.net/results/582/5827995db2a805e0c8a04fde8498eff6f28aa6d8/

Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
 package/util-linux/util-linux.mk | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/package/util-linux/util-linux.mk b/package/util-linux/util-linux.mk
index 16d086f333..8c98d80adf 100644
--- a/package/util-linux/util-linux.mk
+++ b/package/util-linux/util-linux.mk
@@ -37,6 +37,13 @@ UTIL_LINUX_LICENSE_FILES = README.licensing \
 
 UTIL_LINUX_CPE_ID_VENDOR = kernel
 
+define UTIL_LINUX_POST_EXTRACT_FIXUP
+	$(SED) 's/-lpthread//' $(@D)/libuuid/uuid.pc.in
+endef
+ifneq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
+UTIL_LINUX_POST_EXTRACT_HOOKS += UTIL_LINUX_POST_EXTRACT_FIXUP
+endif
+
 UTIL_LINUX_INSTALL_STAGING = YES
 UTIL_LINUX_DEPENDENCIES = \
 	host-pkgconf \
-- 
2.47.3

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2026-01-28 17:24 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-20 17:06 [Buildroot] [PATCH 1/4] package/util-linux: Remove -lpthread from uuid.pc for non-threaded builds Bernd Kuhls
2025-12-20 17:06 ` [Buildroot] [PATCH 2/4] package/util-linux: fix nommu build Bernd Kuhls
2025-12-30 16:20   ` Giulio Benetti
2026-01-16 21:35   ` Thomas Petazzoni via buildroot
2025-12-20 17:06 ` [Buildroot] [PATCH 3/4] package/util-linux: add dependency to BR2_USE_MMU when needed Bernd Kuhls
2025-12-30 16:21   ` Giulio Benetti
2026-01-16 21:58   ` Thomas Petazzoni via buildroot
2026-01-28 17:24   ` Arnout Vandecappelle via buildroot
2025-12-20 17:06 ` [Buildroot] [PATCH 4/4] package/util-linux: bump version to 2.41.3 Bernd Kuhls
2025-12-30 16:32   ` Giulio Benetti
2026-01-16 21:58   ` Thomas Petazzoni via buildroot
2025-12-30 16:19 ` [Buildroot] [PATCH 1/4] package/util-linux: Remove -lpthread from uuid.pc for non-threaded builds Giulio Benetti
2026-01-16 21:32 ` Thomas Petazzoni via buildroot

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.