libsepol: require threads
authorAdam Duskett <aduskett@gmail.com>
Fri, 3 Nov 2017 13:33:06 +0000 (09:33 -0400)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Fri, 3 Nov 2017 17:46:44 +0000 (18:46 +0100)
libsepol 2.7 now uses <pthread.h>

Fixes:

  http://autobuild.buildroot.net/results/5f1c6872a395d8c6d55e2b1722730871b4daf6a3

Signed-off-by: Adam Duskett <aduskett@gmail.com>
Tested-by: Matt Weber <matthew.weber@rockwellcollins.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/libsepol/Config.in
package/semodule-utils/Config.in

index f92af52072b4867fd603ae6c159305f3c52845a3..cfa923e452e36079266c6b1686effa3e3113a2e4 100644 (file)
@@ -1,7 +1,11 @@
 config BR2_PACKAGE_LIBSEPOL
        bool "libsepol"
+       depends on BR2_TOOLCHAIN_HAS_THREADS # pthread
        help
          Libsepol is the binary policy manipulation library. It doesn't
          depend upon or use any of the other SELinux components.
 
          http://selinuxproject.org/page/Main_Page
+
+comment "libsepol needs a toolchain w/ threads"
+       depends on !BR2_TOOLCHAIN_HAS_THREADS
index d9cb928c4c177b28c690ca788f6a9acab826e396..38e043dc2cd051098a59eb307760533af30bb8f1 100644 (file)
@@ -1,5 +1,6 @@
 config BR2_PACKAGE_SEMODULE_UTILS
        bool "semodule-utils"
+       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