]> git.pld-linux.org Git - packages/domoticz.git/blame - python3.9.patch
use distribution packaged OpenSans font
[packages/domoticz.git] / python3.9.patch
CommitLineData
2fd2c1d4
JP
1Index: domoticz-2020.2/hardware/plugins/DelayedLink.h
2===================================================================
3--- domoticz-2020.2.orig/hardware/plugins/DelayedLink.h
4+++ domoticz-2020.2/hardware/plugins/DelayedLink.h
5@@ -14,6 +14,16 @@
6 #include <frameobject.h>
7 #include "../../main/Helper.h"
8
9+#ifndef _Py_DEC_REFTOTAL
10+ /* _Py_DEC_REFTOTAL macro has been removed from Python 3.9 by:
11+ https://github.com/python/cpython/commit/49932fec62c616ec88da52642339d83ae719e924 */
12+# ifdef Py_REF_DEBUG
13+# define _Py_DEC_REFTOTAL _Py_RefTotal--
14+# else
15+# define _Py_DEC_REFTOTAL
16+# endif
17+#endif
18+
19 #if PY_VERSION_HEX >= 0x030800f0
20 static inline void
21 py3__Py_DECREF(const char *filename, int lineno, PyObject *op)
22Index: domoticz-2020.2/CMakeLists.txt
23===================================================================
24--- domoticz-2020.2.orig/CMakeLists.txt
25+++ domoticz-2020.2/CMakeLists.txt
26@@ -744,7 +744,7 @@ else()
27 message(STATUS "Not found telldus-core (telldus-core.h), not adding tellstick support")
28 endif (TELLDUSCORE_INCLUDE)
29
30-target_link_libraries(domoticz ${Boost_LIBRARIES} ${ZLIB_LIBRARIES} ${MINIZIP_LIBRARIES} ${CURL_LIBRARIES} pthread ${MQTT_LIBRARIES} ${LUA_LIBRARIES} ${CMAKE_DL_LIBS} ${TELLDUS_LIBRARIES})
31+target_link_libraries(domoticz ${Boost_LIBRARIES} ${ZLIB_LIBRARIES} ${MINIZIP_LIBRARIES} ${CURL_LIBRARIES} pthread ${PYTHON_LIBRARIES} ${MQTT_LIBRARIES} ${LUA_LIBRARIES} ${CMAKE_DL_LIBS} ${TELLDUS_LIBRARIES})
32
33 IF(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
34 target_link_libraries(domoticz -lresolv)
This page took 0.058519 seconds and 4 git commands to generate.