Re: [Buildroot] [PATCH v4 2/3] package/util-linux: libuuid needs MMU

Petr Vorel <[email protected]>
Newsgroups net.busybox.buildroot
Message-ID <20260721204226.GA23326@pevik>
Hi Dario,

> When building util-linux with libuuid enabled on noMMU targets
> (e.g., bootlin-armv7m-uclibc or bootlin-m68k-5208-uclibc), the build
> fails with the following error:

> 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);
>       |                 ^~~~~~~~~~~~~~
>       |                 pthread_join

> This happens because pthread_atfork() is not available on noMMU
> configurations as reported by commit 59fe7547a495 ("package/libcap-ng:
> disable pthread support on nommu").

> Fix this by adding a dependency on BR2_USE_MMU to libuuid. As a
> consequence, also propagate the BR2_USE_MMU dependency to all packages
> selecting BR2_PACKAGE_UTIL_LINUX_LIBUUID to prevent "unmet direct
> dependencies" Kconfig errors.

LGTM.

Reviewed-by: Petr Vorel <[email protected]>

Kind regards,
Petr
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.