get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/1.2/patches/807068/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 807068,
    "url": "http://patchwork.ozlabs.org/api/1.2/patches/807068/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/buildroot/patch/e695590b2b797d7762c02213c8576131e32f3dcc.1504009191.git.baruch@tkos.co.il/",
    "project": {
        "id": 27,
        "url": "http://patchwork.ozlabs.org/api/1.2/projects/27/?format=api",
        "name": "Buildroot development",
        "link_name": "buildroot",
        "list_id": "buildroot.buildroot.org",
        "list_email": "buildroot@buildroot.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<e695590b2b797d7762c02213c8576131e32f3dcc.1504009191.git.baruch@tkos.co.il>",
    "list_archive_url": null,
    "date": "2017-08-29T12:19:51",
    "name": "lirc-tools: bump to version 0.10.0",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "52b2cbf3402bc0b7c0dff892b047828818ad11de",
    "submitter": {
        "id": 1458,
        "url": "http://patchwork.ozlabs.org/api/1.2/people/1458/?format=api",
        "name": "Baruch Siach",
        "email": "baruch@tkos.co.il"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/buildroot/patch/e695590b2b797d7762c02213c8576131e32f3dcc.1504009191.git.baruch@tkos.co.il/mbox/",
    "series": [
        {
            "id": 357,
            "url": "http://patchwork.ozlabs.org/api/1.2/series/357/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/buildroot/list/?series=357",
            "date": "2017-08-29T12:19:51",
            "name": "lirc-tools: bump to version 0.10.0",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/357/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/807068/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/807068/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<buildroot-bounces@busybox.net>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "buildroot@lists.busybox.net"
        ],
        "Delivered-To": [
            "patchwork-incoming@bilbo.ozlabs.org",
            "buildroot@osuosl.org"
        ],
        "Authentication-Results": "ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=busybox.net\n\t(client-ip=140.211.166.137; helo=fraxinus.osuosl.org;\n\tenvelope-from=buildroot-bounces@busybox.net;\n\treceiver=<UNKNOWN>)",
        "Received": [
            "from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137])\n\t(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xhSQG205Pz9s7c\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 29 Aug 2017 22:20:21 +1000 (AEST)",
            "from localhost (localhost [127.0.0.1])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id 65C738720A;\n\tTue, 29 Aug 2017 12:20:19 +0000 (UTC)",
            "from fraxinus.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id 4hQ_G-4_Vjcj; Tue, 29 Aug 2017 12:20:15 +0000 (UTC)",
            "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id 9A06686E54;\n\tTue, 29 Aug 2017 12:20:15 +0000 (UTC)",
            "from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138])\n\tby ash.osuosl.org (Postfix) with ESMTP id 7545B1C0167\n\tfor <buildroot@lists.busybox.net>;\n\tTue, 29 Aug 2017 12:20:14 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 6CBF586767\n\tfor <buildroot@lists.busybox.net>;\n\tTue, 29 Aug 2017 12:20:14 +0000 (UTC)",
            "from whitealder.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id xjSdK7WuVqND for <buildroot@lists.busybox.net>;\n\tTue, 29 Aug 2017 12:20:11 +0000 (UTC)",
            "from mx.tkos.co.il (guitar.tcltek.co.il [192.115.133.116])\n\tby whitealder.osuosl.org (Postfix) with ESMTPS id 820E687AE5\n\tfor <buildroot@busybox.net>; Tue, 29 Aug 2017 12:20:11 +0000 (UTC)",
            "from tarshish.tkos.co.il (unknown [10.0.8.6])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128\n\tbits)) (No client certificate requested)\n\tby mx.tkos.co.il (Postfix) with ESMTPSA id F41694402AD;\n\tTue, 29 Aug 2017 15:20:07 +0300 (IDT)"
        ],
        "X-Virus-Scanned": [
            "amavisd-new at osuosl.org",
            "amavisd-new at osuosl.org"
        ],
        "X-Greylist": "domain auto-whitelisted by SQLgrey-1.7.6",
        "From": "Baruch Siach <baruch@tkos.co.il>",
        "To": "buildroot@busybox.net",
        "Date": "Tue, 29 Aug 2017 15:19:51 +0300",
        "Message-Id": "<e695590b2b797d7762c02213c8576131e32f3dcc.1504009191.git.baruch@tkos.co.il>",
        "X-Mailer": "git-send-email 2.14.1",
        "MIME-Version": "1.0",
        "Cc": "Rhys Williams <github@wilberforce.co.nz>,\n\tAlec Leamas <leamas.alec@gmail.com>",
        "Subject": "[Buildroot] [PATCH] lirc-tools: bump to version 0.10.0",
        "X-BeenThere": "buildroot@busybox.net",
        "X-Mailman-Version": "2.1.18-1",
        "Precedence": "list",
        "List-Id": "Discussion and development of buildroot <buildroot.busybox.net>",
        "List-Unsubscribe": "<http://lists.busybox.net/mailman/options/buildroot>,\n\t<mailto:buildroot-request@busybox.net?subject=unsubscribe>",
        "List-Archive": "<http://lists.busybox.net/pipermail/buildroot/>",
        "List-Post": "<mailto:buildroot@busybox.net>",
        "List-Help": "<mailto:buildroot-request@busybox.net?subject=help>",
        "List-Subscribe": "<http://lists.busybox.net/mailman/listinfo/buildroot>,\n\t<mailto:buildroot-request@busybox.net?subject=subscribe>",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "base64",
        "Errors-To": "buildroot-bounces@busybox.net",
        "Sender": "\"buildroot\" <buildroot-bounces@busybox.net>"
    },
    "content": "Drop upstream patch.\n\nAdd a patch fixing build without python.\n\nAdd two more patches fixing cross compile of the python client library.\n\nEnable devinput and uinput unconditionally to suppress non cross compile\ncompatible host checks.\n\nSet DEVINPUT_HEADER to target header of input events to avoid use of\nhost header.\n\nAdd python3 as optional dependency.\n\nCc: Rhys Williams <github@wilberforce.co.nz>\nSigned-off-by: Baruch Siach <baruch@tkos.co.il>\n---\n---\n .../lirc-tools/0001-Fix-build-without-Python.patch | 63 ++++++++++++++++++++++\n ...ll.h-fix-header-guard-collision-with-musl.patch | 62 ---------------------\n .../0002-Fix-python-client-cross-compile.patch     | 48 +++++++++++++++++\n ...Fix-lirc-version-detection-when-cross-com.patch | 39 ++++++++++++++\n package/lirc-tools/lirc-tools.hash                 |  8 +--\n package/lirc-tools/lirc-tools.mk                   | 19 ++++++-\n 6 files changed, 171 insertions(+), 68 deletions(-)\n create mode 100644 package/lirc-tools/0001-Fix-build-without-Python.patch\n delete mode 100644 package/lirc-tools/0001-lib-curl_poll.h-fix-header-guard-collision-with-musl.patch\n create mode 100644 package/lirc-tools/0002-Fix-python-client-cross-compile.patch\n create mode 100644 package/lirc-tools/0003-python-pkg-Fix-lirc-version-detection-when-cross-com.patch",
    "diff": "diff --git a/package/lirc-tools/0001-Fix-build-without-Python.patch b/package/lirc-tools/0001-Fix-build-without-Python.patch\nnew file mode 100644\nindex 000000000000..fe6a38c078ce\n--- /dev/null\n+++ b/package/lirc-tools/0001-Fix-build-without-Python.patch\n@@ -0,0 +1,63 @@\n+From 71f329d997d949d3c12d62d2f1473a1c99ee49b0 Mon Sep 17 00:00:00 2001\n+From: Baruch Siach <baruch@tkos.co.il>\n+Date: Sun, 27 Aug 2017 21:30:37 +0300\n+Subject: [PATCH] Fix build without Python\n+\n+Don't define HAVE_PYTHON35 when PYTHON_LIBS is empty.\n+\n+Also, don't build Python dependent code when HAVE_PYTHON35 is not\n+defined.\n+\n+This fixes build failures like:\n+\n+Makefile:1616: recipe for target 'python-pkg/dist/lirc-0.10.0.tar.gz' failed\n+make[3]: *** [python-pkg/dist/lirc-0.10.0.tar.gz] Error 1\n+python-pkg/lirc/_client.c:1:20: fatal error: Python.h: No such file or directory\n+ #include <Python.h>\n+                    ^\n+\n+Signed-off-by: Baruch Siach <baruch@tkos.co.il>\n+---\n+Upstream status: https://sourceforge.net/p/lirc/mailman/message/36014545/\n+\n+ Makefile.am  | 2 ++\n+ configure.ac | 3 ++-\n+ 2 files changed, 4 insertions(+), 1 deletion(-)\n+\n+diff --git a/Makefile.am b/Makefile.am\n+index 9f3dd14340cc..d8164fcd44cf 100644\n+--- a/Makefile.am\n++++ b/Makefile.am\n+@@ -104,6 +104,7 @@ dist_py_pkg_doc_DATA    = python-pkg/doc/Doxyfile \\\n+ \n+ libpython               = $(libdir)/python$(PYTHON_VERSION)\n+ pydir                   = $(libpython)/site-packages/lirc\n++if HAVE_PYTHON35\n+ py_LTLIBRARIES          = python-pkg/lib/_client.la\n+ python_pkg_lib__client_la_SOURCES = \\\n+                           python-pkg/lirc/_client.c\n+@@ -116,6 +117,7 @@ python_pkg_lib__client_la_LDFLAGS  = \\\n+                           $(PYTHON_LIBS)\n+ python_pkg_lib__client_la_LIBADD = \\\n+                           lib/liblirc_client.la\n++endif\n+ \n+ pylint: .phony\n+ \t$(MAKE) -C tools pylint\n+diff --git a/configure.ac b/configure.ac\n+index 4108688433f8..07d901deafdf 100644\n+--- a/configure.ac\n++++ b/configure.ac\n+@@ -50,7 +50,8 @@ test -z \"$PYTHON_LIBS\" && \\\n+ test -n \"$PYTHON_LIBS\" || \\\n+     AC_MSG_WARN([No python package found (missing devel package?)])\n+ python_version_nodots=$(echo $PYTHON_VERSION | tr -d '.')\n+-AM_CONDITIONAL(HAVE_PYTHON35, [test $python_version_nodots -ge 35])\n++AM_CONDITIONAL(HAVE_PYTHON35, [test -n \"$PYTHON_LIBS\" && \\\n++\t\t\t       test $python_version_nodots -ge 35])\n+ CFLAGS=\"$CFLAGS $PYTHON_CFLAGS\"\n+ \n+ \n+-- \n+2.14.1\n+\ndiff --git a/package/lirc-tools/0001-lib-curl_poll.h-fix-header-guard-collision-with-musl.patch b/package/lirc-tools/0001-lib-curl_poll.h-fix-header-guard-collision-with-musl.patch\ndeleted file mode 100644\nindex a5cb7f35a03a..000000000000\n--- a/package/lirc-tools/0001-lib-curl_poll.h-fix-header-guard-collision-with-musl.patch\n+++ /dev/null\n@@ -1,62 +0,0 @@\n-From: Baruch Siach <baruch@tkos.co.il>\n-Subject: [PATCH] lib/curl_poll.h: fix header guard collision with musl libc\n-\n-The musl libc uses the _POLL_H macro as a double include guard for the poll.h\n-header. This breaks compilation of files the include curl_poll.h:\n-\n-In file included from driver.h:32:0,\n-                 from driver.c:12:\n-lirc/curl_poll.h:38:29: error: array type has incomplete element type ‘struct pollfd’\n- int curl_poll(struct pollfd ufds[], unsigned int nfds, int timeout_ms);\n-                             ^~~~\n-\n-Rename the curl_poll.h header guard macro to avoid collision. Don't use a name\n-that starts with an underscore and a capital letter since these names are\n-reserved according to the ANSI C standard.\n-\n-https://www.gnu.org/software/libc/manual/html_node/Reserved-Names.html\n-\n-[ This patch is based on upstream, but changes also another copy of\n-  curl_poll.h under lib/lirc/ ]\n-\n-Signed-off-by: Baruch Siach <baruch@tkos.co.il>\n----\n-Patch status: upstream\n-https://sourceforge.net/p/lirc/git/ci/e07a80aa00a14fc98d7347afa1fa44282732b27f/\n-\n-diff --git lirc-0.9.4d-orig/lib/curl_poll.h lirc-0.9.4d/lib/curl_poll.h\n-index af25381b3e26..1e895aa62f93 100644\n---- lirc-0.9.4d-orig/lib/curl_poll.h\n-+++ lirc-0.9.4d/lib/curl_poll.h\n-@@ -1,5 +1,5 @@\n--#ifndef _POLL_H\n--#define _POLL_H\n-+#ifndef HEADER_LIB_CURL_POLL_H\n-+#define HEADER_LIB_CURL_POLL_H\n- /***************************************************************************\n-  *                                  _   _ ____  _\n-  *  Project                     ___| | | |  _ \\| |\n-@@ -42,4 +42,4 @@ int curl_poll(struct pollfd ufds[], unsigned int nfds, int timeout_ms);\n- #endif\n- \n- \n--#endif /* _POLL_H */\n-+#endif /* HEADER_LIB_CURL_POLL_H */\n-diff --git lirc-0.9.4d-orig/lib/lirc/curl_poll.h lirc-0.9.4d/lib/lirc/curl_poll.h\n-index af25381b3e26..1e895aa62f93 100644\n---- lirc-0.9.4d-orig/lib/lirc/curl_poll.h\n-+++ lirc-0.9.4d/lib/lirc/curl_poll.h\n-@@ -1,5 +1,5 @@\n--#ifndef _POLL_H\n--#define _POLL_H\n-+#ifndef HEADER_LIB_CURL_POLL_H\n-+#define HEADER_LIB_CURL_POLL_H\n- /***************************************************************************\n-  *                                  _   _ ____  _\n-  *  Project                     ___| | | |  _ \\| |\n-@@ -42,4 +42,4 @@ int curl_poll(struct pollfd ufds[], unsigned int nfds, int timeout_ms);\n- #endif\n- \n- \n--#endif /* _POLL_H */\n-+#endif /* HEADER_LIB_CURL_POLL_H */\ndiff --git a/package/lirc-tools/0002-Fix-python-client-cross-compile.patch b/package/lirc-tools/0002-Fix-python-client-cross-compile.patch\nnew file mode 100644\nindex 000000000000..a268c0f1cb52\n--- /dev/null\n+++ b/package/lirc-tools/0002-Fix-python-client-cross-compile.patch\n@@ -0,0 +1,48 @@\n+From 13c4ffcfde07f659a836fba4a604dc1c5024bb90 Mon Sep 17 00:00:00 2001\n+From: Baruch Siach <baruch@tkos.co.il>\n+Date: Tue, 29 Aug 2017 11:37:36 +0300\n+Subject: [PATCH] Fix python client cross compile\n+\n+The setup.py setuptools wrapper needs to use a version of python built\n+specifically for cross compiling to cross compile successfully. Allow\n+setting that in the environment using the SETUPTOOLS_ENV variable.\n+\n+Fixes the following build failure:\n+\n+/usr/bin/ld: skipping incompatible .../lirc-tools-0.10.0/lib/.libs/liblirc_client.so when searching for -llirc_client\n+/usr/bin/ld: cannot find -llirc_client\n+collect2: error: ld returned 1 exit status\n+error: command '/usr/bin/gcc' failed with exit status 1\n+Makefile:1578: recipe for target 'all-local' failed\n+\n+Signed-off-by: Baruch Siach <baruch@tkos.co.il>\n+---\n+Upstream status: posted to upstream mailing list, awaits moderator approval\n+https://sourceforge.net/p/lirc/mailman/lirc-list/?viewmonth=201708\n+\n+ Makefile.am | 2 ++\n+ 1 file changed, 2 insertions(+)\n+\n+diff --git a/Makefile.am b/Makefile.am\n+index d8164fcd44cf..a16be4278ae2 100644\n+--- a/Makefile.am\n++++ b/Makefile.am\n+@@ -131,6 +131,7 @@ pep8: $(py_PYTHON)\n+ if HAVE_PYTHON35\n+ all-local:\n+ \tcd python-pkg; \\\n++\t    $(SETUPTOOLS_ENV) \\\n+ \t    CFLAGS=\"-I$(abs_top_srcdir)/lib -I$(abs_builddir)/lib\" \\\n+ \t    LDFLAGS=-L$(abs_builddir)/lib/.libs $(PYTHON) setup.py \\\n+ \t    $(if $(VERBOSE),,-q) build\n+@@ -179,6 +180,7 @@ $(abs_builddir)/python-pkg/setup.py:\n+ $(PYTHON_TARBALL): $(abs_builddir)/python-pkg/setup.py\n+ \tcp $(top_builddir)/VERSION $(abs_builddir)/python-pkg\n+ \tcd $(abs_builddir)/python-pkg; CFLAGS=-I$(abs_top_srcdir)/lib \\\n++\t    $(SETUPTOOLS_ENV) \\\n+ \t    LDFLAGS=-L$(abs_builddir)/lib/.libs $(PYTHON) setup.py -q sdist\n+ \n+ $(top_builddir)/python-pkg/VERSION: VERSION\n+-- \n+2.14.1\n+\ndiff --git a/package/lirc-tools/0003-python-pkg-Fix-lirc-version-detection-when-cross-com.patch b/package/lirc-tools/0003-python-pkg-Fix-lirc-version-detection-when-cross-com.patch\nnew file mode 100644\nindex 000000000000..d5787cbb76c6\n--- /dev/null\n+++ b/package/lirc-tools/0003-python-pkg-Fix-lirc-version-detection-when-cross-com.patch\n@@ -0,0 +1,39 @@\n+From a30d83908177c4aa11e2007f00928e2160051b98 Mon Sep 17 00:00:00 2001\n+From: Baruch Siach <baruch@tkos.co.il>\n+Date: Tue, 29 Aug 2017 11:50:09 +0300\n+Subject: [PATCH] python-pkg: Fix lirc version detection when cross compiling\n+\n+The setup.py script that run on the host can't use the client library\n+built for target. So setup.py falls back to a hard-coded VERSION value.\n+Correct this hard-coded value, so that the generated tarball gets named\n+correctly.\n+\n+Fixes build failure:\n+\n+/usr/bin/install -c -m 644 ./python-pkg/dist/lirc-0.10.0.tar.gz '.../output/host/arm-buildroot-linux-musleabihf/sysroot/usr/share/lirc'\n+/usr/bin/install: cannot stat './python-pkg/dist/lirc-0.10.0.tar.gz': No such file or directory\n+\n+Signed-off-by: Baruch Siach <baruch@tkos.co.il>\n+---\n+Upstream status: posted to upstream mailing list, awaits moderator approval\n+https://sourceforge.net/p/lirc/mailman/lirc-list/?viewmonth=201708\n+\n+ python-pkg/setup.py | 2 +-\n+ 1 file changed, 1 insertion(+), 1 deletion(-)\n+\n+diff --git a/python-pkg/setup.py b/python-pkg/setup.py\n+index e9b33690f828..6c580cc8eb9e 100644\n+--- a/python-pkg/setup.py\n++++ b/python-pkg/setup.py\n+@@ -10,7 +10,7 @@ try:\n+     import lirc.config\n+     VERSION = lirc.config.VERSION.replace('-devel','')\n+ except ImportError:\n+-    VERSION='0.0.0'\n++    VERSION='0.10.0'\n+ \n+ from setuptools import setup, Extension\n+ \n+-- \n+2.14.1\n+\ndiff --git a/package/lirc-tools/lirc-tools.hash b/package/lirc-tools/lirc-tools.hash\nindex 13d3f02758bf..f4bd161f915d 100644\n--- a/package/lirc-tools/lirc-tools.hash\n+++ b/package/lirc-tools/lirc-tools.hash\n@@ -1,5 +1,5 @@\n-# hash from http://sourceforge.net/projects/lirc/files/LIRC/0.9.4d/\n-sha1 5dbfd95a9e290260e6b5febadf685227df9c0529 lirc-0.9.4d.tar.bz2\n-md5 0d11679cbdd94a5a6da00a8e7231b4bf lirc-0.9.4d.tar.bz2\n+# hash from https://sourceforge.net/projects/lirc/files/LIRC/0.10.0/\n+sha1 ab1095a1a241cf7ccf96f047cbd1884b7dc02dc1 lirc-0.10.0.tar.bz2\n+md5 5c410678b5eba7ea2ca57f7e287ba326 lirc-0.10.0.tar.bz2\n # Locally computed\n-sha256 c68f18c35b489b865c0a741d119b136e8702191538cd3551b977a7af6c4e41ab lirc-0.9.4d.tar.bz2\n+sha256 e57c2de8b1b91325d23f1c14fc553ec7912b0add7891e653d048300d38c3f553 lirc-0.10.0.tar.bz2\ndiff --git a/package/lirc-tools/lirc-tools.mk b/package/lirc-tools/lirc-tools.mk\nindex e767d9d7f02c..55738cb7a253 100644\n--- a/package/lirc-tools/lirc-tools.mk\n+++ b/package/lirc-tools/lirc-tools.mk\n@@ -4,16 +4,26 @@\n #\n ################################################################################\n \n-LIRC_TOOLS_VERSION = 0.9.4d\n+LIRC_TOOLS_VERSION = 0.10.0\n LIRC_TOOLS_SOURCE = lirc-$(LIRC_TOOLS_VERSION).tar.bz2\n LIRC_TOOLS_SITE = http://downloads.sourceforge.net/project/lirc/LIRC/$(LIRC_TOOLS_VERSION)\n LIRC_TOOLS_LICENSE = GPL-2.0+\n LIRC_TOOLS_LICENSE_FILES = COPYING\n LIRC_TOOLS_DEPENDENCIES = host-libxslt host-pkgconf host-python3\n LIRC_TOOLS_INSTALL_STAGING = YES\n+# Patching configure.ac and Makefile.am\n+LIRC_TOOLS_AUTORECONF = YES\n \n LIRC_TOOLS_CONF_ENV = XSLTPROC=yes HAVE_WORKING_POLL=yes\n-LIRC_TOOLS_CONF_OPTS = --without-x\n+LIRC_TOOLS_CONF_OPTS = --without-x --enable-devinput --enable-uinput\n+\n+ifeq ($(BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_4),y)\n+LIRC_TOOLS_CONF_ENV += \\\n+\tDEVINPUT_HEADER=$(STAGING_DIR)/usr/include/linux/input-event-codes.h\n+else\n+LIRC_TOOLS_CONF_ENV += \\\n+\tDEVINPUT_HEADER=$(STAGING_DIR)/usr/include/linux/input.h\n+endif\n \n ifeq ($(BR2_PACKAGE_HAS_UDEV),y)\n LIRC_TOOLS_DEPENDENCIES += udev\n@@ -31,6 +41,11 @@ ifeq ($(BR2_PACKAGE_LIBFTDI1),y)\n LIRC_TOOLS_DEPENDENCIES += libftdi1\n endif\n \n+ifeq ($(BR2_PACKAGE_PYTHON3),y)\n+LIRC_TOOLS_DEPENDENCIES += python3 host-python-setuptools\n+LIRC_TOOLS_MAKE_ENV += SETUPTOOLS_ENV=\"$(PKG_PYTHON_SETUPTOOLS_ENV)\"\n+endif\n+\n define LIRC_TOOLS_INSTALL_INIT_SYSV\n \t$(INSTALL) -D -m 0755 package/lirc-tools/S25lircd \\\n \t\t$(TARGET_DIR)/etc/init.d/S25lircd\n",
    "prefixes": []
}