Skip to contentSkip to conversation

libsepol: require threads

PATCH Superseded Adam Duskett 2 participants 2 messages Oct 23, 2017

v1 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libsepol: require threads

libsepol 2.7 now uses pthreads.h

---
 package/libsepol/Config.in | 4 ++++
 1 file changed, 4 insertions(+)
package/libsepol/Config.in +4 -0
index f92af52072..32214e4e9c 100644
@@ -1,7 +1,11 @@
 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.
 
 	  http://selinuxproject.org/page/Main_Page
+
+comment "libsepol needs a toolchain w/ threads"
+        depends on BR2_TOOLCHAIN_HAS_THREADS
Signature · 1 line
2.13.6
#1 lore raw

PATCH 1/1 libsepol: require threads

Hi Adam,

Quoted 12 lines · Adam Duskett

libsepol 2.7 now uses pthreads.h

---
 package/libsepol/Config.in | 4 ++++
 1 file changed, 4 insertions(+)
package/libsepol/Config.in +0 -0
index f92af52072..32214e4e9c 100644

package/libsepol/Config.in line 3

Quoted 3 lines
package/libsepol/Config.in +1 -0
@@ -1,7 +1,11 @@
 config BR2_PACKAGE_LIBSEPOL
 	bool "libsepol"
+	depends on BR2_TOOLCHAIN_HAS_THREADS

I believe you have been told before: when you add a dependency to a package,
you have to propagate it to the reverse dependencies of that package. In this case libselinux, restorecond, semodule-utils. And you have to recurse to their reverse dependencies, etc. etc.

Regards,
Arnout

Quoted 9 lines
package/libsepol/Config.in +3 -0
 	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
Signature · 6 lines
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF