[packages/domoticz] always build with GPIO support

atler atler at pld-linux.org
Fri Apr 9 00:37:00 CEST 2021


commit c8cb4cfeab4dab35725b38a87bcce33d063b05fb
Author: Jan Palus <atler at pld-linux.org>
Date:   Thu Apr 8 21:55:56 2021 +0200

    always build with GPIO support

 domoticz-gpio.patch | 16 ++++++++++++++++
 domoticz.spec       |  2 ++
 2 files changed, 18 insertions(+)
---
diff --git a/domoticz.spec b/domoticz.spec
index 7f0a9c4..120a793 100644
--- a/domoticz.spec
+++ b/domoticz.spec
@@ -17,6 +17,7 @@ Patch1:		%{name}-openzwave.patch
 Patch2:		%{name}-python.patch
 Patch3:		no-git.patch
 Patch4:		boost-1.73.patch
+Patch5:		%{name}-gpio.patch
 BuildRequires:	boost-devel >= 1.66.0
 BuildRequires:	cereal-devel
 BuildRequires:	cmake >= 3.16.0
@@ -58,6 +59,7 @@ and much more. Notifications/Alerts can be sent to any mobile device
 %patch2 -p1
 %patch3 -p1
 %patch4 -p1
+%patch5 -p1
 
 APPVERSION="%{version}"
 echo "#define APPVERSION ${APPVERSION##*.}" > appversion.h
diff --git a/domoticz-gpio.patch b/domoticz-gpio.patch
new file mode 100644
index 0000000..f9bb3c8
--- /dev/null
+++ b/domoticz-gpio.patch
@@ -0,0 +1,16 @@
+--- domoticz-2020.2/CMakeLists.txt.orig	2021-04-08 21:42:12.847131340 +0200
++++ domoticz-2020.2/CMakeLists.txt	2021-04-08 21:52:40.727278201 +0200
+@@ -718,12 +718,7 @@
+ ENDIF(OpenZWave)
+ 
+ 
+-IF(EXISTS /sys/class/gpio)
+-  message(STATUS "GPIO is available")
+-  add_definitions(-DWITH_GPIO)
+-ELSE()
+-  message(STATUS "GPIO is not available")
+-ENDIF()
++add_definitions(-DWITH_GPIO)
+ 
+ 
+ find_path(TELLDUSCORE_INCLUDE NAMES telldus-core.h)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/domoticz.git/commitdiff/e9c32406e214bcb0cc4d1bdb36febd7690105e64



More information about the pld-cvs-commit mailing list