[packages/openzwave] fix build with gcc >= 11

atler atler at pld-linux.org
Mon Jan 23 11:38:47 CET 2023


commit 2718c11b3e10fdfb932aa1b08cc7cf82d1d7b000
Author: Jan Palus <atler at pld-linux.org>
Date:   Mon Jan 23 11:25:01 2023 +0100

    fix build with gcc >= 11

 gcc11.patch    | 11 +++++++++++
 openzwave.spec |  2 ++
 2 files changed, 13 insertions(+)
---
diff --git a/openzwave.spec b/openzwave.spec
index f9a8db7..d0aa216 100644
--- a/openzwave.spec
+++ b/openzwave.spec
@@ -8,6 +8,7 @@ URL:		http://www.openzwave.net
 #Source0:	https://github.com/OpenZWave/open-zwave/archive/%{version}.tar.gz
 Source0:	http://old.openzwave.com/downloads/%{name}-%{version}.tar.gz
 # Source0-md5:	c9fd07d9d5bb971d97537e25ca5e73ce
+Patch0:		gcc11.patch
 BuildRequires:	doxygen
 BuildRequires:	graphviz
 BuildRequires:	hidapi-devel >= 0.8.0
@@ -39,6 +40,7 @@ using openzwave
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 major_ver=$(echo %{version} | awk -F \. {'print $1'})
diff --git a/gcc11.patch b/gcc11.patch
new file mode 100644
index 0000000..77b129b
--- /dev/null
+++ b/gcc11.patch
@@ -0,0 +1,11 @@
+--- openzwave-1.6.1914/cpp/src/command_classes/AssociationCommandConfiguration.cpp.orig	2021-04-03 21:42:37.000000000 +0200
++++ openzwave-1.6.1914/cpp/src/command_classes/AssociationCommandConfiguration.cpp	2023-01-23 11:12:59.774952182 +0100
+@@ -183,7 +183,7 @@
+ 					if (Node* node = GetNodeUnsafe())
+ 					{
+ 						Group* group = node->GetGroup(groupIdx);
+-						if ( NULL == group)
++						if ( NULL != group)
+ 						{
+ 							if (firstReports)
+ 							{
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/openzwave.git/commitdiff/2833bc986ce14f92015755a180836b04c29d0b4f



More information about the pld-cvs-commit mailing list