package/python-enum34: enable host build
PATCH 1/2 package/python-enum34: enable host build
This is initially used by the setools package to do offline policy analysis using host tools.
--- package/python-enum34/python-enum34.mk | 1 + 1 file changed, 1 insertion(+)
package/python-enum34/python-enum34.mk +1 -0
@@ -12,3 +12,4 @@ PYTHON_ENUM34_LICENSE = BSD-3-Clause PYTHON_ENUM34_LICENSE_FILES = enum/LICENSE $(eval $(python-package)) +$(eval $(host-python-package))
Signature · 1 line
1.9.1
PATCH 2/2 package/setools: HOST_ depend on host-python-enum
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.
--- package/setools/setools.mk | 1 + 1 file changed, 1 insertion(+)
package/setools/setools.mk +1 -0
@@ -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
Signature · 1 line
1.9.1
PATCH 1/2 package/python-enum34: enable host build
In reply to Matt WeberHello,
Quoted 7 lines · Matt Weber
This is initially used by the setools package to do offline policy analysis using host tools.
Signed-off-by Matthew Weber <[email protected]>--- package/python-enum34/python-enum34.mk | 1 + 1 file changed, 1 insertion(+)
Both applied to master. Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com