diff mbox series

[2/4] package/refpolicy: add host gcc >= 5 dependency

Message ID 20220105180402.388388-2-fontaine.fabrice@gmail.com
State Accepted
Headers show
Series [1/4] package/libsemanage: add gcc >= 5 dependency | expand

Commit Message

Fabrice Fontaine Jan. 5, 2022, 6:04 p.m. UTC
Commit 56d9b887685c86fd4fbadda247cdbe733d499e81 forgot to add host
gcc >= 5 dependency

Fixes:
 - No autobuilder failures (yet)

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 package/refpolicy/Config.in | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/package/refpolicy/Config.in b/package/refpolicy/Config.in
index 043cc40a72..0e72b895df 100644
--- a/package/refpolicy/Config.in
+++ b/package/refpolicy/Config.in
@@ -2,6 +2,7 @@  config BR2_PACKAGE_REFPOLICY
 	bool "refpolicy"
 	depends on BR2_TOOLCHAIN_HAS_THREADS # libsepol
 	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_5 # libsepol
+	depends on BR2_HOST_GCC_AT_LEAST_5 # host-setools -> host-libsepol
 	# Even though libsepol is not necessary for building, we get
 	# the policy version from libsepol, so we select it, and treat
 	# it like a runtime dependency.
@@ -114,6 +115,7 @@  endif
 
 endif
 
-comment "refpolicy needs a toolchain w/ threads, gcc >= 5"
+comment "refpolicy needs a toolchain w/ threads, gcc >= 5, host gcc >= 5"
 	depends on !BR2_TOOLCHAIN_HAS_THREADS || \
-		!BR2_TOOLCHAIN_GCC_AT_LEAST_5
+		!BR2_TOOLCHAIN_GCC_AT_LEAST_5 || \
+		!BR2_HOST_GCC_AT_LEAST_5