All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v4 1/1] libsepol: require threads
@ 2017-11-03 13:33 Adam Duskett
  2017-11-03 14:11 ` Matthew Weber
  2017-11-03 17:47 ` Thomas Petazzoni
  0 siblings, 2 replies; 3+ messages in thread
From: Adam Duskett @ 2017-11-03 13:33 UTC (permalink / raw)
  To: buildroot

libsepol 2.7 now uses pthreads.h

Signed-off-by: Adam Duskett <aduskett@gmail.com>
---
Changes v1 -> v2:
  - Added thread dependency to semodule-utils (Arnout)

Changes v2 -> v3:
  - Added explanations for dependencies (Matt Webber)

Changes v3 -> v4:
  - Added Config.in comment in libsepol for threads. (Thomas)

 package/libsepol/Config.in       | 4 ++++
 package/semodule-utils/Config.in | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/package/libsepol/Config.in b/package/libsepol/Config.in
index f92af52072..cfa923e452 100644
--- a/package/libsepol/Config.in
+++ b/package/libsepol/Config.in
@@ -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
diff --git a/package/semodule-utils/Config.in b/package/semodule-utils/Config.in
index d9cb928c4c..38e043dc2c 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 # 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
-- 
2.13.6

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

* [Buildroot] [PATCH v4 1/1] libsepol: require threads
  2017-11-03 13:33 [Buildroot] [PATCH v4 1/1] libsepol: require threads Adam Duskett
@ 2017-11-03 14:11 ` Matthew Weber
  2017-11-03 17:47 ` Thomas Petazzoni
  1 sibling, 0 replies; 3+ messages in thread
From: Matthew Weber @ 2017-11-03 14:11 UTC (permalink / raw)
  To: buildroot

Adam,

On Fri, Nov 3, 2017 at 8:33 AM, Adam Duskett <aduskett@gmail.com> wrote:
> libsepol 2.7 now uses pthreads.h
>

Suggest adding link to one of the failures.

    libsepol-2.7 |
http://autobuild.buildroot.net/results/5f1c6872a395d8c6d55e2b1722730871b4daf6a3

I used the above config, changed to buildroot toolchain/glibc/gcc6 and
retested without error.  Also before making that change, menuconfig
looked correct with the comment.

Tested-by: Matt Weber <matthew.weber@rockwellcollins.com>

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

* [Buildroot] [PATCH v4 1/1] libsepol: require threads
  2017-11-03 13:33 [Buildroot] [PATCH v4 1/1] libsepol: require threads Adam Duskett
  2017-11-03 14:11 ` Matthew Weber
@ 2017-11-03 17:47 ` Thomas Petazzoni
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2017-11-03 17:47 UTC (permalink / raw)
  To: buildroot

Hello,

On Fri,  3 Nov 2017 09:33:06 -0400, Adam Duskett wrote:
> libsepol 2.7 now uses pthreads.h
> 
> Signed-off-by: Adam Duskett <aduskett@gmail.com>
> ---
> Changes v1 -> v2:
>   - Added thread dependency to semodule-utils (Arnout)

Applied to master after a reference to an autobuilder failure.

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

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

end of thread, other threads:[~2017-11-03 17:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-03 13:33 [Buildroot] [PATCH v4 1/1] libsepol: require threads Adam Duskett
2017-11-03 14:11 ` Matthew Weber
2017-11-03 17:47 ` Thomas Petazzoni

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.