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

* [Buildroot] [PATCH 2/4] package/util-linux: fix nommu build
  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 ` 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
                   ` (3 subsequent siblings)
  4 siblings, 2 replies; 13+ messages in thread
From: Bernd Kuhls @ 2025-12-20 17:06 UTC (permalink / raw)
  To: buildroot

libuuid/src/gen_uuid.c: In function 'uuid_generate_time_generic':
libuuid/src/gen_uuid.c:629:17: error: implicit declaration of function 'pthread_atfork';
 did you mean 'pthread_join'? [-Wimplicit-function-declaration]
  629 |                 pthread_atfork(NULL, NULL, reset_uuidd_cache);

Fixes:
https://autobuild.buildroot.net/results/c3d/c3d098dd485bf52b3599e03d22da7b2cd7fb053a/

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

diff --git a/package/util-linux/util-linux.mk b/package/util-linux/util-linux.mk
index 8c98d80adf..40d948ec97 100644
--- a/package/util-linux/util-linux.mk
+++ b/package/util-linux/util-linux.mk
@@ -58,6 +58,11 @@ UTIL_LINUX_CONF_OPTS += \
 	--disable-makeinstall-chown \
 	--disable-year2038
 
+# pthread support uses pthread_atfork, which is not available on nommu
+ifneq ($(BR2_USE_MMU),y)
+UTIL_LINUX_CONF_ENV += ac_cv_lib_pthread_pthread_atfork=no
+endif
+
 UTIL_LINUX_LINK_LIBS = $(TARGET_NLS_LIBS)
 
 HOST_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

* [Buildroot] [PATCH 3/4] package/util-linux: add dependency to BR2_USE_MMU when needed
  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-20 17:06 ` Bernd Kuhls
  2025-12-30 16:21   ` Giulio Benetti
                     ` (2 more replies)
  2025-12-20 17:06 ` [Buildroot] [PATCH 4/4] package/util-linux: bump version to 2.41.3 Bernd Kuhls
                   ` (2 subsequent siblings)
  4 siblings, 3 replies; 13+ messages in thread
From: Bernd Kuhls @ 2025-12-20 17:06 UTC (permalink / raw)
  To: buildroot

Upstream added fork() to lib/canonicalize.c in version 2.34[1]
https://github.com/util-linux/util-linux/commit/e101a9eb0fab6725e0a239a92f9b50822c494a3e

but the resulting build errors on non-mmu archs were most likely masked
by previous build errors which are already fixed.

lib/canonicalize.c as part of libcommon is widely used so we need to add
the dependency to many Config.in options.

For an overview about its usage see
output/build/util-linux-2.41.2$ grep -r "LDADD = \$(LDADD) libcommon.la" * | grep Makemodule | cut -d ":" -f 2 | sort

Fixes:
https://autobuild.buildroot.net/results/34b/34b1f733fdfb5c5e30e631576f875398435ad115/

[1] Added to buildroot with commit bb216ed060b16e09b2027ef242347b2f2e3c97dc
    in 2019.

Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
 package/linux-tools/Config.in |  2 +-
 package/util-linux/Config.in  | 24 ++++++++++++++++++++++++
 2 files changed, 25 insertions(+), 1 deletion(-)

diff --git a/package/linux-tools/Config.in b/package/linux-tools/Config.in
index 5a38f6dafe..20131b0d9f 100644
--- a/package/linux-tools/Config.in
+++ b/package/linux-tools/Config.in
@@ -150,7 +150,7 @@ comment "rtla needs a toolchain w/ threads, dynamic library"
 config BR2_PACKAGE_LINUX_TOOLS_SELFTESTS
 	bool"selftests"
 	depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS # bash
-	depends on BR2_USE_MMU  # bash
+	depends on BR2_USE_MMU  # bash, util-linux-schedutils
 	depends on !BR2_STATIC_LIBS
 	depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_14 # util-linux schedutils
 	select BR2_PACKAGE_LINUX_TOOLS
diff --git a/package/util-linux/Config.in b/package/util-linux/Config.in
index a168abe720..dfebaa0947 100644
--- a/package/util-linux/Config.in
+++ b/package/util-linux/Config.in
@@ -75,11 +75,13 @@ config BR2_PACKAGE_UTIL_LINUX_AGETTY
 
 config BR2_PACKAGE_UTIL_LINUX_BFS
 	bool "bfs"
+	depends on BR2_USE_MMU # fork()
 	help
 	  SCO bfs filesystem support
 
 config BR2_PACKAGE_UTIL_LINUX_CAL
 	bool "cal"
+	depends on BR2_USE_MMU # fork()
 	help
 	  Display a calendar, or some part of it
 
@@ -100,11 +102,13 @@ comment "chfn/chsh needs a toolchain w/ wchar, locale, dynamic library, gcc >= 4
 
 config BR2_PACKAGE_UTIL_LINUX_CHMEM
 	bool "chmem"
+	depends on BR2_USE_MMU # fork()
 	help
 	  Sets a particular size or range of memory online or offline
 
 config BR2_PACKAGE_UTIL_LINUX_CRAMFS
 	bool "cramfs utilities"
+	depends on BR2_USE_MMU # fork()
 	select BR2_PACKAGE_ZLIB
 	help
 	  Utilities for compressed ROM file system (fsck.cramfs,
@@ -121,11 +125,13 @@ config BR2_PACKAGE_UTIL_LINUX_EJECT
 
 config BR2_PACKAGE_UTIL_LINUX_FALLOCATE
 	bool "fallocate"
+	depends on BR2_USE_MMU # fork()
 	help
 	  Preallocate space to a file
 
 config BR2_PACKAGE_UTIL_LINUX_FDFORMAT
 	bool "fdformat"
+	depends on BR2_USE_MMU # fork()
 	help
 	  Low-level format a floppy disk
 
@@ -140,26 +146,31 @@ config BR2_PACKAGE_UTIL_LINUX_FSCK
 
 config BR2_PACKAGE_UTIL_LINUX_HARDLINK
 	bool "hardlink"
+	depends on BR2_USE_MMU # fork()
 	help
 	  Consolidate duplicate files via hardlinks
 
 config BR2_PACKAGE_UTIL_LINUX_HWCLOCK
 	bool "hwclock"
+	depends on BR2_USE_MMU # fork()
 	help
 	  Query or set the hardware clock (RTC)
 
 config BR2_PACKAGE_UTIL_LINUX_IPCMK
 	bool "ipcmk"
+	depends on BR2_USE_MMU # fork()
 	help
 	  Make various IPC resources
 
 config BR2_PACKAGE_UTIL_LINUX_IPCRM
 	bool "ipcrm"
+	depends on BR2_USE_MMU # fork()
 	help
 	  Remove certain IPC resources
 
 config BR2_PACKAGE_UTIL_LINUX_IPCS
 	bool "ipcs"
+	depends on BR2_USE_MMU # fork()
 	help
 	  Show information on IPC facilities
 
@@ -173,11 +184,13 @@ config BR2_PACKAGE_UTIL_LINUX_IRQTOP
 
 config BR2_PACKAGE_UTIL_LINUX_KILL
 	bool "kill"
+	depends on BR2_USE_MMU # fork()
 	help
 	  Send a signal to a process
 
 config BR2_PACKAGE_UTIL_LINUX_LAST
 	bool "last"
+	depends on BR2_USE_MMU # fork()
 	help
 	  Show a listing of last logged in users
 
@@ -188,6 +201,7 @@ config BR2_PACKAGE_UTIL_LINUX_LINE
 
 config BR2_PACKAGE_UTIL_LINUX_LOGGER
 	bool "logger"
+	depends on BR2_USE_MMU # fork()
 	help
 	  Enter messages into the system log
 
@@ -246,6 +260,7 @@ config BR2_PACKAGE_UTIL_LINUX_LSMEM
 
 config BR2_PACKAGE_UTIL_LINUX_MESG
 	bool "mesg"
+	depends on BR2_USE_MMU # fork()
 	help
 	  Control write access to your terminal
 
@@ -288,6 +303,7 @@ config BR2_PACKAGE_UTIL_LINUX_NEWGRP
 
 config BR2_PACKAGE_UTIL_LINUX_NOLOGIN
 	bool "nologin"
+	depends on BR2_USE_MMU # fork()
 	help
 	  Politely refuse a login
 
@@ -333,6 +349,7 @@ comment "raw needs a toolchain w/ headers < 5.14"
 
 config BR2_PACKAGE_UTIL_LINUX_RENAME
 	bool "rename"
+	depends on BR2_USE_MMU # fork()
 	help
 	  Rename files
 
@@ -366,21 +383,25 @@ comment "runuser needs a uClibc or glibc toolchain w/ wchar, locale, dynamic lib
 
 config BR2_PACKAGE_UTIL_LINUX_SCHEDUTILS
 	bool "scheduling utilities"
+	depends on BR2_USE_MMU # fork()
 	depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_14
 	help
 	  Scheduling utilities (chrt, ionice, taskset, uclampset)
 
 comment "scheduling utilities need a toolchain w/ headers >= 3.14"
+	depends on BR2_USE_MMU # fork()
 	depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_14
 
 config BR2_PACKAGE_UTIL_LINUX_SETPRIV
 	bool "setpriv"
+	depends on BR2_USE_MMU # fork()
 	select BR2_PACKAGE_LIBCAP_NG
 	help
 	  Run a program with different Linux privilege settings
 
 config BR2_PACKAGE_UTIL_LINUX_SETTERM
 	bool "setterm"
+	depends on BR2_USE_MMU # fork()
 	select BR2_PACKAGE_NCURSES
 	help
 	  Set terminal attributes
@@ -417,6 +438,7 @@ config BR2_PACKAGE_UTIL_LINUX_SWITCH_ROOT
 
 config BR2_PACKAGE_UTIL_LINUX_TUNELP
 	bool "tunelp"
+	depends on BR2_USE_MMU # fork()
 	select BR2_PACKAGE_NCURSES
 	help
 	  Set various parameters for the lp device
@@ -435,6 +457,7 @@ config BR2_PACKAGE_UTIL_LINUX_UNSHARE
 
 config BR2_PACKAGE_UTIL_LINUX_UTMPDUMP
 	bool "utmpdump"
+	depends on BR2_USE_MMU # fork()
 	help
 	  Dump UTMP and WTMP files in raw format
 
@@ -489,6 +512,7 @@ config BR2_PACKAGE_UTIL_LINUX_WDCTL
 
 config BR2_PACKAGE_UTIL_LINUX_WRITE
 	bool "write"
+	depends on BR2_USE_MMU # fork()
 	help
 	  Send a message to another user
 
-- 
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

* [Buildroot] [PATCH 4/4] package/util-linux: bump version to 2.41.3
  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-20 17:06 ` [Buildroot] [PATCH 3/4] package/util-linux: add dependency to BR2_USE_MMU when needed Bernd Kuhls
@ 2025-12-20 17:06 ` 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
  4 siblings, 2 replies; 13+ messages in thread
From: Bernd Kuhls @ 2025-12-20 17:06 UTC (permalink / raw)
  To: buildroot

Release notes:
https://www.kernel.org/pub/linux/utils/util-linux/v2.41/v2.41.3-ReleaseNotes

Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
 package/util-linux/util-linux.hash | 2 +-
 package/util-linux/util-linux.mk   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/package/util-linux/util-linux.hash b/package/util-linux/util-linux.hash
index af850c03d6..eab8a0c3b5 100644
--- a/package/util-linux/util-linux.hash
+++ b/package/util-linux/util-linux.hash
@@ -1,5 +1,5 @@
 # From https://mirrors.edge.kernel.org/pub/linux/utils/util-linux/v2.41/sha256sums.asc
-sha256  6062a1d89b571a61932e6fc0211f36060c4183568b81ee866cf363bce9f6583e  util-linux-2.41.2.tar.xz
+sha256  3330d873f0fceb5560b89a7dc14e4f3288bbd880e96903ed9b50ec2b5799e58b  util-linux-2.41.3.tar.xz
 # License files, locally calculated
 sha256  4c2db318192bda62f3f8fcf71488bb5e602ae4385eba281d711b46cc13a40bb3  README.licensing
 sha256  527f738966ca396cd5a68c1509390de2a780c6b614d9ee57f7544a6161938ed1  Documentation/licenses/COPYING.BSD-2-Clause
diff --git a/package/util-linux/util-linux.mk b/package/util-linux/util-linux.mk
index 40d948ec97..14389254cb 100644
--- a/package/util-linux/util-linux.mk
+++ b/package/util-linux/util-linux.mk
@@ -8,7 +8,7 @@
 # util-linux-libs/util-linux-libs.mk needs to be updated accordingly as well.
 
 UTIL_LINUX_VERSION_MAJOR = 2.41
-UTIL_LINUX_VERSION = $(UTIL_LINUX_VERSION_MAJOR).2
+UTIL_LINUX_VERSION = $(UTIL_LINUX_VERSION_MAJOR).3
 UTIL_LINUX_SOURCE = util-linux-$(UTIL_LINUX_VERSION).tar.xz
 UTIL_LINUX_SITE = $(BR2_KERNEL_MIRROR)/linux/utils/util-linux/v$(UTIL_LINUX_VERSION_MAJOR)
 
-- 
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

* Re: [Buildroot] [PATCH 1/4] package/util-linux: Remove -lpthread from uuid.pc for non-threaded builds
  2025-12-20 17:06 [Buildroot] [PATCH 1/4] package/util-linux: Remove -lpthread from uuid.pc for non-threaded builds Bernd Kuhls
                   ` (2 preceding siblings ...)
  2025-12-20 17:06 ` [Buildroot] [PATCH 4/4] package/util-linux: bump version to 2.41.3 Bernd Kuhls
@ 2025-12-30 16:19 ` Giulio Benetti
  2026-01-16 21:32 ` Thomas Petazzoni via buildroot
  4 siblings, 0 replies; 13+ messages in thread
From: Giulio Benetti @ 2025-12-30 16:19 UTC (permalink / raw)
  To: Bernd Kuhls, buildroot

Hi Bernd,

thanks for this patchset,

On 20/12/2025 18:06, Bernd Kuhls wrote:
> 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>

Reviewed-by: Giulio Benetti <giulio.benetti@benettiengineering.com>

Best regards
Giulio

> ---
>   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 \

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

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

* Re: [Buildroot] [PATCH 2/4] package/util-linux: fix nommu build
  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
  1 sibling, 0 replies; 13+ messages in thread
From: Giulio Benetti @ 2025-12-30 16:20 UTC (permalink / raw)
  To: Bernd Kuhls, buildroot

Hi Bernd,

thanks,

On 20/12/2025 18:06, Bernd Kuhls wrote:
> libuuid/src/gen_uuid.c: In function 'uuid_generate_time_generic':
> libuuid/src/gen_uuid.c:629:17: error: implicit declaration of function 'pthread_atfork';
>   did you mean 'pthread_join'? [-Wimplicit-function-declaration]
>    629 |                 pthread_atfork(NULL, NULL, reset_uuidd_cache);
> 
> Fixes:
> https://autobuild.buildroot.net/results/c3d/c3d098dd485bf52b3599e03d22da7b2cd7fb053a/
> 
> Signed-off-by: Bernd Kuhls <bernd@kuhls.net>

nice patch, LGTM so:
Reviewed-by: Giulio Benetti <giulio.benetti@benettiengineering.com>

Best regards
Giulio

> ---
>   package/util-linux/util-linux.mk | 5 +++++
>   1 file changed, 5 insertions(+)
> 
> diff --git a/package/util-linux/util-linux.mk b/package/util-linux/util-linux.mk
> index 8c98d80adf..40d948ec97 100644
> --- a/package/util-linux/util-linux.mk
> +++ b/package/util-linux/util-linux.mk
> @@ -58,6 +58,11 @@ UTIL_LINUX_CONF_OPTS += \
>   	--disable-makeinstall-chown \
>   	--disable-year2038
>   
> +# pthread support uses pthread_atfork, which is not available on nommu
> +ifneq ($(BR2_USE_MMU),y)
> +UTIL_LINUX_CONF_ENV += ac_cv_lib_pthread_pthread_atfork=no
> +endif
> +
>   UTIL_LINUX_LINK_LIBS = $(TARGET_NLS_LIBS)
>   
>   HOST_UTIL_LINUX_DEPENDENCIES = host-pkgconf

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

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

* Re: [Buildroot] [PATCH 3/4] package/util-linux: add dependency to BR2_USE_MMU when needed
  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
  2 siblings, 0 replies; 13+ messages in thread
From: Giulio Benetti @ 2025-12-30 16:21 UTC (permalink / raw)
  To: Bernd Kuhls, buildroot

Hi Bernd,

On 20/12/2025 18:06, Bernd Kuhls wrote:
> Upstream added fork() to lib/canonicalize.c in version 2.34[1]
> https://github.com/util-linux/util-linux/commit/e101a9eb0fab6725e0a239a92f9b50822c494a3e
> 
> but the resulting build errors on non-mmu archs were most likely masked
> by previous build errors which are already fixed.
> 
> lib/canonicalize.c as part of libcommon is widely used so we need to add
> the dependency to many Config.in options.
> 
> For an overview about its usage see
> output/build/util-linux-2.41.2$ grep -r "LDADD = \$(LDADD) libcommon.la" * | grep Makemodule | cut -d ":" -f 2 | sort
> 
> Fixes:
> https://autobuild.buildroot.net/results/34b/34b1f733fdfb5c5e30e631576f875398435ad115/
> 
> [1] Added to buildroot with commit bb216ed060b16e09b2027ef242347b2f2e3c97dc
>      in 2019.
> 
> Signed-off-by: Bernd Kuhls <bernd@kuhls.net>

you've preceded me with this, thank you

Reviewed-by: Giulio Benetti <giulio.benetti@benettiengineering.com>

Best regards
Giulio

> ---
>   package/linux-tools/Config.in |  2 +-
>   package/util-linux/Config.in  | 24 ++++++++++++++++++++++++
>   2 files changed, 25 insertions(+), 1 deletion(-)
> 
> diff --git a/package/linux-tools/Config.in b/package/linux-tools/Config.in
> index 5a38f6dafe..20131b0d9f 100644
> --- a/package/linux-tools/Config.in
> +++ b/package/linux-tools/Config.in
> @@ -150,7 +150,7 @@ comment "rtla needs a toolchain w/ threads, dynamic library"
>   config BR2_PACKAGE_LINUX_TOOLS_SELFTESTS
>   	bool"selftests"
>   	depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS # bash
> -	depends on BR2_USE_MMU  # bash
> +	depends on BR2_USE_MMU  # bash, util-linux-schedutils
>   	depends on !BR2_STATIC_LIBS
>   	depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_14 # util-linux schedutils
>   	select BR2_PACKAGE_LINUX_TOOLS
> diff --git a/package/util-linux/Config.in b/package/util-linux/Config.in
> index a168abe720..dfebaa0947 100644
> --- a/package/util-linux/Config.in
> +++ b/package/util-linux/Config.in
> @@ -75,11 +75,13 @@ config BR2_PACKAGE_UTIL_LINUX_AGETTY
>   
>   config BR2_PACKAGE_UTIL_LINUX_BFS
>   	bool "bfs"
> +	depends on BR2_USE_MMU # fork()
>   	help
>   	  SCO bfs filesystem support
>   
>   config BR2_PACKAGE_UTIL_LINUX_CAL
>   	bool "cal"
> +	depends on BR2_USE_MMU # fork()
>   	help
>   	  Display a calendar, or some part of it
>   
> @@ -100,11 +102,13 @@ comment "chfn/chsh needs a toolchain w/ wchar, locale, dynamic library, gcc >= 4
>   
>   config BR2_PACKAGE_UTIL_LINUX_CHMEM
>   	bool "chmem"
> +	depends on BR2_USE_MMU # fork()
>   	help
>   	  Sets a particular size or range of memory online or offline
>   
>   config BR2_PACKAGE_UTIL_LINUX_CRAMFS
>   	bool "cramfs utilities"
> +	depends on BR2_USE_MMU # fork()
>   	select BR2_PACKAGE_ZLIB
>   	help
>   	  Utilities for compressed ROM file system (fsck.cramfs,
> @@ -121,11 +125,13 @@ config BR2_PACKAGE_UTIL_LINUX_EJECT
>   
>   config BR2_PACKAGE_UTIL_LINUX_FALLOCATE
>   	bool "fallocate"
> +	depends on BR2_USE_MMU # fork()
>   	help
>   	  Preallocate space to a file
>   
>   config BR2_PACKAGE_UTIL_LINUX_FDFORMAT
>   	bool "fdformat"
> +	depends on BR2_USE_MMU # fork()
>   	help
>   	  Low-level format a floppy disk
>   
> @@ -140,26 +146,31 @@ config BR2_PACKAGE_UTIL_LINUX_FSCK
>   
>   config BR2_PACKAGE_UTIL_LINUX_HARDLINK
>   	bool "hardlink"
> +	depends on BR2_USE_MMU # fork()
>   	help
>   	  Consolidate duplicate files via hardlinks
>   
>   config BR2_PACKAGE_UTIL_LINUX_HWCLOCK
>   	bool "hwclock"
> +	depends on BR2_USE_MMU # fork()
>   	help
>   	  Query or set the hardware clock (RTC)
>   
>   config BR2_PACKAGE_UTIL_LINUX_IPCMK
>   	bool "ipcmk"
> +	depends on BR2_USE_MMU # fork()
>   	help
>   	  Make various IPC resources
>   
>   config BR2_PACKAGE_UTIL_LINUX_IPCRM
>   	bool "ipcrm"
> +	depends on BR2_USE_MMU # fork()
>   	help
>   	  Remove certain IPC resources
>   
>   config BR2_PACKAGE_UTIL_LINUX_IPCS
>   	bool "ipcs"
> +	depends on BR2_USE_MMU # fork()
>   	help
>   	  Show information on IPC facilities
>   
> @@ -173,11 +184,13 @@ config BR2_PACKAGE_UTIL_LINUX_IRQTOP
>   
>   config BR2_PACKAGE_UTIL_LINUX_KILL
>   	bool "kill"
> +	depends on BR2_USE_MMU # fork()
>   	help
>   	  Send a signal to a process
>   
>   config BR2_PACKAGE_UTIL_LINUX_LAST
>   	bool "last"
> +	depends on BR2_USE_MMU # fork()
>   	help
>   	  Show a listing of last logged in users
>   
> @@ -188,6 +201,7 @@ config BR2_PACKAGE_UTIL_LINUX_LINE
>   
>   config BR2_PACKAGE_UTIL_LINUX_LOGGER
>   	bool "logger"
> +	depends on BR2_USE_MMU # fork()
>   	help
>   	  Enter messages into the system log
>   
> @@ -246,6 +260,7 @@ config BR2_PACKAGE_UTIL_LINUX_LSMEM
>   
>   config BR2_PACKAGE_UTIL_LINUX_MESG
>   	bool "mesg"
> +	depends on BR2_USE_MMU # fork()
>   	help
>   	  Control write access to your terminal
>   
> @@ -288,6 +303,7 @@ config BR2_PACKAGE_UTIL_LINUX_NEWGRP
>   
>   config BR2_PACKAGE_UTIL_LINUX_NOLOGIN
>   	bool "nologin"
> +	depends on BR2_USE_MMU # fork()
>   	help
>   	  Politely refuse a login
>   
> @@ -333,6 +349,7 @@ comment "raw needs a toolchain w/ headers < 5.14"
>   
>   config BR2_PACKAGE_UTIL_LINUX_RENAME
>   	bool "rename"
> +	depends on BR2_USE_MMU # fork()
>   	help
>   	  Rename files
>   
> @@ -366,21 +383,25 @@ comment "runuser needs a uClibc or glibc toolchain w/ wchar, locale, dynamic lib
>   
>   config BR2_PACKAGE_UTIL_LINUX_SCHEDUTILS
>   	bool "scheduling utilities"
> +	depends on BR2_USE_MMU # fork()
>   	depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_14
>   	help
>   	  Scheduling utilities (chrt, ionice, taskset, uclampset)
>   
>   comment "scheduling utilities need a toolchain w/ headers >= 3.14"
> +	depends on BR2_USE_MMU # fork()
>   	depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_14
>   
>   config BR2_PACKAGE_UTIL_LINUX_SETPRIV
>   	bool "setpriv"
> +	depends on BR2_USE_MMU # fork()
>   	select BR2_PACKAGE_LIBCAP_NG
>   	help
>   	  Run a program with different Linux privilege settings
>   
>   config BR2_PACKAGE_UTIL_LINUX_SETTERM
>   	bool "setterm"
> +	depends on BR2_USE_MMU # fork()
>   	select BR2_PACKAGE_NCURSES
>   	help
>   	  Set terminal attributes
> @@ -417,6 +438,7 @@ config BR2_PACKAGE_UTIL_LINUX_SWITCH_ROOT
>   
>   config BR2_PACKAGE_UTIL_LINUX_TUNELP
>   	bool "tunelp"
> +	depends on BR2_USE_MMU # fork()
>   	select BR2_PACKAGE_NCURSES
>   	help
>   	  Set various parameters for the lp device
> @@ -435,6 +457,7 @@ config BR2_PACKAGE_UTIL_LINUX_UNSHARE
>   
>   config BR2_PACKAGE_UTIL_LINUX_UTMPDUMP
>   	bool "utmpdump"
> +	depends on BR2_USE_MMU # fork()
>   	help
>   	  Dump UTMP and WTMP files in raw format
>   
> @@ -489,6 +512,7 @@ config BR2_PACKAGE_UTIL_LINUX_WDCTL
>   
>   config BR2_PACKAGE_UTIL_LINUX_WRITE
>   	bool "write"
> +	depends on BR2_USE_MMU # fork()
>   	help
>   	  Send a message to another user
>   

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

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

* Re: [Buildroot] [PATCH 4/4] package/util-linux: bump version to 2.41.3
  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
  1 sibling, 0 replies; 13+ messages in thread
From: Giulio Benetti @ 2025-12-30 16:32 UTC (permalink / raw)
  To: Bernd Kuhls, buildroot

Hi Bernd,

On 20/12/2025 18:06, Bernd Kuhls wrote:
> Release notes:
> https://www.kernel.org/pub/linux/utils/util-linux/v2.41/v2.41.3-ReleaseNotes
> 
> Signed-off-by: Bernd Kuhls <bernd@kuhls.net>

I've build-tested successfully:
./utils/test-pkg -p util-linux -d ../test-util-linux
                     bootlin-armv5-uclibc [1/6]: OK
                      bootlin-armv7-glibc [2/6]: OK
                    bootlin-armv7m-uclibc [3/6]: OK
                      bootlin-x86-64-musl [4/6]: OK
                       br-arm-full-static [5/6]: OK
                              arm-aarch64 [6/6]: OK
6 builds, 0 skipped, 0 build failed, 0 legal-info failed, 0 show-info failed

So:
Reviewed-by: Giulio Benetti <giulio.benetti@benettiengineering.com>

Best regards
Giulio

> ---
>   package/util-linux/util-linux.hash | 2 +-
>   package/util-linux/util-linux.mk   | 2 +-
>   2 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/package/util-linux/util-linux.hash b/package/util-linux/util-linux.hash
> index af850c03d6..eab8a0c3b5 100644
> --- a/package/util-linux/util-linux.hash
> +++ b/package/util-linux/util-linux.hash
> @@ -1,5 +1,5 @@
>   # From https://mirrors.edge.kernel.org/pub/linux/utils/util-linux/v2.41/sha256sums.asc
> -sha256  6062a1d89b571a61932e6fc0211f36060c4183568b81ee866cf363bce9f6583e  util-linux-2.41.2.tar.xz
> +sha256  3330d873f0fceb5560b89a7dc14e4f3288bbd880e96903ed9b50ec2b5799e58b  util-linux-2.41.3.tar.xz
>   # License files, locally calculated
>   sha256  4c2db318192bda62f3f8fcf71488bb5e602ae4385eba281d711b46cc13a40bb3  README.licensing
>   sha256  527f738966ca396cd5a68c1509390de2a780c6b614d9ee57f7544a6161938ed1  Documentation/licenses/COPYING.BSD-2-Clause
> diff --git a/package/util-linux/util-linux.mk b/package/util-linux/util-linux.mk
> index 40d948ec97..14389254cb 100644
> --- a/package/util-linux/util-linux.mk
> +++ b/package/util-linux/util-linux.mk
> @@ -8,7 +8,7 @@
>   # util-linux-libs/util-linux-libs.mk needs to be updated accordingly as well.
>   
>   UTIL_LINUX_VERSION_MAJOR = 2.41
> -UTIL_LINUX_VERSION = $(UTIL_LINUX_VERSION_MAJOR).2
> +UTIL_LINUX_VERSION = $(UTIL_LINUX_VERSION_MAJOR).3
>   UTIL_LINUX_SOURCE = util-linux-$(UTIL_LINUX_VERSION).tar.xz
>   UTIL_LINUX_SITE = $(BR2_KERNEL_MIRROR)/linux/utils/util-linux/v$(UTIL_LINUX_VERSION_MAJOR)
>   

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

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

* Re: [Buildroot] [PATCH 1/4] package/util-linux: Remove -lpthread from uuid.pc for non-threaded builds
  2025-12-20 17:06 [Buildroot] [PATCH 1/4] package/util-linux: Remove -lpthread from uuid.pc for non-threaded builds Bernd Kuhls
                   ` (3 preceding siblings ...)
  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
  4 siblings, 0 replies; 13+ messages in thread
From: Thomas Petazzoni via buildroot @ 2026-01-16 21:32 UTC (permalink / raw)
  To: Bernd Kuhls; +Cc: buildroot

On Sat, Dec 20, 2025 at 06:06:20PM +0100, Bernd Kuhls wrote:

> +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

Yerk, this is quite ugly. Why don't you fix the actual problem
upstream?

Could you try:

diff --git a/libuuid/uuid.pc.in b/libuuid/uuid.pc.in
index 51929fe80..a40dc6644 100644
--- a/libuuid/uuid.pc.in
+++ b/libuuid/uuid.pc.in
@@ -7,5 +7,5 @@ Name: uuid
 Description: Universally unique id library
 Version: @LIBUUID_VERSION@
 Cflags: -I${includedir}/uuid
-Libs.private: @SOCKET_LIBS@ -lpthread
+Libs.private: @SOCKET_LIBS@ @PTHREAD_LIBS@
 Libs: -L${libdir} -luuid

(Totally untested)

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

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

* Re: [Buildroot] [PATCH 2/4] package/util-linux: fix nommu build
  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
  1 sibling, 0 replies; 13+ messages in thread
From: Thomas Petazzoni via buildroot @ 2026-01-16 21:35 UTC (permalink / raw)
  To: Bernd Kuhls; +Cc: buildroot

On Sat, Dec 20, 2025 at 06:06:21PM +0100, Bernd Kuhls wrote:
> libuuid/src/gen_uuid.c: In function 'uuid_generate_time_generic':
> libuuid/src/gen_uuid.c:629:17: error: implicit declaration of function 'pthread_atfork';
>  did you mean 'pthread_join'? [-Wimplicit-function-declaration]
>   629 |                 pthread_atfork(NULL, NULL, reset_uuidd_cache);

Since when is this happening?

> +# pthread support uses pthread_atfork, which is not available on nommu
> +ifneq ($(BR2_USE_MMU),y)
> +UTIL_LINUX_CONF_ENV += ac_cv_lib_pthread_pthread_atfork=no
> +endif

This is also the wrong fix, it should be fixed in an upstream
compatible way. The failure doesn't make sense to me. Indeed, the
configure.ac contains:

AC_CHECK_LIB([pthread], [pthread_atfork], [
        PTHREAD_LIBS="-lpthread"
        AC_DEFINE([HAVE_LIBPTHREAD], [1], [Define if libpthred exist])
])

So HAVE_LIBPTHREAD should only be defined if pthread_atfork() is found
in libpthread.

And the only pthread_atfork() call is within an #ifdef HAVE_LIBPTHREAD
condition:

#ifdef HAVE_LIBPTHREAD
	static volatile sig_atomic_t atfork_registered;
	time_t	now;

	if (!atfork_registered) {
		pthread_atfork(NULL, NULL, reset_uuidd_cache);
		atfork_registered = 1;
	}

So, some investigation is needed to understand why this configure.ac +
conditional compilation logic doesn't work as it should.

But isn't this something Julien already had a look at a long time ago?

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

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

* Re: [Buildroot] [PATCH 3/4] package/util-linux: add dependency to BR2_USE_MMU when needed
  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
  2 siblings, 0 replies; 13+ messages in thread
From: Thomas Petazzoni via buildroot @ 2026-01-16 21:58 UTC (permalink / raw)
  To: Bernd Kuhls; +Cc: buildroot

On Sat, Dec 20, 2025 at 06:06:22PM +0100, Bernd Kuhls wrote:
> Upstream added fork() to lib/canonicalize.c in version 2.34[1]
> https://github.com/util-linux/util-linux/commit/e101a9eb0fab6725e0a239a92f9b50822c494a3e
> 
> but the resulting build errors on non-mmu archs were most likely masked
> by previous build errors which are already fixed.
> 
> lib/canonicalize.c as part of libcommon is widely used so we need to add
> the dependency to many Config.in options.
> 
> For an overview about its usage see
> output/build/util-linux-2.41.2$ grep -r "LDADD = \$(LDADD) libcommon.la" * | grep Makemodule | cut -d ":" -f 2 | sort
> 
> Fixes:
> https://autobuild.buildroot.net/results/34b/34b1f733fdfb5c5e30e631576f875398435ad115/
> 
> [1] Added to buildroot with commit bb216ed060b16e09b2027ef242347b2f2e3c97dc
>     in 2019.
> 
> Signed-off-by: Bernd Kuhls <bernd@kuhls.net>

Applied, 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

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

* Re: [Buildroot] [PATCH 4/4] package/util-linux: bump version to 2.41.3
  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
  1 sibling, 0 replies; 13+ messages in thread
From: Thomas Petazzoni via buildroot @ 2026-01-16 21:58 UTC (permalink / raw)
  To: Bernd Kuhls; +Cc: buildroot

On Sat, Dec 20, 2025 at 06:06:23PM +0100, Bernd Kuhls wrote:
> Release notes:
> https://www.kernel.org/pub/linux/utils/util-linux/v2.41/v2.41.3-ReleaseNotes
> 
> Signed-off-by: Bernd Kuhls <bernd@kuhls.net>

Applied, 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

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

* Re: [Buildroot] [PATCH 3/4] package/util-linux: add dependency to BR2_USE_MMU when needed
  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
  2 siblings, 0 replies; 13+ messages in thread
From: Arnout Vandecappelle via buildroot @ 2026-01-28 17:24 UTC (permalink / raw)
  To: Bernd Kuhls; +Cc: Arnout Vandecappelle, buildroot

In reply of:
> Upstream added fork() to lib/canonicalize.c in version 2.34[1]
> https://github.com/util-linux/util-linux/commit/e101a9eb0fab6725e0a239a92f9b50822c494a3e
> 
> but the resulting build errors on non-mmu archs were most likely masked
> by previous build errors which are already fixed.
> 
> lib/canonicalize.c as part of libcommon is widely used so we need to add
> the dependency to many Config.in options.
> 
> For an overview about its usage see
> output/build/util-linux-2.41.2$ grep -r "LDADD = \$(LDADD) libcommon.la" * | grep Makemodule | cut -d ":" -f 2 | sort
> 
> Fixes:
> https://autobuild.buildroot.net/results/34b/34b1f733fdfb5c5e30e631576f875398435ad115/
> 
> [1] Added to buildroot with commit bb216ed060b16e09b2027ef242347b2f2e3c97dc
>     in 2019.
> 
> Signed-off-by: Bernd Kuhls <bernd@kuhls.net>

Applied to 2025.02.x and 2025.11.x. Thanks

> ---
>  package/linux-tools/Config.in |  2 +-
>  package/util-linux/Config.in  | 24 ++++++++++++++++++++++++
>  2 files changed, 25 insertions(+), 1 deletion(-)
> 
> diff --git a/package/linux-tools/Config.in b/package/linux-tools/Config.in
> index 5a38f6dafe..20131b0d9f 100644
> --- a/package/linux-tools/Config.in
> +++ b/package/linux-tools/Config.in
> @@ -150,7 +150,7 @@ comment "rtla needs a toolchain w/ threads, dynamic library"
>  config BR2_PACKAGE_LINUX_TOOLS_SELFTESTS
>  	bool"selftests"
>  	depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS # bash
> -	depends on BR2_USE_MMU  # bash
> +	depends on BR2_USE_MMU  # bash, util-linux-schedutils
>  	depends on !BR2_STATIC_LIBS
>  	depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_14 # util-linux schedutils
>  	select BR2_PACKAGE_LINUX_TOOLS
> diff --git a/package/util-linux/Config.in b/package/util-linux/Config.in
> index a168abe720..dfebaa0947 100644
> --- a/package/util-linux/Config.in
> +++ b/package/util-linux/Config.in
> @@ -75,11 +75,13 @@ config BR2_PACKAGE_UTIL_LINUX_AGETTY
>  
>  config BR2_PACKAGE_UTIL_LINUX_BFS
>  	bool "bfs"
> +	depends on BR2_USE_MMU # fork()
>  	help
>  	  SCO bfs filesystem support
>  
>  config BR2_PACKAGE_UTIL_LINUX_CAL
>  	bool "cal"
> +	depends on BR2_USE_MMU # fork()
>  	help
>  	  Display a calendar, or some part of it
>  
> @@ -100,11 +102,13 @@ comment "chfn/chsh needs a toolchain w/ wchar, locale, dynamic library, gcc >= 4
>  
>  config BR2_PACKAGE_UTIL_LINUX_CHMEM
>  	bool "chmem"
> +	depends on BR2_USE_MMU # fork()
>  	help
>  	  Sets a particular size or range of memory online or offline
>  
>  config BR2_PACKAGE_UTIL_LINUX_CRAMFS
>  	bool "cramfs utilities"
> +	depends on BR2_USE_MMU # fork()
>  	select BR2_PACKAGE_ZLIB
>  	help
>  	  Utilities for compressed ROM file system (fsck.cramfs,
> @@ -121,11 +125,13 @@ config BR2_PACKAGE_UTIL_LINUX_EJECT
>  
>  config BR2_PACKAGE_UTIL_LINUX_FALLOCATE
>  	bool "fallocate"
> +	depends on BR2_USE_MMU # fork()
>  	help
>  	  Preallocate space to a file
>  
>  config BR2_PACKAGE_UTIL_LINUX_FDFORMAT
>  	bool "fdformat"
> +	depends on BR2_USE_MMU # fork()
>  	help
>  	  Low-level format a floppy disk
>  
> @@ -140,26 +146,31 @@ config BR2_PACKAGE_UTIL_LINUX_FSCK
>  
>  config BR2_PACKAGE_UTIL_LINUX_HARDLINK
>  	bool "hardlink"
> +	depends on BR2_USE_MMU # fork()
>  	help
>  	  Consolidate duplicate files via hardlinks
>  
>  config BR2_PACKAGE_UTIL_LINUX_HWCLOCK
>  	bool "hwclock"
> +	depends on BR2_USE_MMU # fork()
>  	help
>  	  Query or set the hardware clock (RTC)
>  
>  config BR2_PACKAGE_UTIL_LINUX_IPCMK
>  	bool "ipcmk"
> +	depends on BR2_USE_MMU # fork()
>  	help
>  	  Make various IPC resources
>  
>  config BR2_PACKAGE_UTIL_LINUX_IPCRM
>  	bool "ipcrm"
> +	depends on BR2_USE_MMU # fork()
>  	help
>  	  Remove certain IPC resources
>  
>  config BR2_PACKAGE_UTIL_LINUX_IPCS
>  	bool "ipcs"
> +	depends on BR2_USE_MMU # fork()
>  	help
>  	  Show information on IPC facilities
>  
> @@ -173,11 +184,13 @@ config BR2_PACKAGE_UTIL_LINUX_IRQTOP
>  
>  config BR2_PACKAGE_UTIL_LINUX_KILL
>  	bool "kill"
> +	depends on BR2_USE_MMU # fork()
>  	help
>  	  Send a signal to a process
>  
>  config BR2_PACKAGE_UTIL_LINUX_LAST
>  	bool "last"
> +	depends on BR2_USE_MMU # fork()
>  	help
>  	  Show a listing of last logged in users
>  
> @@ -188,6 +201,7 @@ config BR2_PACKAGE_UTIL_LINUX_LINE
>  
>  config BR2_PACKAGE_UTIL_LINUX_LOGGER
>  	bool "logger"
> +	depends on BR2_USE_MMU # fork()
>  	help
>  	  Enter messages into the system log
>  
> @@ -246,6 +260,7 @@ config BR2_PACKAGE_UTIL_LINUX_LSMEM
>  
>  config BR2_PACKAGE_UTIL_LINUX_MESG
>  	bool "mesg"
> +	depends on BR2_USE_MMU # fork()
>  	help
>  	  Control write access to your terminal
>  
> @@ -288,6 +303,7 @@ config BR2_PACKAGE_UTIL_LINUX_NEWGRP
>  
>  config BR2_PACKAGE_UTIL_LINUX_NOLOGIN
>  	bool "nologin"
> +	depends on BR2_USE_MMU # fork()
>  	help
>  	  Politely refuse a login
>  
> @@ -333,6 +349,7 @@ comment "raw needs a toolchain w/ headers < 5.14"
>  
>  config BR2_PACKAGE_UTIL_LINUX_RENAME
>  	bool "rename"
> +	depends on BR2_USE_MMU # fork()
>  	help
>  	  Rename files
>  
> @@ -366,21 +383,25 @@ comment "runuser needs a uClibc or glibc toolchain w/ wchar, locale, dynamic lib
>  
>  config BR2_PACKAGE_UTIL_LINUX_SCHEDUTILS
>  	bool "scheduling utilities"
> +	depends on BR2_USE_MMU # fork()
>  	depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_14
>  	help
>  	  Scheduling utilities (chrt, ionice, taskset, uclampset)
>  
>  comment "scheduling utilities need a toolchain w/ headers >= 3.14"
> +	depends on BR2_USE_MMU # fork()
>  	depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_14
>  
>  config BR2_PACKAGE_UTIL_LINUX_SETPRIV
>  	bool "setpriv"
> +	depends on BR2_USE_MMU # fork()
>  	select BR2_PACKAGE_LIBCAP_NG
>  	help
>  	  Run a program with different Linux privilege settings
>  
>  config BR2_PACKAGE_UTIL_LINUX_SETTERM
>  	bool "setterm"
> +	depends on BR2_USE_MMU # fork()
>  	select BR2_PACKAGE_NCURSES
>  	help
>  	  Set terminal attributes
> @@ -417,6 +438,7 @@ config BR2_PACKAGE_UTIL_LINUX_SWITCH_ROOT
>  
>  config BR2_PACKAGE_UTIL_LINUX_TUNELP
>  	bool "tunelp"
> +	depends on BR2_USE_MMU # fork()
>  	select BR2_PACKAGE_NCURSES
>  	help
>  	  Set various parameters for the lp device
> @@ -435,6 +457,7 @@ config BR2_PACKAGE_UTIL_LINUX_UNSHARE
>  
>  config BR2_PACKAGE_UTIL_LINUX_UTMPDUMP
>  	bool "utmpdump"
> +	depends on BR2_USE_MMU # fork()
>  	help
>  	  Dump UTMP and WTMP files in raw format
>  
> @@ -489,6 +512,7 @@ config BR2_PACKAGE_UTIL_LINUX_WDCTL
>  
>  config BR2_PACKAGE_UTIL_LINUX_WRITE
>  	bool "write"
> +	depends on BR2_USE_MMU # fork()
>  	help
>  	  Send a message to another user
>  
> -- 
> 2.47.3
> 
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[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.