lirc-tools: bump to version 0.10.1
PATCH v2 1/1 lirc-tools: bump to version 0.10.1
Drop upstream patch.
Add an upstream patch fixing build without python.
Add two more patches (one of them upstream) fixing cross compile of the python client library.
Enable devinput and uinput unconditionally to suppress non cross compile compatible host checks.
Set DEVINPUT_HEADER to target header of input events to avoid use of host header.
Add python3 as optional dependency.
---
v2:
Bump version to 0.10.1
Update the python version detection patch to upstream version Update upstream status of patches
--- .../lirc-tools/0001-Fix-build-without-Python.patch | 63 ++++++++++++++++++++++ ...ll.h-fix-header-guard-collision-with-musl.patch | 62 --------------------- .../0002-Fix-python-client-cross-compile.patch | 47 ++++++++++++++++ ...Fix-lirc-version-detection-when-cross-com.patch | 51 ++++++++++++++++++ package/lirc-tools/lirc-tools.hash | 8 +-- package/lirc-tools/lirc-tools.mk | 19 ++++++- 6 files changed, 182 insertions(+), 68 deletions(-) create mode 100644 package/lirc-tools/0001-Fix-build-without-Python.patch delete mode 100644 package/lirc-tools/0001-lib-curl_poll.h-fix-header-guard-collision-with-musl.patch create mode 100644 package/lirc-tools/0002-Fix-python-client-cross-compile.patch create mode 100644 package/lirc-tools/0003-python-pkg-Fix-lirc-version-detection-when-cross-com.patch
package/lirc-tools/0001-Fix-build-without-Python.patch new file +63 -0
@@ -0,0 +1,63 @@ +From 71f329d997d949d3c12d62d2f1473a1c99ee49b0 Mon Sep 17 00:00:00 2001 +From: Baruch Siach <[email protected]> +Date: Sun, 27 Aug 2017 21:30:37 +0300 +Subject: [PATCH] Fix build without Python + +Don't define HAVE_PYTHON35 when PYTHON_LIBS is empty. + +Also, don't build Python dependent code when HAVE_PYTHON35 is not +defined. + +This fixes build failures like: + +Makefile:1616: recipe for target 'python-pkg/dist/lirc-0.10.0.tar.gz' failed +make[3]: *** [python-pkg/dist/lirc-0.10.0.tar.gz] Error 1 +python-pkg/lirc/_client.c:1:20: fatal error: Python.h: No such file or directory + #include <Python.h> + ^ + +Signed-off-by: Baruch Siach <[email protected]> +--- +Upstream status: commit 74a2bcab6b + + Makefile.am | 2 ++ + configure.ac | 3 ++- + 2 files changed, 4 insertions(+), 1 deletion(-) + +diff --git a/Makefile.am b/Makefile.am +index 9f3dd14340cc..d8164fcd44cf 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -104,6 +104,7 @@ dist_py_pkg_doc_DATA = python-pkg/doc/Doxyfile \ + + libpython = $(libdir)/python$(PYTHON_VERSION) + pydir = $(libpython)/site-packages/lirc ++if HAVE_PYTHON35 + py_LTLIBRARIES = python-pkg/lib/_client.la + python_pkg_lib__client_la_SOURCES = \ + python-pkg/lirc/_client.c +@@ -116,6 +117,7 @@ python_pkg_lib__client_la_LDFLAGS = \ + $(PYTHON_LIBS) + python_pkg_lib__client_la_LIBADD = \ + lib/liblirc_client.la ++endif + + pylint: .phony + $(MAKE) -C tools pylint +diff --git a/configure.ac b/configure.ac +index 4108688433f8..07d901deafdf 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -50,7 +50,8 @@ test -z "$PYTHON_LIBS" && \ + test -n "$PYTHON_LIBS" || \ + AC_MSG_WARN([No python package found (missing devel package?)]) + python_version_nodots=$(echo $PYTHON_VERSION | tr -d '.') +-AM_CONDITIONAL(HAVE_PYTHON35, [test $python_version_nodots -ge 35]) ++AM_CONDITIONAL(HAVE_PYTHON35, [test -n "$PYTHON_LIBS" && \ ++ test $python_version_nodots -ge 35]) + CFLAGS="$CFLAGS $PYTHON_CFLAGS" + + +-- +2.14.1 +
package/lirc-tools/0001-lib-curl_poll.h-fix-header-guard-collision-with-musl.patch deleted +0 -62
62 lines not on this page · raw message
package/lirc-tools/0002-Fix-python-client-cross-compile.patch new file +47 -0
47 lines not on this page · raw message
package/lirc-tools/0003-python-pkg-Fix-lirc-version-detection-when-cross-com.patch new file +51 -0
51 lines not on this page · raw message
package/lirc-tools/lirc-tools.hash +4 -4
@@ -1,5 +1,5 @@ -# hash from http://sourceforge.net/projects/lirc/files/LIRC/0.9.4d/ -sha1 5dbfd95a9e290260e6b5febadf685227df9c0529 lirc-0.9.4d.tar.bz2 -md5 0d11679cbdd94a5a6da00a8e7231b4bf lirc-0.9.4d.tar.bz2 +# hash from https://sourceforge.net/projects/lirc/files/LIRC/0.10.1/ +sha1 9d6f6d18ac566a96ef4ca1d6909a4e8bc517d48a lirc-0.10.1.tar.bz2 +md5 86c3f8e4efaba10571addb8313d1e040 lirc-0.10.1.tar.bz2 # Locally computed -sha256 c68f18c35b489b865c0a741d119b136e8702191538cd3551b977a7af6c4e41ab lirc-0.9.4d.tar.bz2 +sha256 8b753c60df2a7f5dcda2db72c38e448ca300c3b4f6000c1501fcb0bd5df414f2 lirc-0.10.1.tar.bz2
package/lirc-tools/lirc-tools.mk +17 -2
@@ -4,16 +4,26 @@ # ################################################################################ -LIRC_TOOLS_VERSION = 0.9.4d +LIRC_TOOLS_VERSION = 0.10.1 LIRC_TOOLS_SOURCE = lirc-$(LIRC_TOOLS_VERSION).tar.bz2 LIRC_TOOLS_SITE = http://downloads.sourceforge.net/project/lirc/LIRC/$(LIRC_TOOLS_VERSION) LIRC_TOOLS_LICENSE = GPL-2.0+ LIRC_TOOLS_LICENSE_FILES = COPYING LIRC_TOOLS_DEPENDENCIES = host-libxslt host-pkgconf host-python3 LIRC_TOOLS_INSTALL_STAGING = YES +# Patching configure.ac and Makefile.am +LIRC_TOOLS_AUTORECONF = YES LIRC_TOOLS_CONF_ENV = XSLTPROC=yes HAVE_WORKING_POLL=yes -LIRC_TOOLS_CONF_OPTS = --without-x +LIRC_TOOLS_CONF_OPTS = --without-x --enable-devinput --enable-uinput + +ifeq ($(BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_4),y) +LIRC_TOOLS_CONF_ENV += \ + DEVINPUT_HEADER=$(STAGING_DIR)/usr/include/linux/input-event-codes.h +else +LIRC_TOOLS_CONF_ENV += \ + DEVINPUT_HEADER=$(STAGING_DIR)/usr/include/linux/input.h +endif ifeq ($(BR2_PACKAGE_HAS_UDEV),y) LIRC_TOOLS_DEPENDENCIES += udev
@@ -35,6 +45,11 @@ ifeq ($(BR2_PACKAGE_LIBFTDI1),y) LIRC_TOOLS_DEPENDENCIES += libftdi1 endif +ifeq ($(BR2_PACKAGE_PYTHON3),y) +LIRC_TOOLS_DEPENDENCIES += python3 host-python-setuptools +LIRC_TOOLS_MAKE_ENV += SETUPTOOLS_ENV="$(PKG_PYTHON_SETUPTOOLS_ENV)" +endif + define LIRC_TOOLS_INSTALL_INIT_SYSV $(INSTALL) -D -m 0755 package/lirc-tools/S25lircd \ $(TARGET_DIR)/etc/init.d/S25lircd
Signature · 1 line
2.14.1
PATCH v2 1/1 lirc-tools: bump to version 0.10.1
Quoted 16 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Baruch" == Baruch Siach <[email protected]> writes:
Drop upstream patch.
Add an upstream patch fixing build without python.Add two more patches (one of them upstream) fixing cross compile of the python client library.
Enable devinput and uinput unconditionally to suppress non cross compile compatible host checks.
Set
DEVINPUT_HEADERto target header of input events to avoid use of host header.Add python3 as optional dependency.
Quoted 7 lines
Cc Rhys Williams <[email protected]>Signed-off-by Baruch Siach <[email protected]>---
v2:
Bump version to 0.10.1
Update the python version detection patch to upstream version Update upstream status of patches
Committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard