Skip to contentSkip to conversation

package/python-enum34: enable host build

PATCH New Matt Weber 2 participants 3 messages Sep 28, 2018 – Oct 9, 2018

lore
Share & tools
lore

Matt Weber

author
#0 lore raw

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
index c612cb6..09d1143 100644
@@ -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
author
#1 lore raw

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
index 6748c95..c152e54 100644
@@ -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
#2 lore raw

PATCH 1/2 package/python-enum34: enable host build

In reply to Matt Weber

Hello,

Quoted 7 lines · Matt Weber

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(+)

Both applied to master. Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com