summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Weber <matthew.weber@rockwellcollins.com>2018-09-28 20:04:35 (GMT)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>2018-10-09 13:42:03 (GMT)
commita5e4eddb84d11ad0e4ee5c7d5298f6267e0e7f87 (patch)
tree85c6aedefa269ba0d893212824ed05a0022d8e37
parent3ec98f0564dfa68d55b52b2815f8017455993ea9 (diff)
downloadbuildroot-a5e4eddb84d11ad0e4ee5c7d5298f6267e0e7f87.tar.gz
buildroot-a5e4eddb84d11ad0e4ee5c7d5298f6267e0e7f87.tar.bz2
package/setools: host variant needs host-python-enum34
The enum34 dependency is required for python2.7 for both the host and target builds. This patch adds the host dependency to match what is already in place for the target. The host build is used by the setools package seinfo tool offline for host based policy analysis. The analysis is easiest performed offline as the policy is checked for path/reachability, which is something that occurs by taking the policy file and using debug libraries to perform test cases. Fixes the following runtime error: $ ./output/host/bin/sesearch Traceback (most recent call last): [...] File "/home/test/buildroot/output/host/lib/python2.7/site-packages/setools-4.1.1-py2.7-linux-x86_64.egg/setools/policyrep/util.py", line 21, in <module> from enum import Enum ImportError: No module named enum Signed-off-by: Matthew Weber <matthew.weber@rockwellcollins.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
-rw-r--r--package/setools/setools.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/setools/setools.mk b/package/setools/setools.mk
index 1ed7e97..63ca365 100644
--- a/package/setools/setools.mk
+++ b/package/setools/setools.mk
@@ -18,6 +18,7 @@ SETOOLS_PYLIBVER = python$(PYTHON3_VERSION_MAJOR)
else
SETOOLS_PYLIBVER = python$(PYTHON_VERSION_MAJOR)
SETOOLS_DEPENDENCIES += python-enum34
+HOST_SETOOLS_DEPENDENCIES += host-python-enum34
endif
define SETOOLS_FIX_SETUP