All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v2 0/5] targetcli-fb: new package
@ 2014-09-18 10:00 Christophe Vu-Brugier
  2014-09-18 10:00 ` [Buildroot] [PATCH v2 1/5] python, python3: add patch to prevent distutils from adjusting the shebang Christophe Vu-Brugier
                   ` (4 more replies)
  0 siblings, 5 replies; 11+ messages in thread
From: Christophe Vu-Brugier @ 2014-09-18 10:00 UTC (permalink / raw)
  To: buildroot

This is version 2 of my patch serie that adds targetcli-fb to
Buildroot. It fixes issues spotted by Thomas and Jerzy.

Changes v1 -> v2:
 - rename python-rtslib.mk to python-rtslib-fb.mk (as suggested by Jerzy)
 - Merge "targetcli-fb: add sysv initscript" (as suggested by Thomas)
 - Use TARGETCLI_FB_INSTALL_INIT_SYSV (as suggested by Thomas)
 - Describe the purpose of creating "/etc/target/" (as suggested by Thomas)

Christophe Vu-Brugier (5):
  python, python3: add patch to prevent distutils from adjusting the
    shebang
  python-urwid: new package
  python-rtslib-fb: new package
  python-configshell-fb: new package
  targetcli-fb: new package

 package/Config.in                                  |  4 ++
 package/python-configshell-fb/Config.in            | 11 ++++++
 .../python-configshell-fb/python-configshell-fb.mk | 14 +++++++
 package/python-rtslib-fb/Config.in                 |  9 +++++
 package/python-rtslib-fb/python-rtslib-fb.mk       | 13 ++++++
 package/python-urwid/Config.in                     |  7 ++++
 package/python-urwid/python-urwid.mk               | 14 +++++++
 ...017-distutils-scripts-dont-adjust-shebang.patch | 25 ++++++++++++
 ...015-distutils-scripts-dont-adjust-shebang.patch | 25 ++++++++++++
 package/targetcli-fb/Config.in                     | 14 +++++++
 package/targetcli-fb/S50target                     | 46 ++++++++++++++++++++++
 package/targetcli-fb/targetcli-fb.mk               | 26 ++++++++++++
 12 files changed, 208 insertions(+)
 create mode 100644 package/python-configshell-fb/Config.in
 create mode 100644 package/python-configshell-fb/python-configshell-fb.mk
 create mode 100644 package/python-rtslib-fb/Config.in
 create mode 100644 package/python-rtslib-fb/python-rtslib-fb.mk
 create mode 100644 package/python-urwid/Config.in
 create mode 100644 package/python-urwid/python-urwid.mk
 create mode 100644 package/python/python-017-distutils-scripts-dont-adjust-shebang.patch
 create mode 100644 package/python3/python3-015-distutils-scripts-dont-adjust-shebang.patch
 create mode 100644 package/targetcli-fb/Config.in
 create mode 100755 package/targetcli-fb/S50target
 create mode 100644 package/targetcli-fb/targetcli-fb.mk

-- 
2.1.0

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Buildroot] [PATCH v2 1/5] python, python3: add patch to prevent distutils from adjusting the shebang
  2014-09-18 10:00 [Buildroot] [PATCH v2 0/5] targetcli-fb: new package Christophe Vu-Brugier
@ 2014-09-18 10:00 ` Christophe Vu-Brugier
  2014-09-21 17:47   ` Thomas Petazzoni
  2014-09-18 10:00 ` [Buildroot] [PATCH v2 2/5] python-urwid: new package Christophe Vu-Brugier
                   ` (3 subsequent siblings)
  4 siblings, 1 reply; 11+ messages in thread
From: Christophe Vu-Brugier @ 2014-09-18 10:00 UTC (permalink / raw)
  To: buildroot

The copy_scripts() method in distutils copies the scripts listed
in the setup file and adjusts the first line to refer to the
current Python interpreter. When cross-compiling, this means that
the adjusted shebang refers to the host Python interpreter.

As a consequence, we add a patch for python and python3 that
force copy_scripts() to preserve the shebang when
cross-compilation is detected.

Signed-off-by: Christophe Vu-Brugier <cvubrugier@fastmail.fm>
---
 ...017-distutils-scripts-dont-adjust-shebang.patch | 25 ++++++++++++++++++++++
 ...015-distutils-scripts-dont-adjust-shebang.patch | 25 ++++++++++++++++++++++
 2 files changed, 50 insertions(+)
 create mode 100644 package/python/python-017-distutils-scripts-dont-adjust-shebang.patch
 create mode 100644 package/python3/python3-015-distutils-scripts-dont-adjust-shebang.patch

diff --git a/package/python/python-017-distutils-scripts-dont-adjust-shebang.patch b/package/python/python-017-distutils-scripts-dont-adjust-shebang.patch
new file mode 100644
index 0000000..da4dc36
--- /dev/null
+++ b/package/python/python-017-distutils-scripts-dont-adjust-shebang.patch
@@ -0,0 +1,25 @@
+Do not adjust the shebang of Python scripts for cross-compilation
+
+The copy_scripts() method in distutils copies the scripts listed in
+the setup file and adjusts the first line to refer to the current
+Python interpreter. When cross-compiling, this means that the adjusted
+shebang refers to the host Python interpreter.
+
+This patch modifies copy_scripts() to preserve the shebang when
+cross-compilation is detected.
+
+Signed-off-by: Christophe Vu-Brugier <cvubrugier@fastmail.fm>
+
+Index: b/Lib/distutils/command/build_scripts.py
+===================================================================
+--- a/Lib/distutils/command/build_scripts.py
++++ b/Lib/distutils/command/build_scripts.py
+@@ -89,7 +89,7 @@
+                     adjust = 1
+                     post_interp = match.group(1) or ''
+ 
+-            if adjust:
++            if adjust and not '_python_sysroot' in os.environ:
+                 log.info("copying and adjusting %s -> %s", script,
+                          self.build_dir)
+                 if not self.dry_run:
diff --git a/package/python3/python3-015-distutils-scripts-dont-adjust-shebang.patch b/package/python3/python3-015-distutils-scripts-dont-adjust-shebang.patch
new file mode 100644
index 0000000..ed2f193
--- /dev/null
+++ b/package/python3/python3-015-distutils-scripts-dont-adjust-shebang.patch
@@ -0,0 +1,25 @@
+Do not adjust the shebang of Python scripts for cross-compilation
+
+The copy_scripts() method in distutils copies the scripts listed in
+the setup file and adjusts the first line to refer to the current
+Python interpreter. When cross-compiling, this means that the adjusted
+shebang refers to the host Python interpreter.
+
+This patch modifies copy_scripts() to preserve the shebang when
+cross-compilation is detected.
+
+Signed-off-by: Christophe Vu-Brugier <cvubrugier@fastmail.fm>
+
+Index: b/Lib/distutils/command/build_scripts.py
+===================================================================
+--- a/Lib/distutils/command/build_scripts.py
++++ b/Lib/distutils/command/build_scripts.py
+@@ -91,7 +91,7 @@
+                     adjust = True
+                     post_interp = match.group(1) or b''
+ 
+-            if adjust:
++            if adjust and not '_python_sysroot' in os.environ:
+                 log.info("copying and adjusting %s -> %s", script,
+                          self.build_dir)
+                 updated_files.append(outfile)
-- 
2.1.0

^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [Buildroot] [PATCH v2 2/5] python-urwid: new package
  2014-09-18 10:00 [Buildroot] [PATCH v2 0/5] targetcli-fb: new package Christophe Vu-Brugier
  2014-09-18 10:00 ` [Buildroot] [PATCH v2 1/5] python, python3: add patch to prevent distutils from adjusting the shebang Christophe Vu-Brugier
@ 2014-09-18 10:00 ` Christophe Vu-Brugier
  2014-09-21 17:43   ` Thomas Petazzoni
  2014-09-18 10:00 ` [Buildroot] [PATCH v2 3/5] python-rtslib-fb: " Christophe Vu-Brugier
                   ` (2 subsequent siblings)
  4 siblings, 1 reply; 11+ messages in thread
From: Christophe Vu-Brugier @ 2014-09-18 10:00 UTC (permalink / raw)
  To: buildroot

Urwid is a console user interface library for Python.

Signed-off-by: Christophe Vu-Brugier <cvubrugier@fastmail.fm>
Reviewed-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
 package/Config.in                    |  1 +
 package/python-urwid/Config.in       |  7 +++++++
 package/python-urwid/python-urwid.mk | 14 ++++++++++++++
 3 files changed, 22 insertions(+)
 create mode 100644 package/python-urwid/Config.in
 create mode 100644 package/python-urwid/python-urwid.mk

diff --git a/package/Config.in b/package/Config.in
index 73ba86a..17930ea 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -508,6 +508,7 @@ menu "external python modules"
 	source "package/python-simplejson/Config.in"
 	source "package/python-thrift/Config.in"
 	source "package/python-tornado/Config.in"
+	source "package/python-urwid/Config.in"
 	source "package/python-versiontools/Config.in"
 endmenu
 endif
diff --git a/package/python-urwid/Config.in b/package/python-urwid/Config.in
new file mode 100644
index 0000000..92f7d53
--- /dev/null
+++ b/package/python-urwid/Config.in
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_PYTHON_URWID
+	bool "python-urwid"
+	depends on BR2_PACKAGE_PYTHON || BR2_PACKAGE_PYTHON3
+	help
+	  Urwid is a console user interface library for Python
+
+	  http://urwid.org/
diff --git a/package/python-urwid/python-urwid.mk b/package/python-urwid/python-urwid.mk
new file mode 100644
index 0000000..4f1be46
--- /dev/null
+++ b/package/python-urwid/python-urwid.mk
@@ -0,0 +1,14 @@
+################################################################################
+#
+# python-urwid
+#
+################################################################################
+
+PYTHON_URWID_VERSION = 1.2.1
+PYTHON_URWID_SOURCE = urwid-$(PYTHON_URWID_VERSION).tar.gz
+PYTHON_URWID_SITE = https://pypi.python.org/packages/source/u/urwid
+PYTHON_URWID_LICENSE = LGPLv2.1+
+PYTHON_URWID_LICENSE_FILES = COPYING
+PYTHON_URWID_SETUP_TYPE = setuptools
+
+$(eval $(python-package))
-- 
2.1.0

^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [Buildroot] [PATCH v2 3/5] python-rtslib-fb: new package
  2014-09-18 10:00 [Buildroot] [PATCH v2 0/5] targetcli-fb: new package Christophe Vu-Brugier
  2014-09-18 10:00 ` [Buildroot] [PATCH v2 1/5] python, python3: add patch to prevent distutils from adjusting the shebang Christophe Vu-Brugier
  2014-09-18 10:00 ` [Buildroot] [PATCH v2 2/5] python-urwid: new package Christophe Vu-Brugier
@ 2014-09-18 10:00 ` Christophe Vu-Brugier
  2014-09-21 17:44   ` Thomas Petazzoni
  2014-09-18 10:00 ` [Buildroot] [PATCH v2 4/5] python-configshell-fb: " Christophe Vu-Brugier
  2014-09-18 10:00 ` [Buildroot] [PATCH v2 5/5] targetcli-fb: " Christophe Vu-Brugier
  4 siblings, 1 reply; 11+ messages in thread
From: Christophe Vu-Brugier @ 2014-09-18 10:00 UTC (permalink / raw)
  To: buildroot

rtslib-fb is an object-based Python library for configuring the
LIO generic SCSI target, present in 3.x Linux kernel versions.

Signed-off-by: Christophe Vu-Brugier <cvubrugier@fastmail.fm>
Reviewed-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
Changes v1 -> v2:
 - rename python-rtslib.mk to python-rtslib-fb.mk (as suggested by Jerzy)

Signed-off-by: Christophe Vu-Brugier <cvubrugier@fastmail.fm>
---
 package/Config.in                            |  1 +
 package/python-rtslib-fb/Config.in           |  9 +++++++++
 package/python-rtslib-fb/python-rtslib-fb.mk | 13 +++++++++++++
 3 files changed, 23 insertions(+)
 create mode 100644 package/python-rtslib-fb/Config.in
 create mode 100644 package/python-rtslib-fb/python-rtslib-fb.mk

diff --git a/package/Config.in b/package/Config.in
index 17930ea..7447036 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -503,6 +503,7 @@ menu "external python modules"
 	source "package/python-pysnmp-mibs/Config.in"
 	source "package/python-pyusb/Config.in"
 	source "package/python-pyzmq/Config.in"
+	source "package/python-rtslib-fb/Config.in"
 	source "package/python-serial/Config.in"
 	source "package/python-setuptools/Config.in"
 	source "package/python-simplejson/Config.in"
diff --git a/package/python-rtslib-fb/Config.in b/package/python-rtslib-fb/Config.in
new file mode 100644
index 0000000..b2aebcf
--- /dev/null
+++ b/package/python-rtslib-fb/Config.in
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_PYTHON_RTSLIB_FB
+	bool "python-rtslib-fb"
+	depends on BR2_PACKAGE_PYTHON
+	help
+	  rtslib-fb is an object-based Python library for configuring
+	  the LIO generic SCSI target, present in 3.x Linux kernel
+	  versions.
+
+	  https://github.com/agrover/rtslib-fb
diff --git a/package/python-rtslib-fb/python-rtslib-fb.mk b/package/python-rtslib-fb/python-rtslib-fb.mk
new file mode 100644
index 0000000..70b0257
--- /dev/null
+++ b/package/python-rtslib-fb/python-rtslib-fb.mk
@@ -0,0 +1,13 @@
+################################################################################
+#
+# python-rtslib-fb
+#
+################################################################################
+
+PYTHON_RTSLIB_FB_VERSION = v2.1.fb49
+PYTHON_RTSLIB_FB_SITE = $(call github,agrover,rtslib-fb,$(PYTHON_RTSLIB_FB_VERSION))
+PYTHON_RTSLIB_FB_LICENSE = Apache-2.0
+PYTHON_RTSLIB_FB_LICENSE_FILES = COPYING
+PYTHON_RTSLIB_FB_SETUP_TYPE = setuptools
+
+$(eval $(python-package))
-- 
2.1.0

^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [Buildroot] [PATCH v2 4/5] python-configshell-fb: new package
  2014-09-18 10:00 [Buildroot] [PATCH v2 0/5] targetcli-fb: new package Christophe Vu-Brugier
                   ` (2 preceding siblings ...)
  2014-09-18 10:00 ` [Buildroot] [PATCH v2 3/5] python-rtslib-fb: " Christophe Vu-Brugier
@ 2014-09-18 10:00 ` Christophe Vu-Brugier
  2014-09-21 17:46   ` Thomas Petazzoni
  2014-09-18 10:00 ` [Buildroot] [PATCH v2 5/5] targetcli-fb: " Christophe Vu-Brugier
  4 siblings, 1 reply; 11+ messages in thread
From: Christophe Vu-Brugier @ 2014-09-18 10:00 UTC (permalink / raw)
  To: buildroot

configshell-fb is a Python library that provides a framework for
building simple but nice CLI-based applications.

Signed-off-by: Christophe Vu-Brugier <cvubrugier@fastmail.fm>
Reviewed-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
 package/Config.in                                      |  1 +
 package/python-configshell-fb/Config.in                | 11 +++++++++++
 package/python-configshell-fb/python-configshell-fb.mk | 14 ++++++++++++++
 3 files changed, 26 insertions(+)
 create mode 100644 package/python-configshell-fb/Config.in
 create mode 100644 package/python-configshell-fb/python-configshell-fb.mk

diff --git a/package/Config.in b/package/Config.in
index 7447036..096d8c6 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -473,6 +473,7 @@ menu "external python modules"
 	source "package/python-bottle/Config.in"
 	source "package/python-cffi/Config.in"
 	source "package/python-configobj/Config.in"
+	source "package/python-configshell-fb/Config.in"
 	source "package/python-crc16/Config.in"
 	source "package/python-daemon/Config.in"
 	source "package/python-dialog/Config.in"
diff --git a/package/python-configshell-fb/Config.in b/package/python-configshell-fb/Config.in
new file mode 100644
index 0000000..05de585
--- /dev/null
+++ b/package/python-configshell-fb/Config.in
@@ -0,0 +1,11 @@
+config BR2_PACKAGE_PYTHON_CONFIGSHELL_FB
+	bool "python-configshell-fb"
+	depends on BR2_PACKAGE_PYTHON
+	select BR2_PACKAGE_PYTHON_PYPARSING
+	select BR2_PACKAGE_PYTHON_READLINE
+	select BR2_PACKAGE_PYTHON_URWID
+	help
+	  configshell-fb is a Python library that provides a framework
+	  for building simple but nice CLI-based applications.
+
+	  https://github.com/agrover/configshell-fb
diff --git a/package/python-configshell-fb/python-configshell-fb.mk b/package/python-configshell-fb/python-configshell-fb.mk
new file mode 100644
index 0000000..64b27fe
--- /dev/null
+++ b/package/python-configshell-fb/python-configshell-fb.mk
@@ -0,0 +1,14 @@
+################################################################################
+#
+# python-configshell-fb
+#
+################################################################################
+
+PYTHON_CONFIGSHELL_FB_VERSION = v1.1.fb14
+PYTHON_CONFIGSHELL_FB_SITE = $(call github,agrover,configshell-fb,$(PYTHON_CONFIGSHELL_FB_VERSION))
+PYTHON_CONFIGSHELL_FB_LICENSE = Apache-2.0
+PYTHON_CONFIGSHELL_FB_LICENSE_FILES = COPYING
+PYTHON_CONFIGSHELL_FB_SETUP_TYPE = setuptools
+PYTHON_CONFIGSHELL_FB_DEPENDENCIES = python-pyparsing python-urwid
+
+$(eval $(python-package))
-- 
2.1.0

^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [Buildroot] [PATCH v2 5/5] targetcli-fb: new package
  2014-09-18 10:00 [Buildroot] [PATCH v2 0/5] targetcli-fb: new package Christophe Vu-Brugier
                   ` (3 preceding siblings ...)
  2014-09-18 10:00 ` [Buildroot] [PATCH v2 4/5] python-configshell-fb: " Christophe Vu-Brugier
@ 2014-09-18 10:00 ` Christophe Vu-Brugier
  2014-09-21 17:47   ` Thomas Petazzoni
  4 siblings, 1 reply; 11+ messages in thread
From: Christophe Vu-Brugier @ 2014-09-18 10:00 UTC (permalink / raw)
  To: buildroot

targetcli-fb is a command-line interface for configuring the LIO
generic SCSI target, present in 3.x Linux kernel versions.

Signed-off-by: Christophe Vu-Brugier <cvubrugier@fastmail.fm>
---
Changes v1 -> v2:
 - Merge "targetcli-fb: add sysv initscript" (as suggested by Thomas)
 - Use TARGETCLI_FB_INSTALL_INIT_SYSV (as suggested by Thomas)
 - Describe the purpose of creating "/etc/target/" (as suggested by Thomas)

Signed-off-by: Christophe Vu-Brugier <cvubrugier@fastmail.fm>
---
 package/Config.in                    |  1 +
 package/targetcli-fb/Config.in       | 14 +++++++++++
 package/targetcli-fb/S50target       | 46 ++++++++++++++++++++++++++++++++++++
 package/targetcli-fb/targetcli-fb.mk | 26 ++++++++++++++++++++
 4 files changed, 87 insertions(+)
 create mode 100644 package/targetcli-fb/Config.in
 create mode 100755 package/targetcli-fb/S50target
 create mode 100644 package/targetcli-fb/targetcli-fb.mk

diff --git a/package/Config.in b/package/Config.in
index 096d8c6..b10225b 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -364,6 +364,7 @@ endif
 	source "package/sunxi-mali/Config.in"
 	source "package/sunxi-mali-prop/Config.in"
 	source "package/sysstat/Config.in"
+	source "package/targetcli-fb/Config.in"
 	source "package/ti-gfx/Config.in"
 	source "package/ti-uim/Config.in"
 	source "package/ti-utils/Config.in"
diff --git a/package/targetcli-fb/Config.in b/package/targetcli-fb/Config.in
new file mode 100644
index 0000000..dcc6a54
--- /dev/null
+++ b/package/targetcli-fb/Config.in
@@ -0,0 +1,14 @@
+comment "targetcli-fb depends on python"
+	depends on !BR2_PACKAGE_PYTHON
+
+config BR2_PACKAGE_TARGETCLI_FB
+	bool "targetcli-fb"
+	depends on BR2_PACKAGE_PYTHON
+	select BR2_PACKAGE_PYTHON_CONFIGSHELL_FB
+	select BR2_PACKAGE_PYTHON_RTSLIB_FB
+	help
+	  targetcli-fb is a command-line interface for configuring the
+	  LIO generic SCSI target, present in 3.x Linux kernel
+	  versions.
+
+	  https://github.com/agrover/targetcli-fb
diff --git a/package/targetcli-fb/S50target b/package/targetcli-fb/S50target
new file mode 100755
index 0000000..88290e4
--- /dev/null
+++ b/package/targetcli-fb/S50target
@@ -0,0 +1,46 @@
+#!/bin/sh
+#
+# Restore / clear the Linux "SCSI target" driver configuration with `targetctl`
+#
+
+start() {
+	local ret
+
+	echo -n "Restoring target configuration: "
+	/usr/bin/targetctl restore >/dev/null 2>&1
+	ret=$?
+	echo "done"
+
+	return $ret
+}
+
+stop() {
+	local ret
+
+	echo -n "Clearing target configuration: "
+	/usr/bin/targetctl clear >/dev/null 2>&1
+	ret=$?
+	echo "done"
+
+	return $ret
+}
+
+restart() {
+	stop
+	start
+}
+
+case "$1" in
+	start)
+		start
+		;;
+	stop)
+		stop
+		;;
+	restart)
+		restart
+		;;
+	*)
+		echo "Usage: $0 {start|stop|restart}"
+		exit 1
+esac
diff --git a/package/targetcli-fb/targetcli-fb.mk b/package/targetcli-fb/targetcli-fb.mk
new file mode 100644
index 0000000..1faad07
--- /dev/null
+++ b/package/targetcli-fb/targetcli-fb.mk
@@ -0,0 +1,26 @@
+################################################################################
+#
+# targetcli-fb
+#
+################################################################################
+
+TARGETCLI_FB_VERSION = v2.1.fb36
+TARGETCLI_FB_SITE = $(call github,agrover,targetcli-fb,$(TARGETCLI_FB_VERSION))
+TARGETCLI_FB_LICENSE = Apache-2.0
+TARGETCLI_FB_LICENSE_FILES = COPYING
+TARGETCLI_FB_SETUP_TYPE = setuptools
+TARGETCLI_FB_DEPENDENCIES = python-configshell-fb python-rtslib-fb
+
+define TARGETCLI_FB_INSTALL_INIT_SYSV
+	$(INSTALL) -m 0755 -D package/targetcli-fb/S50target $(TARGET_DIR)/etc/init.d/S50target
+endef
+
+# Targetcli stores its configuration in /etc/target/saveconfig.json
+# and complains if the /etc/target/ directory does not exist.
+define TARGETCLI_FB_INSTALL_CONF_DIR
+	$(INSTALL) -m 0755 -d $(TARGET_DIR)/etc/target
+endef
+
+TARGETCLI_FB_POST_INSTALL_TARGET_HOOKS += TARGETCLI_FB_INSTALL_CONF_DIR
+
+$(eval $(python-package))
-- 
2.1.0

^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [Buildroot] [PATCH v2 2/5] python-urwid: new package
  2014-09-18 10:00 ` [Buildroot] [PATCH v2 2/5] python-urwid: new package Christophe Vu-Brugier
@ 2014-09-21 17:43   ` Thomas Petazzoni
  0 siblings, 0 replies; 11+ messages in thread
From: Thomas Petazzoni @ 2014-09-21 17:43 UTC (permalink / raw)
  To: buildroot

Dear Christophe Vu-Brugier,

On Thu, 18 Sep 2014 12:00:52 +0200, Christophe Vu-Brugier wrote:
> Urwid is a console user interface library for Python.
> 
> Signed-off-by: Christophe Vu-Brugier <cvubrugier@fastmail.fm>
> Reviewed-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> ---
>  package/Config.in                    |  1 +
>  package/python-urwid/Config.in       |  7 +++++++
>  package/python-urwid/python-urwid.mk | 14 ++++++++++++++
>  3 files changed, 22 insertions(+)
>  create mode 100644 package/python-urwid/Config.in
>  create mode 100644 package/python-urwid/python-urwid.mk

Applied, thanks.

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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Buildroot] [PATCH v2 3/5] python-rtslib-fb: new package
  2014-09-18 10:00 ` [Buildroot] [PATCH v2 3/5] python-rtslib-fb: " Christophe Vu-Brugier
@ 2014-09-21 17:44   ` Thomas Petazzoni
  0 siblings, 0 replies; 11+ messages in thread
From: Thomas Petazzoni @ 2014-09-21 17:44 UTC (permalink / raw)
  To: buildroot

Dear Christophe Vu-Brugier,

On Thu, 18 Sep 2014 12:00:53 +0200, Christophe Vu-Brugier wrote:
> rtslib-fb is an object-based Python library for configuring the
> LIO generic SCSI target, present in 3.x Linux kernel versions.
> 
> Signed-off-by: Christophe Vu-Brugier <cvubrugier@fastmail.fm>
> Reviewed-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> ---
> Changes v1 -> v2:
>  - rename python-rtslib.mk to python-rtslib-fb.mk (as suggested by Jerzy)
> 
> Signed-off-by: Christophe Vu-Brugier <cvubrugier@fastmail.fm>
> ---
>  package/Config.in                            |  1 +
>  package/python-rtslib-fb/Config.in           |  9 +++++++++
>  package/python-rtslib-fb/python-rtslib-fb.mk | 13 +++++++++++++
>  3 files changed, 23 insertions(+)
>  create mode 100644 package/python-rtslib-fb/Config.in
>  create mode 100644 package/python-rtslib-fb/python-rtslib-fb.mk

Applied, thanks.

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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Buildroot] [PATCH v2 4/5] python-configshell-fb: new package
  2014-09-18 10:00 ` [Buildroot] [PATCH v2 4/5] python-configshell-fb: " Christophe Vu-Brugier
@ 2014-09-21 17:46   ` Thomas Petazzoni
  0 siblings, 0 replies; 11+ messages in thread
From: Thomas Petazzoni @ 2014-09-21 17:46 UTC (permalink / raw)
  To: buildroot

Dear Christophe Vu-Brugier,

On Thu, 18 Sep 2014 12:00:54 +0200, Christophe Vu-Brugier wrote:
> configshell-fb is a Python library that provides a framework for
> building simple but nice CLI-based applications.
> 
> Signed-off-by: Christophe Vu-Brugier <cvubrugier@fastmail.fm>
> Reviewed-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> ---
>  package/Config.in                                      |  1 +
>  package/python-configshell-fb/Config.in                | 11 +++++++++++
>  package/python-configshell-fb/python-configshell-fb.mk | 14 ++++++++++++++
>  3 files changed, 26 insertions(+)
>  create mode 100644 package/python-configshell-fb/Config.in
>  create mode 100644 package/python-configshell-fb/python-configshell-fb.mk

Applied, thanks.

I have prepared some patches to fix the PEP 3147 issues with Python 3,
I hope to send them soon. If you have a bit of time to test them with
those new packages, and maybe re-enable them for Python 3, it would be
great.

Thanks!

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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Buildroot] [PATCH v2 5/5] targetcli-fb: new package
  2014-09-18 10:00 ` [Buildroot] [PATCH v2 5/5] targetcli-fb: " Christophe Vu-Brugier
@ 2014-09-21 17:47   ` Thomas Petazzoni
  0 siblings, 0 replies; 11+ messages in thread
From: Thomas Petazzoni @ 2014-09-21 17:47 UTC (permalink / raw)
  To: buildroot

Dear Christophe Vu-Brugier,

On Thu, 18 Sep 2014 12:00:55 +0200, Christophe Vu-Brugier wrote:
> targetcli-fb is a command-line interface for configuring the LIO
> generic SCSI target, present in 3.x Linux kernel versions.
> 
> Signed-off-by: Christophe Vu-Brugier <cvubrugier@fastmail.fm>
> ---
> Changes v1 -> v2:
>  - Merge "targetcli-fb: add sysv initscript" (as suggested by Thomas)
>  - Use TARGETCLI_FB_INSTALL_INIT_SYSV (as suggested by Thomas)
>  - Describe the purpose of creating "/etc/target/" (as suggested by Thomas)
> 
> Signed-off-by: Christophe Vu-Brugier <cvubrugier@fastmail.fm>
> ---
>  package/Config.in                    |  1 +
>  package/targetcli-fb/Config.in       | 14 +++++++++++
>  package/targetcli-fb/S50target       | 46 ++++++++++++++++++++++++++++++++++++
>  package/targetcli-fb/targetcli-fb.mk | 26 ++++++++++++++++++++
>  4 files changed, 87 insertions(+)
>  create mode 100644 package/targetcli-fb/Config.in
>  create mode 100755 package/targetcli-fb/S50target
>  create mode 100644 package/targetcli-fb/targetcli-fb.mk

Applied, thanks.

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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Buildroot] [PATCH v2 1/5] python, python3: add patch to prevent distutils from adjusting the shebang
  2014-09-18 10:00 ` [Buildroot] [PATCH v2 1/5] python, python3: add patch to prevent distutils from adjusting the shebang Christophe Vu-Brugier
@ 2014-09-21 17:47   ` Thomas Petazzoni
  0 siblings, 0 replies; 11+ messages in thread
From: Thomas Petazzoni @ 2014-09-21 17:47 UTC (permalink / raw)
  To: buildroot

Dear Christophe Vu-Brugier,

On Thu, 18 Sep 2014 12:00:51 +0200, Christophe Vu-Brugier wrote:
> The copy_scripts() method in distutils copies the scripts listed
> in the setup file and adjusts the first line to refer to the
> current Python interpreter. When cross-compiling, this means that
> the adjusted shebang refers to the host Python interpreter.
> 
> As a consequence, we add a patch for python and python3 that
> force copy_scripts() to preserve the shebang when
> cross-compilation is detected.
> 
> Signed-off-by: Christophe Vu-Brugier <cvubrugier@fastmail.fm>
> ---
>  ...017-distutils-scripts-dont-adjust-shebang.patch | 25 ++++++++++++++++++++++
>  ...015-distutils-scripts-dont-adjust-shebang.patch | 25 ++++++++++++++++++++++
>  2 files changed, 50 insertions(+)
>  create mode 100644 package/python/python-017-distutils-scripts-dont-adjust-shebang.patch
>  create mode 100644 package/python3/python3-015-distutils-scripts-dont-adjust-shebang.patch

Applied, thanks.

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

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2014-09-21 17:47 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-18 10:00 [Buildroot] [PATCH v2 0/5] targetcli-fb: new package Christophe Vu-Brugier
2014-09-18 10:00 ` [Buildroot] [PATCH v2 1/5] python, python3: add patch to prevent distutils from adjusting the shebang Christophe Vu-Brugier
2014-09-21 17:47   ` Thomas Petazzoni
2014-09-18 10:00 ` [Buildroot] [PATCH v2 2/5] python-urwid: new package Christophe Vu-Brugier
2014-09-21 17:43   ` Thomas Petazzoni
2014-09-18 10:00 ` [Buildroot] [PATCH v2 3/5] python-rtslib-fb: " Christophe Vu-Brugier
2014-09-21 17:44   ` Thomas Petazzoni
2014-09-18 10:00 ` [Buildroot] [PATCH v2 4/5] python-configshell-fb: " Christophe Vu-Brugier
2014-09-21 17:46   ` Thomas Petazzoni
2014-09-18 10:00 ` [Buildroot] [PATCH v2 5/5] targetcli-fb: " Christophe Vu-Brugier
2014-09-21 17:47   ` Thomas Petazzoni

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.