package/util-linux: Remove -lpthread from uuid.pc for non-threaded builds
PATCH 1/4 package/util-linux: Remove -lpthread from uuid.pc for non-threaded builds
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/
--- package/util-linux/util-linux.mk | 7 +++++++ 1 file changed, 7 insertions(+)
package/util-linux/util-linux.mk +7 -0
@@ -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 \
Signature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 2/4 package/util-linux: fix nommu build
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/
--- package/util-linux/util-linux.mk | 5 +++++ 1 file changed, 5 insertions(+)
package/util-linux/util-linux.mk +5 -0
@@ -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
Signature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH 2/4] package/util-linux: fix nommu build
Hi Bernd,
thanks,
Quoted 9 lines · Bernd Kuhls
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 <[email protected]>
nice patch, LGTM so:
Best regards
Giulio
Quoted 10 lines
--- package/util-linux/util-linux.mk | 5 +++++ 1 file changed, 5 insertions(+)package/util-linux/util-linux.mk +0
-0@@ -58,6 +58,11 @@ UTIL_LINUX_CONF_OPTS += \ --disable-makeinstall-chown \
package/util-linux/util-linux.mk UTIL_LINUX_CONF_OPTS += \ · line 68
Quoted 10 lines
package/util-linux/util-linux.mk +5
-0--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
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH 2/4] package/util-linux: fix nommu build
In reply to Bernd KuhlsQuoted 4 lines · Bernd Kuhls
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?
package/util-linux/util-linux.mk UTIL_LINUX_CONF_OPTS += \ · line 64
Quoted 4 lines
package/util-linux/util-linux.mk +4
-0+# 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
Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 3/4 package/util-linux: add dependency to BR2_USE_MMU when needed
In reply to Bernd KuhlsUpstream 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.
--- package/linux-tools/Config.in | 2 +- package/util-linux/Config.in | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-)
package/linux-tools/Config.in +1 -1
@@ -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
package/util-linux/Config.in +24 -0
@@ -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
Signature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH 3/4] package/util-linux: add dependency to BR2_USE_MMU when needed
Hi Bernd,
Quoted 12 lines · Bernd Kuhls
Upstream added
fork()tolib/canonicalize.cin version 2.34[1]
https://github.com/util-linux/util-linux/commit/e101a9eb0fab6725e0a239a92f9b50822c494a3ebut the resulting build errors on non-mmu archs were most likely masked by previous build errors which are already fixed.
lib/canonicalize.cas 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
Quoted 7 lines
Fixes:
https://autobuild.buildroot.net/results/34b/34b1f733fdfb5c5e30e631576f875398435ad115/[1] Added to buildroot with commit
bb216ed060b16e09b2027ef242347b2f2e3c97dcin 2019.Signed-off-by Bernd Kuhls <[email protected]>
you've preceded me with this, thank you
Best regards
Giulio
Quoted 185 lines
--- package/linux-tools/Config.in | 2 +- package/util-linux/Config.in | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-)package/linux-tools/Config.in +1
-1@@ -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_TOOLSpackage/util-linux/Config.in +23
-0@@ -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
package/util-linux/Config.in config BR2_PACKAGE_UTIL_LINUX_WDCTL · line 518
Quoted 7 lines
package/util-linux/Config.in +1
-0@@ -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
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Thomas Petazzoni via buildroot
AppliedRe: [Buildroot] [PATCH 3/4] package/util-linux: add dependency to BR2_USE_MMU when needed
In reply to Bernd KuhlsQuoted 12 lines · Bernd Kuhls
Upstream added
fork()tolib/canonicalize.cin version 2.34[1]
https://github.com/util-linux/util-linux/commit/e101a9eb0fab6725e0a239a92f9b50822c494a3ebut the resulting build errors on non-mmu archs were most likely masked by previous build errors which are already fixed.
lib/canonicalize.cas 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
Quoted 7 lines
Fixes:
https://autobuild.buildroot.net/results/34b/34b1f733fdfb5c5e30e631576f875398435ad115/[1] Added to buildroot with commit
bb216ed060b16e09b2027ef242347b2f2e3c97dcin 2019.Signed-off-by Bernd Kuhls <[email protected]>
Applied, thanks!
Thomas
Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH 3/4] package/util-linux: add dependency to BR2_USE_MMU when needed
In reply to Bernd KuhlsIn reply of:
Quoted 12 lines
Upstream added
fork()tolib/canonicalize.cin version 2.34[1]
https://github.com/util-linux/util-linux/commit/e101a9eb0fab6725e0a239a92f9b50822c494a3ebut the resulting build errors on non-mmu archs were most likely masked by previous build errors which are already fixed.
lib/canonicalize.cas 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
Quoted 7 lines
Fixes:
https://autobuild.buildroot.net/results/34b/34b1f733fdfb5c5e30e631576f875398435ad115/[1] Added to buildroot with commit
bb216ed060b16e09b2027ef242347b2f2e3c97dcin 2019.Signed-off-by Bernd Kuhls <[email protected]>
Applied to 2025.02.x and 2025.11.x. Thanks
Quoted 199 lines
--- package/linux-tools/Config.in | 2 +- package/util-linux/Config.in | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-)package/linux-tools/Config.in +1
-1@@ -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_TOOLSpackage/util-linux/Config.in +24
-0@@ -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 userSignature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 4/4 package/util-linux: bump version to 2.41.3
In reply to Bernd KuhlsRelease notes:
https://www.kernel.org/pub/linux/utils/util-linux/v2.41/v2.41.3-ReleaseNotes
--- package/util-linux/util-linux.hash | 2 +- package/util-linux/util-linux.mk | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
package/util-linux/util-linux.hash +1 -1
@@ -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
package/util-linux/util-linux.mk +1 -1
@@ -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)
Signature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH 4/4] package/util-linux: bump version to 2.41.3
Hi Bernd,
Quoted 4 lines · Bernd Kuhls
Release notes:
https://www.kernel.org/pub/linux/utils/util-linux/v2.41/v2.41.3-ReleaseNotesSigned-off-by Bernd Kuhls <[email protected]>
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]: OK6 builds, 0 skipped, 0 build failed, 0 legal-info failed, 0 show-info failed
So:
Best regards
Giulio
Quoted 21 lines
--- package/util-linux/util-linux.hash | 2 +- package/util-linux/util-linux.mk | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)package/util-linux/util-linux.hash +1
-1@@ -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-Clausepackage/util-linux/util-linux.mk +0
-0
package/util-linux/util-linux.mk line 14
Quoted 8 lines
package/util-linux/util-linux.mk +1
-1@@ -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
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Thomas Petazzoni via buildroot
AppliedRe: [Buildroot] [PATCH 4/4] package/util-linux: bump version to 2.41.3
In reply to Bernd KuhlsQuoted 4 lines · Bernd Kuhls
Release notes:
https://www.kernel.org/pub/linux/utils/util-linux/v2.41/v2.41.3-ReleaseNotesSigned-off-by Bernd Kuhls <[email protected]>
Applied, thanks!
Thomas
Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Hi Bernd,
thanks for this patchset,
Quoted 8 lines · Bernd Kuhls
Buildroot commit
31af509b4f4fe52f67bd9109b8732a55b8f9cd2dbumped 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.
Quoted 7 lines
Upstream was notified:
https://github.com/util-linux/util-linux/issues/3210#issuecomment-3477915953Fixes:
https://autobuild.buildroot.net/results/582/5827995db2a805e0c8a04fde8498eff6f28aa6d8/Signed-off-by Bernd Kuhls <[email protected]>
Best regards
Giulio
Quoted 12 lines
--- package/util-linux/util-linux.mk | 7 +++++++ 1 file changed, 7 insertions(+)package/util-linux/util-linux.mk +0
-0@@ -37,6 +37,13 @@ UTIL_LINUX_LICENSE_FILES = README.licensing \ UTIL_LINUX_CPE_ID_VENDOR = kernel
package/util-linux/util-linux.mk UTIL_LINUX_LICENSE_FILES = README.licensing \ · line 49
Quoted 10 lines
package/util-linux/util-linux.mk +7
-0+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
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Review
Quoted 6 lines · Bernd Kuhls
(quoted diff) +6
-0+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:
libuuid/uuid.pc.in +1 -1
@@ -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
Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot