Skip to contentSkip to conversation

targetcli-fb: allow to build with Python 3

PATCH New Christophe Vu-Brugier 2 participants 2 messages Oct 27, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 targetcli-fb: allow to build with Python 3

---
 package/python-configshell-fb/Config.in | 5 +++--
 package/python-rtslib-fb/Config.in      | 2 +-
 package/targetcli-fb/Config.in          | 6 +++---
 3 files changed, 7 insertions(+), 6 deletions(-)
package/python-configshell-fb/Config.in +3 -2
index 05de585..fb96763 100644
@@ -1,8 +1,9 @@
 config BR2_PACKAGE_PYTHON_CONFIGSHELL_FB
 	bool "python-configshell-fb"
-	depends on BR2_PACKAGE_PYTHON
+	depends on BR2_PACKAGE_PYTHON || BR2_PACKAGE_PYTHON3
 	select BR2_PACKAGE_PYTHON_PYPARSING
-	select BR2_PACKAGE_PYTHON_READLINE
+	select BR2_PACKAGE_PYTHON3_READLINE if BR2_PACKAGE_PYTHON3
+	select BR2_PACKAGE_PYTHON_READLINE if BR2_PACKAGE_PYTHON
 	select BR2_PACKAGE_PYTHON_URWID
 	help
 	  configshell-fb is a Python library that provides a framework
package/python-rtslib-fb/Config.in +1 -1
index b2aebcf..119b63b 100644
@@ -1,6 +1,6 @@
 config BR2_PACKAGE_PYTHON_RTSLIB_FB
 	bool "python-rtslib-fb"
-	depends on BR2_PACKAGE_PYTHON
+	depends on BR2_PACKAGE_PYTHON || BR2_PACKAGE_PYTHON3
 	help
 	  rtslib-fb is an object-based Python library for configuring
 	  the LIO generic SCSI target, present in 3.x Linux kernel
package/targetcli-fb/Config.in +3 -3
index dcc6a54..ee241ef 100644
@@ -1,9 +1,9 @@
-comment "targetcli-fb depends on python"
-	depends on !BR2_PACKAGE_PYTHON
+comment "targetcli-fb depends on Python"
+	depends on !BR2_PACKAGE_PYTHON && !BR2_PACKAGE_PYTHON3
 
 config BR2_PACKAGE_TARGETCLI_FB
 	bool "targetcli-fb"
-	depends on BR2_PACKAGE_PYTHON
+	depends on BR2_PACKAGE_PYTHON || BR2_PACKAGE_PYTHON3
 	select BR2_PACKAGE_PYTHON_CONFIGSHELL_FB
 	select BR2_PACKAGE_PYTHON_RTSLIB_FB
 	help
Signature · 1 line
2.1.1
#1 lore raw

PATCH 1/1 targetcli-fb: allow to build with Python 3

Dear Christophe Vu-Brugier,

Quoted 6 lines · Christophe Vu-Brugier
---
 package/python-configshell-fb/Config.in | 5 +++--
 package/python-rtslib-fb/Config.in      | 2 +-
 package/targetcli-fb/Config.in          | 6 +++---
 3 files changed, 7 insertions(+), 6 deletions(-)

Applied, thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com