Skip to contentSkip to conversation

package/openzwave: bump to version 1.6

PATCH New Fabrice Fontaine 3 participants 5 messages May 21, 2019 – Aug 2, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 package/openzwave: bump to version 1.6

- Remove all patches (already in version)
- udev is an optional dependency (disabled by default) since
https://github.com/OpenZWave/open-zwave/commit/89d5b3989fc2cfcf4db85ff9ec71e5c930d6fd33
- Add an upstream patch to fix build

---
 .../0001-Fix-compilation-of-MinOZW.patch      | 37 ------------------
 ...ilers-Get-it-Some-need-a-little-help.patch | 26 +++++++++++++
 ...rning-on-wcsdup-implicit-declaration.patch | 29 --------------
 ...3-Ensure-correct-git-repository-path.patch | 29 --------------
 ...-error-in-regards-to-Werror-restrict.patch | 39 -------------------
 package/openzwave/Config.in                   |  5 +--
 package/openzwave/openzwave.hash              |  2 +-
 package/openzwave/openzwave.mk                | 10 ++++-
 8 files changed, 37 insertions(+), 140 deletions(-)
 delete mode 100644 package/openzwave/0001-Fix-compilation-of-MinOZW.patch
 create mode 100644 package/openzwave/0001-Fix-issue-1783-Most-Compilers-Get-it-Some-need-a-little-help.patch
 delete mode 100644 package/openzwave/0002-Fix-warning-on-wcsdup-implicit-declaration.patch
 delete mode 100644 package/openzwave/0003-Ensure-correct-git-repository-path.patch
 delete mode 100644 package/openzwave/0004-Fix-compilation-error-in-regards-to-Werror-restrict.patch
package/openzwave/0001-Fix-compilation-of-MinOZW.patch deleted +0 -37
deleted file mode 100644
index 773672e0ba..0000000000
@@ -1,37 +0,0 @@
-From 599e2a11c6f48dde744012ec45686c08e15f3059 Mon Sep 17 00:00:00 2001
-From: Fabrice Fontaine <[email protected]>
-Date: Mon, 3 Oct 2016 10:35:52 +0200
-Subject: [PATCH] Fix compilation of MinOZW (#991)
-
-LIBDIR was used in cpp/examples/MinOZW/Makefile to add dynamic
-libraries. However, as it was unset by default, the cross-compilation
-could fail if the host had a library such as libnss3.so in /.
-To fix this issue, this patch sets LIBDIR to top_buildir if it is unset
-
-Fixes:
-  http://autobuild.buildroot.net/results/68719fdf1320a69310bada6d3c47654dacdb5898
-
-Signed-off-by: Fabrice Fontaine <[email protected]>
-[Upstream commit: https://github.com/OpenZWave/open-zwave/commit/599e2a11c6f48dde744012ec45686c08e15f3059]
-Signed-off-by: Thomas Petazzoni <[email protected]>
----
- cpp/examples/MinOZW/Makefile | 4 +++-
- 1 file changed, 3 insertions(+), 1 deletion(-)
-
-diff --git a/cpp/examples/MinOZW/Makefile b/cpp/examples/MinOZW/Makefile
-index e575632a3..95d684b77 100644
---- a/cpp/examples/MinOZW/Makefile
-+++ b/cpp/examples/MinOZW/Makefile
-@@ -17,9 +17,11 @@ DEBUG_LDFLAGS	:= -g
- 
- top_srcdir := $(abspath $(dir $(lastword $(MAKEFILE_LIST)))../../../)
- 
-+#where is put the temporary library
-+LIBDIR  	?= $(top_builddir)
- 
- INCLUDES	:= -I $(top_srcdir)/cpp/src -I $(top_srcdir)/cpp/tinyxml/ -I $(top_srcdir)/cpp/hidapi/hidapi/
--LIBS =  $(wildcard $(LIBDIR)/*.so $(LIBDIR)/*.dylib $(top_builddir)/*.so $(top_builddir)/*.dylib $(top_builddir)/cpp/build/*.so $(top_builddir)/cpp/build/*.dylib )
-+LIBS =  $(wildcard $(LIBDIR)/*.so $(LIBDIR)/*.dylib $(top_builddir)/cpp/build/*.so $(top_builddir)/cpp/build/*.dylib )
- LIBSDIR = $(abspath $(dir $(firstword $(LIBS))))
- minozwsrc := $(notdir $(wildcard $(top_srcdir)/cpp/examples/MinOZW/*.cpp))
- VPATH := $(top_srcdir)/cpp/examples/MinOZW
package/openzwave/0001-Fix-issue-1783-Most-Compilers-Get-it-Some-need-a-little-help.patch new file +26 -0
new file mode 100644
index 0000000000..51a06a20f1
@@ -0,0 +1,26 @@
+From 3b029a467e83bc7f0054e4dbba1e77e6eac7bc7f Mon Sep 17 00:00:00 2001
+From: Justin Hammond <[email protected]>
+Date: Sat, 4 May 2019 02:58:15 +0800
+Subject: [PATCH] Fix issue #1783 - Most Compilers Get it, Some need a little
+ help
+
+Signed-off-by: Fabrice Fontaine <[email protected]>
+[Retrieved from
+https://github.com/OpenZWave/open-zwave/commit/3b029a467e83bc7f0054e4dbba1e77e6eac7bc7f]
+---
+ cpp/src/CompatOptionManager.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/cpp/src/CompatOptionManager.cpp b/cpp/src/CompatOptionManager.cpp
+index 90c87b54d..2d9ac435e 100644
+--- a/cpp/src/CompatOptionManager.cpp
++++ b/cpp/src/CompatOptionManager.cpp
+@@ -237,7 +237,7 @@ void CompatOptionManager::WriteXML
+ 	{
+ 		TiXmlElement* valElement = new TiXmlElement( it->first.c_str() );
+ 		char str[32];
+-		TiXmlText * text;
++		TiXmlText * text = NULL;
+ //		std::cout << "Name " << it->first << " Type: " << m_CompatVals[it->second].type << std::endl;
+ 		switch (m_CompatVals[it->second].type) {
+ 			case COMPAT_FLAG_TYPE_BOOL:
package/openzwave/0002-Fix-warning-on-wcsdup-implicit-declaration.patch deleted +0 -29
deleted file mode 100644
index 1fe30e41d8..0000000000
@@ -1,29 +0,0 @@
-From 0878d933223158343af3fe13e03bcd128e8b4cbc Mon Sep 17 00:00:00 2001
-From: Fabrice Fontaine <[email protected]>
-Date: Fri, 22 Apr 2016 17:06:27 +0200
-Subject: [PATCH 1/1] Fix warning on wcsdup implicit declaration
-
-Define __GNU_SOURCE in cpp/hidapi/linux/hid.c (like already done in
-cpp/hidapi/libusb/hid.c) to fix implicit declaration of wcsdup function
-
-Signed-off-by: Fabrice Fontaine <[email protected]>
----
- cpp/hidapi/linux/hid.c | 2 ++
- 1 file changed, 2 insertions(+)
-
-diff --git a/cpp/hidapi/linux/hid.c b/cpp/hidapi/linux/hid.c
-index dbf9b9b..c3eb22b 100644
---- a/cpp/hidapi/linux/hid.c
-+++ b/cpp/hidapi/linux/hid.c
-@@ -21,6 +21,8 @@
-         http://github.com/signal11/hidapi .
- ********************************************************/
- 
-+#define _GNU_SOURCE /* needed for wcsdup() before glibc 2.10 */
-+
- /* C */
- #include <stdio.h>
- #include <string.h>
--- 
-1.9.1
-
package/openzwave/0003-Ensure-correct-git-repository-path.patch deleted +0 -29
deleted file mode 100644
index 6c40ec9d0f..0000000000
@@ -1,29 +0,0 @@
-From 89cdc83307f61422db21cc7965ea294862c128bf Mon Sep 17 00:00:00 2001
-From: Fabrice Fontaine <[email protected]>
-Date: Mon, 30 May 2016 10:37:42 +0200
-Subject: [PATCH 2/2] Ensure correct git repository path
-
-Add "--git-dir ./.git" to ensure the correct git repository path is used (this
-fix a bug when trying to add openzwave to buildroot build system)
-
-Signed-off-by: Fabrice Fontaine <[email protected]>
----
- cpp/build/support.mk | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/cpp/build/support.mk b/cpp/build/support.mk
-index 3f74c7e..f529b25 100644
---- a/cpp/build/support.mk
-+++ b/cpp/build/support.mk
-@@ -29,7 +29,7 @@ GIT		:= $(shell which git)
- ifeq ($(GIT),)
- VERSION_REV ?= 0
- else
--GITVERSION	:= $(shell $(GIT) describe --long --tags --dirty 2>/dev/null | sed s/^v//)
-+GITVERSION	:= $(shell $(GIT) --git-dir ./.git describe --long --tags --dirty 2>/dev/null | sed s/^v//)
- ifeq ($(GITVERSION),)
- GITVERSION	:= $(VERSION_MAJ).$(VERSION_MIN).-1
- VERSION_REV	:= 0
--- 
-2.7.4
-
package/openzwave/0004-Fix-compilation-error-in-regards-to-Werror-restrict.patch deleted +0 -39
deleted file mode 100644
index b3dbd8f88e..0000000000
@@ -1,39 +0,0 @@
-From 14164e9920ce3482747483fc16654c82d3ce445f Mon Sep 17 00:00:00 2001
-From: pipiche38 <[email protected]>
-Date: Fri, 8 Jun 2018 15:13:39 +0200
-Subject: [PATCH] Fix compilation error in regards to -Werror=restrict
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-/usr/share/domoticz/open-zwave/cpp/src/command_classes/DoorLockLogging.cpp: In member function ?virtual bool OpenZWave::DoorLockLogging::HandleMsg(const uint8*, uint32, uint32)?:
-/usr/share/domoticz/open-zwave/cpp/src/command_classes/DoorLockLogging.cpp:312:15: error: passing argument 1 to restrict-qualified parameter aliases with argument 4 [-Werror=restrict]
-      snprintf(usercode, sizeof(usercode), "%s %d", usercode, (int)_data[12+i]);
-               ^~~~~~~~                             ~~~~~~~~
-Signed-off-by: Fabrice Fontaine <[email protected]>
-[Retrieved from:
-https://github.com/OpenZWave/open-zwave/commit/14164e9920ce3482747483fc16654c82d3ce445f]
----
- cpp/src/command_classes/DoorLockLogging.cpp | 5 +++--
- 1 file changed, 3 insertions(+), 2 deletions(-)
-
-diff --git a/cpp/src/command_classes/DoorLockLogging.cpp b/cpp/src/command_classes/DoorLockLogging.cpp
-index c235a8497..418f61b7d 100644
---- a/cpp/src/command_classes/DoorLockLogging.cpp
-+++ b/cpp/src/command_classes/DoorLockLogging.cpp
-@@ -304,12 +304,13 @@ bool DoorLockLogging::HandleMsg
- 			}
- 			uint8 userid = (_data[10]);
- 			uint8 usercodelength = (_data[11]);
--			char usercode[254];
-+			char usercode[254], tmpusercode[254];
- 			snprintf(usercode, sizeof(usercode), "UserCode:");
- 			if (usercodelength > 0)
- 				for (int i = 0; i < usercodelength; i++ )
- 				{
--					snprintf(usercode, sizeof(usercode), "%s %d", usercode, (int)_data[12+i]);
-+					strncpy(tmpusercode, usercode, sizeof(tmpusercode));
-+                                        snprintf(usercode, sizeof(usercode), "%s %d", tmpusercode, (int)_data[12+i]);
- 				}
- 
- 			if (valid) {
package/openzwave/Config.in +2 -3
index 86f45dc7b6..7819a620d2 100644
@@ -2,7 +2,6 @@ config BR2_PACKAGE_OPENZWAVE
 	bool "openzwave"
 	depends on BR2_TOOLCHAIN_HAS_THREADS
 	depends on BR2_INSTALL_LIBSTDCPP
-	depends on BR2_PACKAGE_HAS_UDEV
 	depends on BR2_USE_WCHAR
 	help
 	  Free software library that interfaces with selected Z-Wave
@@ -12,6 +11,6 @@ config BR2_PACKAGE_OPENZWAVE
 
 	  http://www.openzwave.net
 
-comment "openzwave needs udev and a toolchain w/ C++, threads, wchar"
+comment "openzwave needs a toolchain w/ C++, threads, wchar"
 	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || \
-		!BR2_PACKAGE_HAS_UDEV || !BR2_USE_WCHAR
+		!BR2_USE_WCHAR
package/openzwave/openzwave.hash +1 -1
index f3a677bd47..154a6443c0 100644
@@ -1,5 +1,5 @@
 # Locally computed:
-sha256	abfb4c7e7728e86ba374c2e0ef7de912594eb24a8c44935457352df844530238	openzwave-V1.5.tar.gz
+sha256	3b11dffa7608359c8c848451863e0287e17f5f101aeee7c2e89b7dc16f87050b	openzwave-v1.6.tar.gz
 sha256	c8db08727d03bea1213cdb29459b4b489b0d68a0866765df40ff205c6cd7224b	license/license.txt
 sha256	4da452226e9064b597020ad404e1c78d8175bc31ad7c1908485a92c0a4d70284	license/lgpl.txt
 sha256	33ffdead480674d5f33e2934822a3b93c93e3f8c894667a3bf30bd1195b38f83	license/gpl.txt
package/openzwave/openzwave.mk +8 -2
index 38515e3899..9da414d112 100644
@@ -4,13 +4,12 @@
 #
 ################################################################################
 
-OPENZWAVE_VERSION = V1.5
+OPENZWAVE_VERSION = v1.6
 OPENZWAVE_SITE = $(call github,OpenZWave,open-zwave,$(OPENZWAVE_VERSION))
 OPENZWAVE_LICENSE = LGPL-3.0+, GPL-3.0 (examples), Apache-2.0 (sh2ju.sh)
 OPENZWAVE_LICENSE_FILES = license/license.txt license/lgpl.txt \
 	license/gpl.txt license/Apache-License-2.0.txt
 
-OPENZWAVE_DEPENDENCIES = host-pkgconf udev
 OPENZWAVE_INSTALL_STAGING = YES
 
 # Set instlibdir to install libopenzwave.so* in the correct directory
@@ -31,6 +30,13 @@ OPENZWAVE_MAKE_OPTS = \
 	sysconfdir=/etc/openzwave \
 	DOXYGEN=
 
+ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
+OPENZWAVE_DEPENDENCIES += host-pkgconf udev
+OPENZWAVE_MAKE_OPTS += USE_HID=1
+else
+OPENZWAVE_MAKE_OPTS += USE_HID=0
+endif
+
 define OPENZWAVE_BUILD_CMDS
 	$(TARGET_MAKE_ENV) $(MAKE) $(OPENZWAVE_MAKE_OPTS) -C $(@D)
 endef
Signature · 1 line
2.20.1
#1 lore raw

PATCH 2/2 package/domoticz: bump to version 4.10717

- Remove all patches (already in version)
- Add patch to fix version

---
 package/domoticz/0001-Bumped-version.patch    | 20 -----
 ...ersion.default-bump-version-to-10717.patch | 23 ++++++
 ...-fix-build-with-python-and-cmake-3.7.patch | 40 ----------
 ...x-for-boot-1-70-get_io_service.patch.patch | 74 -------------------
 package/domoticz/domoticz.hash                |  2 +-
 package/domoticz/domoticz.mk                  |  2 +-
 6 files changed, 25 insertions(+), 136 deletions(-)
 delete mode 100644 package/domoticz/0001-Bumped-version.patch
 create mode 100644 package/domoticz/0001-appversion.default-bump-version-to-10717.patch
 delete mode 100644 package/domoticz/0002-CMakeLists.txt-fix-build-with-python-and-cmake-3.7.patch
 delete mode 100644 package/domoticz/0003-Fix-for-boot-1-70-get_io_service.patch.patch
package/domoticz/0001-Bumped-version.patch deleted +0 -20
deleted file mode 100644
index 70426ba1aa..0000000000
@@ -1,20 +0,0 @@
-From 98723b7da9467a49222b8a7ffaae276c5bc075c1 Mon Sep 17 00:00:00 2001
-From: gizmocuz <[email protected]>
-Date: Thu, 28 Jun 2018 08:00:58 +0200
-Subject: [PATCH] Bumped version
-
-Signed-off-by: Fabrice Fontaine <[email protected]>
-[Retrieved from https://github.com/domoticz/domoticz/commit/98723b7da9467a49222b8a7ffaae276c5bc075c1]
----
- appversion.default | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/appversion.default b/appversion.default
-index beaa069bb..7d3530590 100644
---- a/appversion.default
-+++ b/appversion.default
-@@ -1,3 +1,3 @@
--#define APPVERSION 5876
-+#define APPVERSION 9700
- #define APPHASH "b97777b"
- #define APPDATE 1478691222
package/domoticz/0001-appversion.default-bump-version-to-10717.patch new file +23 -0
new file mode 100644
index 0000000000..df0f1b339a
@@ -0,0 +1,23 @@
+From 4d8bbaf4bdffe4fa77a060cd7fa848f3001d46a8 Mon Sep 17 00:00:00 2001
+From: Fabrice Fontaine <[email protected]>
+Date: Tue, 21 May 2019 21:08:13 +0200
+Subject: [PATCH] appversion.default: bump version to 10717
+
+Signed-off-by: Fabrice Fontaine <[email protected]>
+[Upstream status: https://github.com/domoticz/domoticz/pull/3251]
+---
+ appversion.default | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/appversion.default b/appversion.default
+index 7d3530590..6fc5766c2 100644
+--- a/appversion.default
++++ b/appversion.default
+@@ -1,3 +1,3 @@
+-#define APPVERSION 9700
++#define APPVERSION 10717
+ #define APPHASH "b97777b"
+ #define APPDATE 1478691222
+-- 
+2.20.1
+
package/domoticz/0002-CMakeLists.txt-fix-build-with-python-and-cmake-3.7.patch deleted +0 -40
deleted file mode 100644
index a0adbdfed9..0000000000
@@ -1,40 +0,0 @@
-From 4b77662232c806b8aba7680405144ad51ac3671b Mon Sep 17 00:00:00 2001
-From: Fabrice Fontaine <[email protected]>
-Date: Thu, 29 Nov 2018 00:36:00 +0100
-Subject: [PATCH] CMakeLists.txt: fix build with python and cmake <= 3.7
-
-domoticz will fail to build with python and older cmake
-Indeed, find_package(PythonLibs 3.4) will not recognize python 3.7 until
-cmake 3.7 and the following commit:
-https://github.com/Kitware/CMake/commit/c31573b9641e0f1bc7a34149506db51f3494323b
-
-To fix this, add a call to find_package(PythonInterp 3.4). Indeed, if
-FindPythonInterp has already found the major and minor version, that
-version will be inserted between the user supplied versions and the
-stock version list since cmake in version 3.1 and
-https://github.com/Kitware/CMake/commit/3816cd2dc7a7cc220e4f1b1e87fee986545b9cb3
-
-Fixes:
- - http://autobuild.buildroot.org/results/8e82501a7b49da628ec026132ffca44c0c813040
-
-Signed-off-by: Fabrice Fontaine <[email protected]>
-[Upstream status: https://github.com/domoticz/domoticz/pull/2889]
----
- CMakeLists.txt | 1 +
- 1 file changed, 1 insertion(+)
-
-diff --git a/CMakeLists.txt b/CMakeLists.txt
-index f4e38b88..41003a0c 100644
---- a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -125,6 +125,7 @@ ENDIF(USE_BUILTIN_SQLITE)
- 
- option(USE_PYTHON "Use Python for Plugins and Event-Scripts" YES)
- IF(USE_PYTHON)
-+  find_package(PythonInterp 3.4)
-   find_package(PythonLibs 3.4)
-   IF(PYTHONLIBS_FOUND)
-     MESSAGE(STATUS "Python3 includes found at: ${PYTHON_INCLUDE_PATH}")
--- 
-2.14.1
-
package/domoticz/0003-Fix-for-boot-1-70-get_io_service.patch.patch deleted +0 -74

74 lines not on this page · raw message

package/domoticz/domoticz.hash +1 -1
index 106d242d0d..3d974b3f8d 100644
@@ -1,3 +1,3 @@
 # Locally computed:
-sha256	c31f185a1ffac01b86a77bf33e059a4403d814e826c9d6639c63c2e9afa55a46	domoticz-4.9700.tar.gz
+sha256	c053a2161942529f56b748945ec297dcd67f449e68029fc886893a528891ad86	domoticz-4.10717.tar.gz
 sha256	8ceb4b9ee5adedde47b31e975c1d90c73ad27b6b165a1dcd80c7c545eb65b903	License.txt
package/domoticz/domoticz.mk +1 -1
index 7f094d0976..9636e208d0 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-DOMOTICZ_VERSION = 4.9700
+DOMOTICZ_VERSION = 4.10717
 DOMOTICZ_SITE = $(call github,domoticz,domoticz,$(DOMOTICZ_VERSION))
 DOMOTICZ_LICENSE = GPL-3.0
 DOMOTICZ_LICENSE_FILES = License.txt
Signature · 1 line
2.20.1
#2 lore raw

PATCH 2/2 package/domoticz: bump to version 4.10717

Quoted 6 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Fabrice" == Fabrice Fontaine <[email protected]> writes:

- Remove all patches (already in version)
- Add patch to fix version

Committed to next, thanks.

Signature · 1 line
Bye, Peter Korsgaard
#3 lore raw

PATCH 2/2 package/domoticz: bump to version 4.10717

In reply to Fabrice Fontaine

Hello Fabrice,

Quoted 4 lines · On Tue, 21 May 2019 21:25:16 +0200 Fabrice Fontaine…

- Remove all patches (already in version)
- Add patch to fix version

It turns out we have a fairly significant number of build failures of domoticz in the version you bumped to. See:

http://autobuild.buildroot.net/?reason=domoticz-4.10717

Could you perhaps have a look ?

Thomas

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

PATCH 1/2 package/openzwave: bump to version 1.6

In reply to Fabrice Fontaine
Quoted 8 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Fabrice" == Fabrice Fontaine <[email protected]> writes:

- Remove all patches (already in version)
- udev is an optional dependency (disabled by default) since
https://github.com/OpenZWave/open-zwave/commit/89d5b3989fc2cfcf4db85ff9ec71e5c930d6fd33
- Add an upstream patch to fix build

Committed to next, thanks.

Signature · 1 line
Bye, Peter Korsgaard