[Buildroot] [PATCH v2 1/1] libsepol: require threads

Matthew Weber matthew.weber at rockwellcollins.com
Tue Oct 24 16:13:35 UTC 2017


Adam,

On Tue, Oct 24, 2017 at 8:48 AM, Adam Duskett <aduskett at gmail.com> wrote:
> libsepol 2.7 now uses pthreads.h
>
> Signed-off-by: Adam Duskett <aduskett at gmail.com>
> ---
> changes v1 -> v2:
>   - Added thread dependency to semodule-utils (Arnout)
>
>  package/libsepol/Config.in       | 1 +
>  package/semodule-utils/Config.in | 4 ++++
>  2 files changed, 5 insertions(+)
>
> diff --git a/package/libsepol/Config.in b/package/libsepol/Config.in
> index f92af52072..83141e8b98 100644
> --- a/package/libsepol/Config.in
> +++ b/package/libsepol/Config.in
> @@ -1,5 +1,6 @@
>  config BR2_PACKAGE_LIBSEPOL
>         bool "libsepol"
> +       depends on BR2_TOOLCHAIN_HAS_THREADS
>         help
>           Libsepol is the binary policy manipulation library. It doesn't
>           depend upon or use any of the other SELinux components.
> diff --git a/package/semodule-utils/Config.in b/package/semodule-utils/Config.in
> index d9cb928c4c..995157baa1 100644
> --- a/package/semodule-utils/Config.in
> +++ b/package/semodule-utils/Config.in
> @@ -1,5 +1,6 @@
>  config BR2_PACKAGE_SEMODULE_UTILS
>         bool "semodule-utils"
> +       depends on BR2_TOOLCHAIN_HAS_THREADS

Suggest adding comment to show why the dependency was added.  Something like

depends on BR2_TOOLCHAIN_HAS_THREADS  # libsepol

>         select BR2_PACKAGE_LIBSEPOL
>         help
>           semodule-utils is a package that contains tools for handling
> @@ -13,3 +14,6 @@ config BR2_PACKAGE_SEMODULE_UTILS
>           * semodule_package - Create a SELinux policy module package.
>
>           https://github.com/SELinuxProject/selinux/wiki/Releases
> +
> +comment "semodule-utils needs a toolchain w/ threads"
> +       depends on !BR2_TOOLCHAIN_HAS_THREADS

I'd suggest also doing similar for the libsepol package


Matt



More information about the buildroot mailing list