Skip to contentSkip to conversation

python-vcversioner: new package

PATCH New Fabrice Fontaine 2 participants 6 messages Dec 18, 2016 – Dec 19, 2016

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/3 python-vcversioner: new package

---
Changes v2 -> v3 (after review of Thomas Petazzoni):
- Remove Config.in from python-vcversioner as this is not needed for a host-package
- Remove target variant of python-jsonschema (including Config.in) as this variant is not needed by soletta

Changes v1 -> v2 (after review of Thomas Petazzoni):
- Add python-vcversioner in host-package version as host-python-jsonschema depends on it
- Add python-jsonschema in host-package version
- Retrieve first soletta patch from upstream
- Add a soletta patch to remove multiple targets in the same rule as this is not supported by old versions of make

 package/python-vcversioner/python-vcversioner.hash |  3 +++
 package/python-vcversioner/python-vcversioner.mk   | 13 +++++++++++++
 2 files changed, 16 insertions(+)
 create mode 100644 package/python-vcversioner/python-vcversioner.hash
 create mode 100644 package/python-vcversioner/python-vcversioner.mk
package/python-vcversioner/python-vcversioner.hash new file +3 -0
new file mode 100644
index 0000000..58573a1
@@ -0,0 +1,3 @@
+# md5 from https://pypi.python.org/pypi/vcversioner/json, sha256 locally computed
+md5	aab6ef5e0cf8614a1b1140ed5b7f107d  vcversioner-2.16.0.0.tar.gz
+sha256	dae60c17a479781f44a4010701833f1829140b1eeccd258762a74974aa06e19b  vcversioner-2.16.0.0.tar.gz
package/python-vcversioner/python-vcversioner.mk new file +13 -0
new file mode 100644
index 0000000..8f598f3
@@ -0,0 +1,13 @@
+################################################################################
+#
+# python-vcversioner
+#
+################################################################################
+
+PYTHON_VCVERSIONER_VERSION = 2.16.0.0
+PYTHON_VCVERSIONER_SOURCE = vcversioner-$(PYTHON_VCVERSIONER_VERSION).tar.gz
+PYTHON_VCVERSIONER_SITE = https://pypi.python.org/packages/c5/cc/33162c0a7b28a4d8c83da07bc2b12cee58c120b4a9e8bba31c41c8d35a16
+PYTHON_VCVERSIONER_SETUP_TYPE = setuptools
+PYTHON_VCVERSIONER_LICENSE = ISC License (ISCL)
+
+$(eval $(host-python-package))
Signature · 1 line
2.5.0
#1 lore raw

PATCH v3 2/3 python-jsonschema: new package

---
Changes v2 -> v3 (after review of Thomas Petazzoni):
- Remove Config.in from python-vcversioner as this is not needed for a host-package
- Remove target variant of python-jsonschema (including Config.in) as this variant is not needed by soletta

Changes v1 -> v2 (after review of Thomas Petazzoni):
- Add python-vcversioner in host-package version as host-python-jsonschema depends on it
- Add python-jsonschema in host-package version
- Retrieve first soletta patch from upstream
- Add a soletta patch to remove multiple targets in the same rule as this is not supported by old versions of make

 package/python-jsonschema/python-jsonschema.hash |  3 +++
 package/python-jsonschema/python-jsonschema.mk   | 16 ++++++++++++++++
 2 files changed, 19 insertions(+)
 create mode 100644 package/python-jsonschema/python-jsonschema.hash
 create mode 100644 package/python-jsonschema/python-jsonschema.mk
package/python-jsonschema/python-jsonschema.hash new file +3 -0
new file mode 100644
index 0000000..fc13630
@@ -0,0 +1,3 @@
+# md5 from https://pypi.python.org/pypi/jsonschema/json, sha256 locally computed
+md5	374e848fdb69a3ce8b7e778b47c30640  jsonschema-2.5.1.tar.gz
+sha256	36673ac378feed3daa5956276a829699056523d7961027911f064b52255ead41  jsonschema-2.5.1.tar.gz
package/python-jsonschema/python-jsonschema.mk new file +16 -0
new file mode 100644
index 0000000..647385e
@@ -0,0 +1,16 @@
+################################################################################
+#
+# python-jsonschema
+#
+################################################################################
+
+PYTHON_JSONSCHEMA_VERSION = 2.5.1
+PYTHON_JSONSCHEMA_SOURCE = jsonschema-$(PYTHON_JSONSCHEMA_VERSION).tar.gz
+PYTHON_JSONSCHEMA_SITE = \
+	https://pypi.python.org/packages/58/0d/c816f5ea5adaf1293a1d81d32e4cdfdaf8496973aa5049786d7fdb14e7e7
+PYTHON_JSONSCHEMA_SETUP_TYPE = setuptools
+PYTHON_JSONSCHEMA_LICENSE = MIT
+PYTHON_JSONSCHEMA_LICENSE_FILES = COPYING
+HOST_PYTHON_JSONSCHEMA_DEPENDENCIES = host-python-vcversioner
+
+$(eval $(host-python-package))
Signature · 1 line
2.5.0
#2 lore raw

PATCH v3 3/3 soletta: new package

In reply to Fabrice Fontaine

---
Changes v2 -> v3 (after review of Thomas Petazzoni):
- Remove Config.in from python-vcversioner as this is not needed for a host-package
- Remove target variant of python-jsonschema (including Config.in) as this variant is not needed by soletta

Changes v1 -> v2 (after review of Thomas Petazzoni):
- Add python-vcversioner in host-package version as host-python-jsonschema depends on it
- Add python-jsonschema in host-package version
- Retrieve first soletta patch from upstream
- Add a soletta patch to remove multiple targets in the same rule as this is not supported by old versions of make

 package/Config.in                                  |   1 +
 ...Check-availability-of-nonstandard-locales.patch |  64 ++++++++++
 .../0002-Use-tinydtls-from-buildsystem.patch       | 102 +++++++++++++++
 .../0003-Use-tinycbor-from-buildsystem.patch       | 139 +++++++++++++++++++++
 package/soletta/0004-Fix-tinycbor-API-calls.patch  | 130 +++++++++++++++++++
 .../0005-Remove-warning-when-building-OIC.patch    |  32 +++++
 .../0006-Remove-multiple-targets-in-a-rule.patch   |  36 ++++++
 package/soletta/Config.in                          |  30 +++++
 package/soletta/soletta.hash                       |   4 +
 package/soletta/soletta.mk                         | 120 ++++++++++++++++++
 10 files changed, 658 insertions(+)
 create mode 100644 package/soletta/0001-Check-availability-of-nonstandard-locales.patch
 create mode 100644 package/soletta/0002-Use-tinydtls-from-buildsystem.patch
 create mode 100644 package/soletta/0003-Use-tinycbor-from-buildsystem.patch
 create mode 100644 package/soletta/0004-Fix-tinycbor-API-calls.patch
 create mode 100644 package/soletta/0005-Remove-warning-when-building-OIC.patch
 create mode 100644 package/soletta/0006-Remove-multiple-targets-in-a-rule.patch
 create mode 100644 package/soletta/Config.in
 create mode 100644 package/soletta/soletta.hash
 create mode 100644 package/soletta/soletta.mk
package/Config.in +1 -0
index be0d150..b6b409c 100644
@@ -1366,6 +1366,7 @@ endif
 	source "package/qhull/Config.in"
 	source "package/qlibc/Config.in"
 	source "package/shapelib/Config.in"
+	source "package/soletta/Config.in"
 	source "package/sphinxbase/Config.in"
 	source "package/startup-notification/Config.in"
 	source "package/tinycbor/Config.in"
package/soletta/0001-Check-availability-of-nonstandard-locales.patch new file +64 -0

64 lines not on this page · raw message

package/soletta/0002-Use-tinydtls-from-buildsystem.patch new file +102 -0

102 lines not on this page · raw message

package/soletta/0003-Use-tinycbor-from-buildsystem.patch new file +139 -0

139 lines not on this page · raw message

package/soletta/0004-Fix-tinycbor-API-calls.patch new file +130 -0

130 lines not on this page · raw message

package/soletta/0005-Remove-warning-when-building-OIC.patch new file +32 -0
new file mode 100644
index 0000000..ca7ae76
@@ -0,0 +1,32 @@
+From a0df0c1486811e30d90a624503e99c09964b00dc Mon Sep 17 00:00:00 2001
+From: Fabrice Fontaine <[email protected]>
+Date: Tue, 25 Oct 2016 12:51:24 +0200
+Subject: [PATCH] Remove warning when building OIC
+
+If tinydtls and tinycbor are retrieved from buildsystem, a warning is raised
+as we continue to include build/stage/include which is not created anymore so
+remove this inclusion
+
+Signed-off-by: Fabrice Fontaine <[email protected]>
+---
+ tools/build/Makefile.vars | 4 ----
+ 1 file changed, 4 deletions(-)
+
+diff --git a/tools/build/Makefile.vars b/tools/build/Makefile.vars
+index 7a963f9..bafd222 100644
+--- a/tools/build/Makefile.vars
++++ b/tools/build/Makefile.vars
+@@ -198,10 +198,6 @@ HEADERDIRS += $(addprefix $(top_srcdir),$(KCONFIG_INCLUDE)generated/)
+ HEADERDIRS += $(addprefix $(build_stagedir),lib/common lib/flow)
+ HEADERDIRS += $(build_includedir)
+ 
+-ifeq (y,$(OIC))
+-HEADERDIRS += $(addprefix $(build_stagedir),include/)
+-endif
+-
+ LIB_OUTPUTDIR := $(build_libdir)
+ 
+ SOL_LIB_AR := $(LIB_OUTPUTDIR)libsoletta.a
+-- 
+2.5.0
+
package/soletta/0006-Remove-multiple-targets-in-a-rule.patch new file +36 -0
new file mode 100644
index 0000000..067bf24
@@ -0,0 +1,36 @@
+From be54c738c8c7a7f95308ca2be49a17566e2ea539 Mon Sep 17 00:00:00 2001
+From: Fabrice Fontaine <[email protected]>
+Date: Sun, 18 Dec 2016 12:15:45 +0100
+Subject: [PATCH] Remove multiple targets in a rule
+
+Multiple targets in a single makefile rule is not supported by old
+versions of make so split them in multiple targets
+
+Signed-off-by: Fabrice Fontaine <[email protected]>
+---
+ Makefile.smallos | 9 ++++++---
+ 1 file changed, 6 insertions(+), 3 deletions(-)
+
+diff --git a/Makefile.smallos b/Makefile.smallos
+index 379af73..3093041 100644
+--- a/Makefile.smallos
++++ b/Makefile.smallos
+@@ -50,9 +50,12 @@ soletta_config := $(thisdir)/.config
+ 
+ # Target local variables, so we are able to re-define them for Soletta without
+ # touching the OS build system
+-$(soletta_target) $(soletta_config): private override MAKEFLAGS=""
+-$(soletta_target) $(soletta_config): private export PYTHON=python3
+-$(soletta_target) $(soletta_config): private export BOARD_NAME:=$(BOARD_NAME)
++$(soletta_target): private override MAKEFLAGS=""
++$(soletta_config): private override MAKEFLAGS=""
++$(soletta_target): private export PYTHON=python3
++$(soletta_config): private export PYTHON=python3
++$(soletta_target): private export BOARD_NAME:=$(BOARD_NAME)
++$(soletta_config): private export BOARD_NAME:=$(BOARD_NAME)
+ 
+ $(soletta_target): $(soletta_config)
+ 	@echo "Building Soletta..."
+-- 
+2.5.0
+
package/soletta/Config.in new file +30 -0
new file mode 100644
index 0000000..a9891c0
@@ -0,0 +1,30 @@
+config BR2_PACKAGE_SOLETTA
+	bool "soletta"
+	depends on BR2_USE_MMU # fork
+	# python3 is not really needed except for 4 development scripts, however
+	# if we don't enable it, host-python-jsonschema will be installed for
+	# the default python interpreter which is host-python2. As a result
+	# host-python3 will not find the module in its site-packages directory.
+	depends on !BR2_PACKAGE_PYTHON # python3
+	depends on BR2_USE_WCHAR # python3
+	depends on BR2_TOOLCHAIN_HAS_THREADS # python3
+	depends on !BR2_STATIC_LIBS # python3
+	select BR2_PACKAGE_PYTHON3
+	help
+	  Soletta Project is a framework for making IoT devices. With Soletta
+	  Project's libraries developers can easily write software for devices
+	  that control actuators/sensors and communicate using standard
+	  technologies. It enables adding smartness even on the smallest edge
+	  devices.
+
+	  http://solettaproject.org
+
+comment "soletta needs a toolchain w/ wchar, threads, dynamic library"
+	depends on BR2_USE_MMU
+	depends on !BR2_PACKAGE_PYTHON
+	depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || \
+		BR2_STATIC_LIBS
+
+comment "soletta is not compatible with python"
+	depends on BR2_USE_MMU
+	depends on BR2_PACKAGE_PYTHON
package/soletta/soletta.hash new file +4 -0
new file mode 100644
index 0000000..53552b3
@@ -0,0 +1,4 @@
+# Locally computed:
+sha256	4080d12fde3006216316e954b5e4a001d783f93c5b4d554da5f58c98182270fd	soletta-v1.tar.gz
+sha256	c4d3018933980634333fca5c997736abb207dce76ad1f4cc16a4fdb3e7acb5a6	9af119285a521423646195f04fa4f6f51d0ab644.patch
+sha256	5c9866933428b2c8f7f294d7edec6b41c516b4bbac98e41ce49f13608f87ace1	10a1cadff4bfa82edb7561245786b841310e63b1.patch
package/soletta/soletta.mk new file +120 -0

120 lines not on this page · raw message

Signature · 1 line
2.5.0
#3 lore raw

PATCH v3 3/3 soletta: new package

Hello,

Quoted 1 line · Fabrice Fontaine

I'm sorry, but this still doesn't work with old make versions. I get:

make[1]: Entering directory /home/test/buildroot/output/build/soletta-v1' Makefile.smallos:35: "LDFLAGS not set. This is probably an error" Makefile.smallos:57: *** multiple target patterns. Stop. make[1]: Leaving directory /home/test/buildroot/output/build/soletta-v1'

This is due to the := assignments in the target definitions. If I change:

$(soletta_target): private export BOARD_NAME:=$(BOARD_NAME) $(soletta_config): private export BOARD_NAME:=$(BOARD_NAME)

to

$(soletta_target): private export BOARD_NAME=$(BOARD_NAME) $(soletta_config): private export BOARD_NAME=$(BOARD_NAME)

then a different problem happens: the "private" keyword apparently didn't exist in make 3.81, and therefore is interpreted as being a target, and therefore:

make[1]: Entering directory `/home/test/buildroot/output/build/soletta-v1'
Makefile.smallos:35: "LDFLAGS not set. This is probably an error"
make[1]: *** No rule to make target private', needed by /home/test/buildroot/output/build/soletta-v1/.config'. Stop. make[1]: Leaving directory `/home/test/buildroot/output/build/soletta-v1'

So, really, this package that requires a brand new version of make, and python3, is a bit annoying in terms of build process... Maybe this is something you can work out with upstream?

In the mean time, we cannot apply this, as it will badly fail on our autobuilders, and for many of our users who run fairly old systems.

Thanks,

Thomas

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

PATCH v3 3/3 soletta: new package

Hello

2016-12-19 23:12 GMT+01:00 Thomas Petazzoni <
[email protected]>:

Quoted 32 lines

Hello,

Quoted 1 line · Fabrice Fontaine

I'm sorry, but this still doesn't work with old make versions. I get:

make[1]: Entering directory /home/test/buildroot/output/build/soletta-v1' Makefile.smallos:35: "LDFLAGS not set. This is probably an error" Makefile.smallos:57: *** multiple target patterns. Stop. make[1]: Leaving directory /home/test/buildroot/output/build/soletta-v1'

This is due to the := assignments in the target definitions. If I change:

$(soletta_target): private export BOARD_NAME:=$(BOARD_NAME) $(soletta_config): private export BOARD_NAME:=$(BOARD_NAME)

to

$(soletta_target): private export BOARD_NAME=$(BOARD_NAME) $(soletta_config): private export BOARD_NAME=$(BOARD_NAME)

then a different problem happens: the "private" keyword apparently didn't exist in make 3.81, and therefore is interpreted as being a target, and therefore:

make[1]: Entering directory /home/test/buildroot/output/build/soletta-v1' Makefile.smallos:35: "LDFLAGS not set. This is probably an error" make[1]: *** No rule to make target private', needed by /home/test/buildroot/output/build/soletta-v1/.config'. Stop. make[1]: Leaving directory /home/test/buildroot/output/build/soletta-v1'

Quoted 7 lines

So, really, this package that requires a brand new version of make, and python3, is a bit annoying in terms of build process... Maybe this is something you can work out with upstream?

In the mean time, we cannot apply this, as it will badly fail on our autobuilders, and for many of our users who run fairly old systems.

I perfectly understand your point, thanks a lot for the time you passed on testing these patches.

Quoted 9 lines

Thanks,

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

Best Regards,

Fabrice
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20161219/905acc71/attachment.html>

#5 lore raw

PATCH v3 3/3 soletta: new package

Hello,

Quoted 2 lines · Fabrice Fontaine

I perfectly understand your point, thanks a lot for the time you passed on testing these patches.

Maybe you could set up an older Linux system to use as a build environment to reproduce those failures. If you're using a Debian-based system, it's really easy with debootstrap to create a chroot containing an older Debian version.

Best regards,

Thomas

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