diff options
2 files changed, 66 insertions, 10 deletions
diff --git a/meta-oe/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc/0001-Makefile.am-do-not-clobber-PYTHONPATH-from-build-env.patch b/meta-oe/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc/0001-Makefile.am-do-not-clobber-PYTHONPATH-from-build-env.patch new file mode 100644 index 0000000000..089ed23c73 --- /dev/null +++ b/meta-oe/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc/0001-Makefile.am-do-not-clobber-PYTHONPATH-from-build-env.patch | |||
| @@ -0,0 +1,55 @@ | |||
| 1 | From 5e3b74927b4fef03d91518d235e9e3ba8cd7ab2e Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Alexander Kanavin <alex@linutronix.de> | ||
| 3 | Date: Wed, 9 Nov 2022 20:49:41 +0100 | ||
| 4 | Subject: [PATCH] Makefile.am: do not clobber PYTHONPATH from build environment | ||
| 5 | |||
| 6 | This environment variable has special significance for python, | ||
| 7 | and so lirc's variable has to be named something else. | ||
| 8 | |||
| 9 | Signed-off-by: Alexander Kanavin <alex@linutronix.de> | ||
| 10 | --- | ||
| 11 | Makefile.am | 2 +- | ||
| 12 | pylint.mak | 2 +- | ||
| 13 | tools/Makefile.am | 2 +- | ||
| 14 | 3 files changed, 3 insertions(+), 3 deletions(-) | ||
| 15 | |||
| 16 | diff --git a/Makefile.am b/Makefile.am | ||
| 17 | index 6718af1..fae423e 100644 | ||
| 18 | --- a/Makefile.am | ||
| 19 | +++ b/Makefile.am | ||
| 20 | @@ -128,7 +128,7 @@ endif | ||
| 21 | |||
| 22 | pylint: .phony | ||
| 23 | $(MAKE) -C tools pylint | ||
| 24 | - -PYTHONPATH=$(PYTHONPATH) $(PYLINT) --rcfile=pylint.conf \ | ||
| 25 | + -PYTHONPATH=$(LIRCPYTHONPATH) $(PYLINT) --rcfile=pylint.conf \ | ||
| 26 | --msg-template='$(pylint_template)' $(py_PYTHON) | ||
| 27 | |||
| 28 | pep8: $(py_PYTHON) | ||
| 29 | diff --git a/pylint.mak b/pylint.mak | ||
| 30 | index bf427ab..2692951 100644 | ||
| 31 | --- a/pylint.mak | ||
| 32 | +++ b/pylint.mak | ||
| 33 | @@ -1,5 +1,5 @@ | ||
| 34 | PYTHONPATH1 = $(abs_top_srcdir)/python-pkg/lirc: | ||
| 35 | PYTHONPATH2 = $(abs_top_srcdir)/python-pkg/lirc/lib/.libs | ||
| 36 | -PYTHONPATH = $(PYTHONPATH1):$(PYTHONPATH2) | ||
| 37 | +LIRCPYTHONPATH = $(PYTHONPATH1):$(PYTHONPATH2) | ||
| 38 | PYLINT = python3-pylint | ||
| 39 | pylint_template = {path}:{line}: [{msg_id}({symbol}), {obj}] {msg} | ||
| 40 | diff --git a/tools/Makefile.am b/tools/Makefile.am | ||
| 41 | index 85d1fd0..96b17f8 100644 | ||
| 42 | --- a/tools/Makefile.am | ||
| 43 | +++ b/tools/Makefile.am | ||
| 44 | @@ -142,7 +142,7 @@ force-pylint: .phony | ||
| 45 | |||
| 46 | pylint: .pylint-stamp | ||
| 47 | .pylint-stamp: $(py_sources) | ||
| 48 | - -PYTHONPATH=$(PYTHONPATH) $(PYLINT) --rcfile=../pylint.conf \ | ||
| 49 | + -PYTHONPATH=$(LIRCPYTHONPATH) $(PYLINT) --rcfile=../pylint.conf \ | ||
| 50 | --msg-template='$(pylint_template)' $? && touch $@ | ||
| 51 | |||
| 52 | .phony: | ||
| 53 | -- | ||
| 54 | 2.30.2 | ||
| 55 | |||
diff --git a/meta-oe/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc_0.10.2.bb b/meta-oe/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc_0.10.2.bb index 234d347af7..458d9d7cdd 100644 --- a/meta-oe/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc_0.10.2.bb +++ b/meta-oe/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc_0.10.2.bb | |||
| @@ -11,16 +11,17 @@ DEPENDS = "libxslt-native alsa-lib libftdi libusb1 libusb-compat jack portaudio- | |||
| 11 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" | 11 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" |
| 12 | 12 | ||
| 13 | SRC_URI = "http://prdownloads.sourceforge.net/lirc/lirc-${PV}.tar.bz2 \ | 13 | SRC_URI = "http://prdownloads.sourceforge.net/lirc/lirc-${PV}.tar.bz2 \ |
| 14 | file://0001-Fix-build-on-32bit-arches-with-64bit-time_t.patch \ | 14 | file://0001-Fix-build-on-32bit-arches-with-64bit-time_t.patch \ |
| 15 | file://fix_build_errors.patch \ | 15 | file://fix_build_errors.patch \ |
| 16 | file://0001-mplay-Fix-build-with-musl.patch \ | 16 | file://0001-mplay-Fix-build-with-musl.patch \ |
| 17 | file://lircd.service \ | 17 | file://lircd.service \ |
| 18 | file://lircd.init \ | 18 | file://lircd.init \ |
| 19 | file://lircexec.init \ | 19 | file://lircexec.init \ |
| 20 | file://lircd.conf \ | 20 | file://lircd.conf \ |
| 21 | file://lirc_options.conf \ | 21 | file://lirc_options.conf \ |
| 22 | file://lirc.tmpfiles \ | 22 | file://lirc.tmpfiles \ |
| 23 | " | 23 | file://0001-Makefile.am-do-not-clobber-PYTHONPATH-from-build-env.patch \ |
| 24 | " | ||
| 24 | SRC_URI[sha256sum] = "3d44ec8274881cf262f160805641f0827ffcc20ade0d85e7e6f3b90e0d3d222a" | 25 | SRC_URI[sha256sum] = "3d44ec8274881cf262f160805641f0827ffcc20ade0d85e7e6f3b90e0d3d222a" |
| 25 | 26 | ||
| 26 | SYSTEMD_PACKAGES = "lirc lirc-exec" | 27 | SYSTEMD_PACKAGES = "lirc lirc-exec" |
