frr: add a patch to correctly check presence of python from pkg-config
PATCH 1/2 frr: add a patch to correctly check presence of python from pkg-config
--- ...check-for-python-x.y-emded.pc-not-py.patch | 28 +++++++++++++++++++ .../recipes-protocols/frr/frr_8.3.1.bb | 3 +- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 meta-networking/recipes-protocols/frr/frr/0001-m4-ax_python.m4-check-for-python-x.y-emded.pc-not-py.patch
meta-networking/recipes-protocols/frr/frr/0001-m4-ax_python.m4-check-for-python-x.y-emded.pc-not-py.patch new file +28 -0
@@ -0,0 +1,28 @@ +From 6a2984718d7c47612b07be46d663e7b5e5b7c57d Mon Sep 17 00:00:00 2001 +From: Alexander Kanavin <[email protected]> +Date: Wed, 9 Nov 2022 20:24:45 +0100 +Subject: [PATCH] m4/ax_python.m4: check for python-x.y-emded.pc, not + python-x.y.pc + +Only the embed version includes necessary linker flags to link +with libpython. + +Upstream-Status: Submitted [https://github.com/FRRouting/frr/pull/12298] +Signed-off-by: Alexander Kanavin <[email protected]> +--- + m4/ax_python.m4 | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/m4/ax_python.m4 b/m4/ax_python.m4 +index 91d12b99b..f5e603b96 100644 +--- a/m4/ax_python.m4 ++++ b/m4/ax_python.m4 +@@ -206,7 +206,7 @@ AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl + AC_MSG_CHECKING([whether pkg-config python-${tryver} is available]) + unset PYTHON_CFLAGS + unset PYTHON_LIBS +- pkg="python-${tryver}" ++ pkg="python-${tryver}-embed" + pkg="${pkg%-}" + _PKG_CONFIG([PYTHON_CFLAGS], [cflags], [${pkg}]) + _PKG_CONFIG([PYTHON_LIBS], [libs], [${pkg}])
meta-networking/recipes-protocols/frr/frr_8.3.1.bb +2 -1
@@ -15,7 +15,8 @@ SRC_URI = "git://github.com/FRRouting/frr.git;protocol=https;branch=stable/8.3 \ file://0001-bgpd-avoid-notify-race-between-io-and-main-pthreads.patch \ file://0001-bgpd-Make-sure-hdr-length-is-at-a-minimum-of-what-is.patch \ file://frr.pam \ - " + file://0001-m4-ax_python.m4-check-for-python-x.y-emded.pc-not-py.patch \ + " SRCREV = "a74f7a9ad9623e6f9654fe4a7177e5da0b194828"
Signature · 1 line
2.30.2
PATCH 2/2 lirc: correctly use PYTHONPATH
--- ...ot-clobber-PYTHONPATH-from-build-env.patch | 55 +++++++++++++++++++ .../recipes-connectivity/lirc/lirc_0.10.2.bb | 21 +++---- 2 files changed, 66 insertions(+), 10 deletions(-) create mode 100644 meta-oe/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc/0001-Makefile.am-do-not-clobber-PYTHONPATH-from-build-env.patch
meta-oe/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc/0001-Makefile.am-do-not-clobber-PYTHONPATH-from-build-env.patch new file +55 -0
@@ -0,0 +1,55 @@ +From 5e3b74927b4fef03d91518d235e9e3ba8cd7ab2e Mon Sep 17 00:00:00 2001 +From: Alexander Kanavin <[email protected]> +Date: Wed, 9 Nov 2022 20:49:41 +0100 +Subject: [PATCH] Makefile.am: do not clobber PYTHONPATH from build environment + +This environment variable has special significance for python, +and so lirc's variable has to be named something else. + +Signed-off-by: Alexander Kanavin <[email protected]> +--- + Makefile.am | 2 +- + pylint.mak | 2 +- + tools/Makefile.am | 2 +- + 3 files changed, 3 insertions(+), 3 deletions(-) + +diff --git a/Makefile.am b/Makefile.am +index 6718af1..fae423e 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -128,7 +128,7 @@ endif + + pylint: .phony + $(MAKE) -C tools pylint +- -PYTHONPATH=$(PYTHONPATH) $(PYLINT) --rcfile=pylint.conf \ ++ -PYTHONPATH=$(LIRCPYTHONPATH) $(PYLINT) --rcfile=pylint.conf \ + --msg-template='$(pylint_template)' $(py_PYTHON) + + pep8: $(py_PYTHON) +diff --git a/pylint.mak b/pylint.mak +index bf427ab..2692951 100644 +--- a/pylint.mak ++++ b/pylint.mak +@@ -1,5 +1,5 @@ + PYTHONPATH1 = $(abs_top_srcdir)/python-pkg/lirc: + PYTHONPATH2 = $(abs_top_srcdir)/python-pkg/lirc/lib/.libs +-PYTHONPATH = $(PYTHONPATH1):$(PYTHONPATH2) ++LIRCPYTHONPATH = $(PYTHONPATH1):$(PYTHONPATH2) + PYLINT = python3-pylint + pylint_template = {path}:{line}: [{msg_id}({symbol}), {obj}] {msg} +diff --git a/tools/Makefile.am b/tools/Makefile.am +index 85d1fd0..96b17f8 100644 +--- a/tools/Makefile.am ++++ b/tools/Makefile.am +@@ -142,7 +142,7 @@ force-pylint: .phony + + pylint: .pylint-stamp + .pylint-stamp: $(py_sources) +- -PYTHONPATH=$(PYTHONPATH) $(PYLINT) --rcfile=../pylint.conf \ ++ -PYTHONPATH=$(LIRCPYTHONPATH) $(PYLINT) --rcfile=../pylint.conf \ + --msg-template='$(pylint_template)' $? && touch $@ + + .phony: +-- +2.30.2 +
meta-oe/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc_0.10.2.bb +11 -10
@@ -11,16 +11,17 @@ DEPENDS = "libxslt-native alsa-lib libftdi libusb1 libusb-compat jack portaudio- LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" SRC_URI = "http://prdownloads.sourceforge.net/lirc/lirc-${PV}.tar.bz2 \ - file://0001-Fix-build-on-32bit-arches-with-64bit-time_t.patch \ - file://fix_build_errors.patch \ - file://0001-mplay-Fix-build-with-musl.patch \ - file://lircd.service \ - file://lircd.init \ - file://lircexec.init \ - file://lircd.conf \ - file://lirc_options.conf \ - file://lirc.tmpfiles \ -" + file://0001-Fix-build-on-32bit-arches-with-64bit-time_t.patch \ + file://fix_build_errors.patch \ + file://0001-mplay-Fix-build-with-musl.patch \ + file://lircd.service \ + file://lircd.init \ + file://lircexec.init \ + file://lircd.conf \ + file://lirc_options.conf \ + file://lirc.tmpfiles \ + file://0001-Makefile.am-do-not-clobber-PYTHONPATH-from-build-env.patch \ + " SRC_URI[sha256sum] = "3d44ec8274881cf262f160805641f0827ffcc20ade0d85e7e6f3b90e0d3d222a" SYSTEMD_PACKAGES = "lirc lirc-exec"
Signature · 1 line
2.30.2
Re: [oe] [PATCH 2/2] lirc: correctly use PYTHONPATH
Please don't change SRC_URI indentation, meta-oe uses 4 spaces for indentation with closing quote as the first character as described on
https://www.openembedded.org/wiki/Styleguide
Quoted 128 lines · Alexander Kanavin
Signed-off-by Alexander Kanavin <[email protected]>--- ...ot-clobber-PYTHONPATH-from-build-env.patch | 55 +++++++++++++++++++ .../recipes-connectivity/lirc/lirc_0.10.2.bb | 21 +++---- 2 files changed, 66 insertions(+), 10 deletions(-) create mode 100644
meta-oe/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc/0001-Makefile.am-do-not-clobber-PYTHONPATH-from-build-env.patchdiff --git
a/meta-oe/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc/0001-Makefile.am-do-not-clobber-PYTHONPATH-from-build-env.patchb/meta-oe/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc/0001-Makefile.am-do-not-clobber-PYTHONPATH-from-build-env.patchnew file mode 100644
index 000000000..089ed23c7
---/dev/null
+++b/meta-oe/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc/0001-Makefile.am-do-not-clobber-PYTHONPATH-from-build-env.patchmeta-oe/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc/0001-Makefile.am-do-not-clobber-PYTHONPATH-from-build-env.patch new file +4
-0@@ -0,0 +1,55 @@ +From 5e3b74927b4fef03d91518d235e9e3ba8cd7ab2e Mon Sep 17 00:00:00 2001 +From: Alexander Kanavin <[email protected]> +Date: Wed, 9 Nov 2022 20:49:41 +0100 +Subject: [PATCH] Makefile.am: do not clobber PYTHONPATH from buildenvironment
meta-oe/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc/0001-Makefile.am-do-not-clobber-PYTHONPATH-from-build-env.patch new file +51
-0+ +This environment variable has special significance for python, +and so lirc's variable has to be named something else. + +Signed-off-by: Alexander Kanavin <[email protected]> +--- + Makefile.am | 2 +- + pylint.mak | 2 +- + tools/Makefile.am | 2 +- + 3 files changed, 3 insertions(+), 3 deletions(-) + +diff --git a/Makefile.am b/Makefile.am +index 6718af1..fae423e 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -128,7 +128,7 @@ endif + + pylint: .phony + $(MAKE) -C tools pylint +- -PYTHONPATH=$(PYTHONPATH) $(PYLINT) --rcfile=pylint.conf \ ++ -PYTHONPATH=$(LIRCPYTHONPATH) $(PYLINT) --rcfile=pylint.conf \ + --msg-template='$(pylint_template)' $(py_PYTHON) + + pep8: $(py_PYTHON) +diff --git a/pylint.mak b/pylint.mak +index bf427ab..2692951 100644 +--- a/pylint.mak ++++ b/pylint.mak +@@ -1,5 +1,5 @@ + PYTHONPATH1 = $(abs_top_srcdir)/python-pkg/lirc: + PYTHONPATH2 = $(abs_top_srcdir)/python-pkg/lirc/lib/.libs +-PYTHONPATH = $(PYTHONPATH1):$(PYTHONPATH2) ++LIRCPYTHONPATH = $(PYTHONPATH1):$(PYTHONPATH2) + PYLINT = python3-pylint + pylint_template = {path}:{line}: [{msg_id}({symbol}), {obj}] {msg} +diff --git a/tools/Makefile.am b/tools/Makefile.am +index 85d1fd0..96b17f8 100644 +--- a/tools/Makefile.am ++++ b/tools/Makefile.am +@@ -142,7 +142,7 @@ force-pylint: .phony + + pylint: .pylint-stamp + .pylint-stamp: $(py_sources) +- -PYTHONPATH=$(PYTHONPATH) $(PYLINT) --rcfile=../pylint.conf \ ++ -PYTHONPATH=$(LIRCPYTHONPATH) $(PYLINT) --rcfile=../pylint.conf \ + --msg-template='$(pylint_template)' $? && touch $@ + + .phony: +-- +2.30.2 +(quoted diff) +0
-0lirc_0.10.2.bb b/meta-oe/dynamic-layers/meta-python/recipes-connectivity/lirc/ lirc_0.10.2.bb
index234d347af..458d9d7cd100644
--- 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(quoted diff) +0
-0@@ -11,16 +11,17 @@ DEPENDS = "libxslt-native alsa-lib libftdi libusb1libusb-compat jack portaudio-
LIC_FILES_CHKSUM= "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
SRC_URI= "http://prdownloads.sourceforge.net/lirc/lirc-${PV}.tar.bz2 \meta-oe/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc_0.10.2.bb +11
-10- file://0001-Fix-build-on-32bit-arches-with-64bit-time_t.patch \ - file://fix_build_errors.patch \ - file://0001-mplay-Fix-build-with-musl.patch \ - file://lircd.service \ - file://lircd.init \ - file://lircexec.init \ - file://lircd.conf \ - file://lirc_options.conf \ - file://lirc.tmpfiles \ -" + file://0001-Fix-build-on-32bit-arches-with-64bit-time_t.patch \ + file://fix_build_errors.patch \ + file://0001-mplay-Fix-build-with-musl.patch \ + file://lircd.service \ + file://lircd.init \ + file://lircexec.init \ + file://lircd.conf \ + file://lirc_options.conf \ + file://lirc.tmpfiles \ + file://0001-Makefile.am-do-not-clobber-PYTHONPATH-from-build-env.patch \ + " SRC_URI[sha256sum] ="
3d44ec8274881cf262f160805641f0827ffcc20ade0d85e7e6f3b90e0d3d222a"
SYSTEMD_PACKAGES= "lirc lirc-exec"
--
2.30.2-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#99509):
https://lists.openembedded.org/g/openembedded-devel/message/99509
Mute This Topic: https://lists.openembedded.org/mt/94921643/3617156
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Re: [oe] [PATCH 2/2] lirc: correctly use PYTHONPATH
This was re-set by devtool modify/devtool finish, I didn't specifically adjust it.
The styleguide says either way is ok. I'd suggest we spend our time on more important matters.
Alex
Quoted 117 lines · Martin Jansa
Please don't change
SRC_URIindentation, meta-oe uses 4 spaces for indentation with closing quote as the first character as described on https://www.openembedded.org/wiki/StyleguideQuoted 113 lines · Alexander Kanavin
Signed-off-by Alexander Kanavin <[email protected]>--- ...ot-clobber-PYTHONPATH-from-build-env.patch | 55 +++++++++++++++++++ .../recipes-connectivity/lirc/lirc_0.10.2.bb | 21 +++---- 2 files changed, 66 insertions(+), 10 deletions(-) create mode 100644 meta-oe/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc/0001-Makefile.am-do-not-clobber-PYTHONPATH-from-build-env.patchmeta-oe/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc/0001-Makefile.am-do-not-clobber-PYTHONPATH-from-build-env.patch new file +55
-0@@ -0,0 +1,55 @@ +From 5e3b74927b4fef03d91518d235e9e3ba8cd7ab2e Mon Sep 17 00:00:00 2001 +From: Alexander Kanavin <[email protected]> +Date: Wed, 9 Nov 2022 20:49:41 +0100 +Subject: [PATCH] Makefile.am: do not clobber PYTHONPATH from build environment + +This environment variable has special significance for python, +and so lirc's variable has to be named something else. + +Signed-off-by: Alexander Kanavin <[email protected]> +--- + Makefile.am | 2 +- + pylint.mak | 2 +- + tools/Makefile.am | 2 +- + 3 files changed, 3 insertions(+), 3 deletions(-) + +diff --git a/Makefile.am b/Makefile.am +index 6718af1..fae423e 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -128,7 +128,7 @@ endif + + pylint: .phony + $(MAKE) -C tools pylint +- -PYTHONPATH=$(PYTHONPATH) $(PYLINT) --rcfile=pylint.conf \ ++ -PYTHONPATH=$(LIRCPYTHONPATH) $(PYLINT) --rcfile=pylint.conf \ + --msg-template='$(pylint_template)' $(py_PYTHON) + + pep8: $(py_PYTHON) +diff --git a/pylint.mak b/pylint.mak +index bf427ab..2692951 100644 +--- a/pylint.mak ++++ b/pylint.mak +@@ -1,5 +1,5 @@ + PYTHONPATH1 = $(abs_top_srcdir)/python-pkg/lirc: + PYTHONPATH2 = $(abs_top_srcdir)/python-pkg/lirc/lib/.libs +-PYTHONPATH = $(PYTHONPATH1):$(PYTHONPATH2) ++LIRCPYTHONPATH = $(PYTHONPATH1):$(PYTHONPATH2) + PYLINT = python3-pylint + pylint_template = {path}:{line}: [{msg_id}({symbol}), {obj}] {msg} +diff --git a/tools/Makefile.am b/tools/Makefile.am +index 85d1fd0..96b17f8 100644 +--- a/tools/Makefile.am ++++ b/tools/Makefile.am +@@ -142,7 +142,7 @@ force-pylint: .phony + + pylint: .pylint-stamp + .pylint-stamp: $(py_sources) +- -PYTHONPATH=$(PYTHONPATH) $(PYLINT) --rcfile=../pylint.conf \ ++ -PYTHONPATH=$(LIRCPYTHONPATH) $(PYLINT) --rcfile=../pylint.conf \ + --msg-template='$(pylint_template)' $? && touch $@ + + .phony: +-- +2.30.2 +meta-oe/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc_0.10.2.bb +11
-11@@ -11,16 +11,17 @@ DEPENDS = "libxslt-native alsa-lib libftdi libusb1 libusb-compat jack portaudio- LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" SRC_URI = "http://prdownloads.sourceforge.net/lirc/lirc-${PV}.tar.bz2 \ - file://0001-Fix-build-on-32bit-arches-with-64bit-time_t.patch \ - file://fix_build_errors.patch \ - file://0001-mplay-Fix-build-with-musl.patch \ - file://lircd.service \ - file://lircd.init \ - file://lircexec.init \ - file://lircd.conf \ - file://lirc_options.conf \ - file://lirc.tmpfiles \ -" + file://0001-Fix-build-on-32bit-arches-with-64bit-time_t.patch \ + file://fix_build_errors.patch \ + file://0001-mplay-Fix-build-with-musl.patch \ + file://lircd.service \ + file://lircd.init \ + file://lircexec.init \ + file://lircd.conf \ + file://lirc_options.conf \ + file://lirc.tmpfiles \ + file://0001-Makefile.am-do-not-clobber-PYTHONPATH-from-build-env.patch \ + " SRC_URI[sha256sum] = "3d44ec8274881cf262f160805641f0827ffcc20ade0d85e7e6f3b90e0d3d222a" SYSTEMD_PACKAGES = "lirc lirc-exec" --2.30.2
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#99509): https://lists.openembedded.org/g/openembedded-devel/message/99509
Mute This Topic: https://lists.openembedded.org/mt/94921643/3617156
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Re: [oe] [PATCH 2/2] lirc: correctly use PYTHONPATH
Style guide says:
"Some layers prefer to use four-space indentation on sucessive lines and prefer the closing quote as the first character"
And this commit:
https://git.openembedded.org/meta-openembedded/commit/?id=a45830a39bb47a9eab27980d52966226c9504ea4
shows that meta-oe/meta-* layers belong to this group.
Yes, it's not 100% consistent, but lets not make it less consistent, just because "devtool finish" prepared such change.
Quoted 150 lines · Alexander Kanavin
This was re-set by devtool modify/devtool finish, I didn't specifically adjust it.
The styleguide says either way is ok. I'd suggest we spend our time on more important matters.
Alex
Quoted 2 lines · Martin Jansa
Please don't change
SRC_URIindentation, meta-oe uses 4 spaces forindentation with closing quote as the first character as described on
https://www.openembedded.org/wiki/StyleguideQuoted 2 lines
On Wed, Nov 9, 2022 at 9:06 PM Alexander Kanavin <[email protected]>
Quoted 7 lines · wrote:
Quoted 7 lines
Signed-off-by Alexander Kanavin <[email protected]>--- ...ot-clobber-PYTHONPATH-from-build-env.patch | 55 +++++++++++++++++++ .../recipes-connectivity/lirc/lirc_0.10.2.bb | 21 +++---- 2 files changed, 66 insertions(+), 10 deletions(-) create mode 100644
meta-oe/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc/0001-Makefile.am-do-not-clobber-PYTHONPATH-from-build-env.patchQuoted 2 lines
Quoted 2 lines
diff --git
a/meta-oe/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc/0001-Makefile.am-do-not-clobber-PYTHONPATH-from-build-env.patchb/meta-oe/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc/0001-Makefile.am-do-not-clobber-PYTHONPATH-from-build-env.patchQuoted 4 lines
Quoted 4 lines
new file mode 100644
index 000000000..089ed23c7
---/dev/null
+++
b/meta-oe/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc/0001-Makefile.am-do-not-clobber-PYTHONPATH-from-build-env.patchQuoted 5 lines
meta-oe/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc/0001-Makefile.am-do-not-clobber-PYTHONPATH-from-build-env.patch line 4
Quoted 5 lines
meta-oe/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc/0001-Makefile.am-do-not-clobber-PYTHONPATH-from-build-env.patch new file +4
-0@@ -0,0 +1,55 @@ +From 5e3b74927b4fef03d91518d235e9e3ba8cd7ab2e Mon Sep 17 00:00:00 2001 +From: Alexander Kanavin <[email protected]> +Date: Wed, 9 Nov 2022 20:49:41 +0100 +Subject: [PATCH] Makefile.am: do not clobber PYTHONPATH from buildenvironment
Quoted 37 lines
Quoted 37 lines
meta-oe/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc/0001-Makefile.am-do-not-clobber-PYTHONPATH-from-build-env.patch new file +37
-0+ +This environment variable has special significance for python, +and so lirc's variable has to be named something else. + +Signed-off-by: Alexander Kanavin <[email protected]> +--- + Makefile.am | 2 +- + pylint.mak | 2 +- + tools/Makefile.am | 2 +- + 3 files changed, 3 insertions(+), 3 deletions(-) + +diff --git a/Makefile.am b/Makefile.am +index 6718af1..fae423e 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -128,7 +128,7 @@ endif + + pylint: .phony + $(MAKE) -C tools pylint +- -PYTHONPATH=$(PYTHONPATH) $(PYLINT) --rcfile=pylint.conf \ ++ -PYTHONPATH=$(LIRCPYTHONPATH) $(PYLINT) --rcfile=pylint.conf \ + --msg-template='$(pylint_template)' $(py_PYTHON) + + pep8: $(py_PYTHON) +diff --git a/pylint.mak b/pylint.mak +index bf427ab..2692951 100644 +--- a/pylint.mak ++++ b/pylint.mak +@@ -1,5 +1,5 @@ + PYTHONPATH1 = $(abs_top_srcdir)/python-pkg/lirc: + PYTHONPATH2 = $(abs_top_srcdir)/python-pkg/lirc/lib/.libs +-PYTHONPATH = $(PYTHONPATH1):$(PYTHONPATH2) ++LIRCPYTHONPATH = $(PYTHONPATH1):$(PYTHONPATH2) + PYLINT = python3-pylint + pylint_template = {path}:{line}: [{msg_id}({symbol}), {obj}] {msg} +diff --git a/tools/Makefile.am b/tools/Makefile.am +index 85d1fd0..96b17f8 100644Quoted 8 lines
meta-oe/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc/0001-Makefile.am-do-not-clobber-PYTHONPATH-from-build-env.patch
Quoted 8 lines
meta-oe/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc/0001-Makefile.am-do-not-clobber-PYTHONPATH-from-build-env.patch new file +8
-0+--- a/tools/Makefile.am ++++ b/tools/Makefile.am +@@ -142,7 +142,7 @@ force-pylint: .phony + + pylint: .pylint-stamp + .pylint-stamp: $(py_sources) +- -PYTHONPATH=$(PYTHONPATH) $(PYLINT) --rcfile=../pylint.conf \ ++ -PYTHONPATH=$(LIRCPYTHONPATH) $(PYLINT) --rcfile=../pylint.conf\
Quoted 7 lines
Quoted 7 lines
meta-oe/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc/0001-Makefile.am-do-not-clobber-PYTHONPATH-from-build-env.patch new file +6
-0+ --msg-template='$(pylint_template)' $? && touch $@ + + .phony: +-- +2.30.2 +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
Quoted 2 lines
Quoted 2 lines
index
234d347af..458d9d7cd100644
--- a/meta-oe/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc_0.10.2.bb
Quoted 1 line
Quoted 1 line
+++ b/meta-oe/dynamic-layers/meta-python/recipes-connectivity/lirc/
lirc_0.10.2.bb
Quoted 1 line
Review DEPENDS = "libxslt-native alsa-lib libftdi libusb1
Quoted 1 line
(quoted diff) +0
-0@@ -11,16 +11,17 @@ DEPENDS = "libxslt-native alsa-lib libftdi libusb1libusb-compat jack portaudio-
Quoted 1 line
Review DEPENDS = "libxslt-native alsa-lib libftdi libusb1 · line 11
Quoted 1 line
(quoted diff) +0
-0LIC_FILES_CHKSUM ="file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
Quoted 2 lines
Review DEPENDS = "libxslt-native alsa-lib libftdi libusb1 · line 12
Quoted 2 lines
(quoted diff) +0
-0SRC_URI = "http://prdownloads.sourceforge.net/lirc/lirc-${PV}.tar.bz2\
Quoted 11 lines
meta-oe/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc_0.10.2.bb DEPENDS = "libxslt-native alsa-lib libftdi libusb1 libusb-compat jack portaudio-
Quoted 11 lines
meta-oe/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc_0.10.2.bb +1
-10- file://0001-Fix-build-on-32bit-arches-with-64bit-time_t.patch \ - file://fix_build_errors.patch \ - file://0001-mplay-Fix-build-with-musl.patch \ - file://lircd.service \ - file://lircd.init \ - file://lircexec.init \ - file://lircd.conf \ - file://lirc_options.conf \ - file://lirc.tmpfiles \ -" +file://0001-Fix-build-on-32bit-arches-with-64bit-time_t.patch \
Quoted 9 lines
meta-oe/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc_0.10.2.bb DEPENDS = "libxslt-native alsa-lib libftdi libusb1 libusb-compat jack portaudio-
Quoted 9 lines
meta-oe/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc_0.10.2.bb +9
-0+ file://fix_build_errors.patch \ + file://0001-mplay-Fix-build-with-musl.patch \ + file://lircd.service \ + file://lircd.init \ + file://lircexec.init \ + file://lircd.conf \ + file://lirc_options.conf \ + file://lirc.tmpfiles \ +file://0001-Makefile.am-do-not-clobber-PYTHONPATH-from-build-env.patch \
Quoted 2 lines
Review DEPENDS = "libxslt-native alsa-lib libftdi libusb1 · line 24
Quoted 2 lines
(quoted diff) +1
-0+ " SRC_URI[sha256sum] ="
3d44ec8274881cf262f160805641f0827ffcc20ade0d85e7e6f3b90e0d3d222a"Quoted 9 lines
Quoted 9 lines
(quoted diff) +0
-1SYSTEMD_PACKAGES = "lirc lirc-exec" --2.30.2
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#99509):https://lists.openembedded.org/g/openembedded-devel/message/99509
Quoted 3 lines
Quoted 3 lines
Mute This Topic: https://lists.openembedded.org/mt/94921643/3617156
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsubQuoted 2 lines
Quoted 2 lines
-=-=-=-=-=-=-=-=-=-=-=-
Re: [oe] [PATCH 2/2] lirc: correctly use PYTHONPATH
This commit shows that at some point in the past you fixed up formatting to your preference. It does not set one way or another way as the 'correct' one, particularly as it is not mentioned anywhere in the layer.
And honestly, I don't care if it's consistent or not, and neither should you or anyone else. It helps nobody to spend time and energy enforcing those 4 spaces throughout the layer, as opposed to some recipes having 4 spaces and some aligning with the value on the first line. What's so bad about that, seriously?
If you feel strongly about this, you can just run a linter periodically to fix it up.
Alex
Quoted 138 lines · Martin Jansa
Style guide says:
"Some layers prefer to use four-space indentation on sucessive lines and prefer the closing quote as the first character"And this commit:
https://git.openembedded.org/meta-openembedded/commit/?id=a45830a39bb47a9eab27980d52966226c9504ea4
shows that meta-oe/meta-* layers belong to this group.Yes, it's not 100% consistent, but lets not make it less consistent, just because "devtool finish" prepared such change.
Quoted 127 lines · Alexander Kanavin
This was re-set by devtool modify/devtool finish, I didn't specifically adjust it.
The styleguide says either way is ok. I'd suggest we spend our time on more important matters.
Alex
Quoted 117 lines · Martin Jansa
Please don't change
SRC_URIindentation, meta-oe uses 4 spaces for indentation with closing quote as the first character as described on https://www.openembedded.org/wiki/StyleguideQuoted 113 lines · Alexander Kanavin
Signed-off-by Alexander Kanavin <[email protected]>--- ...ot-clobber-PYTHONPATH-from-build-env.patch | 55 +++++++++++++++++++ .../recipes-connectivity/lirc/lirc_0.10.2.bb | 21 +++---- 2 files changed, 66 insertions(+), 10 deletions(-) create mode 100644 meta-oe/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc/0001-Makefile.am-do-not-clobber-PYTHONPATH-from-build-env.patchmeta-oe/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc/0001-Makefile.am-do-not-clobber-PYTHONPATH-from-build-env.patch new file +55
-0@@ -0,0 +1,55 @@ +From 5e3b74927b4fef03d91518d235e9e3ba8cd7ab2e Mon Sep 17 00:00:00 2001 +From: Alexander Kanavin <[email protected]> +Date: Wed, 9 Nov 2022 20:49:41 +0100 +Subject: [PATCH] Makefile.am: do not clobber PYTHONPATH from build environment + +This environment variable has special significance for python, +and so lirc's variable has to be named something else. + +Signed-off-by: Alexander Kanavin <[email protected]> +--- + Makefile.am | 2 +- + pylint.mak | 2 +- + tools/Makefile.am | 2 +- + 3 files changed, 3 insertions(+), 3 deletions(-) + +diff --git a/Makefile.am b/Makefile.am +index 6718af1..fae423e 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -128,7 +128,7 @@ endif + + pylint: .phony + $(MAKE) -C tools pylint +- -PYTHONPATH=$(PYTHONPATH) $(PYLINT) --rcfile=pylint.conf \ ++ -PYTHONPATH=$(LIRCPYTHONPATH) $(PYLINT) --rcfile=pylint.conf \ + --msg-template='$(pylint_template)' $(py_PYTHON) + + pep8: $(py_PYTHON) +diff --git a/pylint.mak b/pylint.mak +index bf427ab..2692951 100644 +--- a/pylint.mak ++++ b/pylint.mak +@@ -1,5 +1,5 @@ + PYTHONPATH1 = $(abs_top_srcdir)/python-pkg/lirc: + PYTHONPATH2 = $(abs_top_srcdir)/python-pkg/lirc/lib/.libs +-PYTHONPATH = $(PYTHONPATH1):$(PYTHONPATH2) ++LIRCPYTHONPATH = $(PYTHONPATH1):$(PYTHONPATH2) + PYLINT = python3-pylint + pylint_template = {path}:{line}: [{msg_id}({symbol}), {obj}] {msg} +diff --git a/tools/Makefile.am b/tools/Makefile.am +index 85d1fd0..96b17f8 100644 +--- a/tools/Makefile.am ++++ b/tools/Makefile.am +@@ -142,7 +142,7 @@ force-pylint: .phony + + pylint: .pylint-stamp + .pylint-stamp: $(py_sources) +- -PYTHONPATH=$(PYTHONPATH) $(PYLINT) --rcfile=../pylint.conf \ ++ -PYTHONPATH=$(LIRCPYTHONPATH) $(PYLINT) --rcfile=../pylint.conf \ + --msg-template='$(pylint_template)' $? && touch $@ + + .phony: +-- +2.30.2 +meta-oe/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc_0.10.2.bb +11
-11@@ -11,16 +11,17 @@ DEPENDS = "libxslt-native alsa-lib libftdi libusb1 libusb-compat jack portaudio- LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" SRC_URI = "http://prdownloads.sourceforge.net/lirc/lirc-${PV}.tar.bz2 \ - file://0001-Fix-build-on-32bit-arches-with-64bit-time_t.patch \ - file://fix_build_errors.patch \ - file://0001-mplay-Fix-build-with-musl.patch \ - file://lircd.service \ - file://lircd.init \ - file://lircexec.init \ - file://lircd.conf \ - file://lirc_options.conf \ - file://lirc.tmpfiles \ -" + file://0001-Fix-build-on-32bit-arches-with-64bit-time_t.patch \ + file://fix_build_errors.patch \ + file://0001-mplay-Fix-build-with-musl.patch \ + file://lircd.service \ + file://lircd.init \ + file://lircexec.init \ + file://lircd.conf \ + file://lirc_options.conf \ + file://lirc.tmpfiles \ + file://0001-Makefile.am-do-not-clobber-PYTHONPATH-from-build-env.patch \ + " SRC_URI[sha256sum] = "3d44ec8274881cf262f160805641f0827ffcc20ade0d85e7e6f3b90e0d3d222a" SYSTEMD_PACKAGES = "lirc lirc-exec" --2.30.2
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#99509): https://lists.openembedded.org/g/openembedded-devel/message/99509
Mute This Topic: https://lists.openembedded.org/mt/94921643/3617156
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Re: [oe] [PATCH 2/2] lirc: correctly use PYTHONPATH
Well the obvious difference is that your commit which I was reviewing chows 11 changed lines, instead of just 1 added .patch file in SRC_URI.
Style changes shouldn't be applied together with functional changes, especially when they make it worse.
Quoted 188 lines · Alexander Kanavin
This commit shows that at some point in the past you fixed up formatting to your preference. It does not set one way or another way as the 'correct' one, particularly as it is not mentioned anywhere in the layer.
And honestly, I don't care if it's consistent or not, and neither should you or anyone else. It helps nobody to spend time and energy enforcing those 4 spaces throughout the layer, as opposed to some recipes having 4 spaces and some aligning with the value on the first line. What's so bad about that, seriously?
If you feel strongly about this, you can just run a linter periodically to fix it up.
Alex
Quoted 3 lines · Martin Jansa
Style guide says:
"Some layers prefer to use four-space indentation on sucessive lines andprefer the closing quote as the first character"
Quoted 3 lines
And this commit:
https://git.openembedded.org/meta-openembedded/commit/?id=a45830a39bb47a9eab27980d52966226c9504ea4
Quoted 3 lines
shows that meta-oe/meta-* layers belong to this group.
Yes, it's not 100% consistent, but lets not make it less consistent,
just because "devtool finish" prepared such change.
Quoted 2 lines
On Wed, Nov 9, 2022 at 9:32 PM Alexander Kanavin <[email protected]>
Quoted 10 lines · wrote:
Quoted 10 lines
This was re-set by devtool modify/devtool finish, I didn't specifically adjust it.
The styleguide says either way is ok. I'd suggest we spend our time on more important matters.
Alex
On Wed, 9 Nov 2022 at 21:16, Martin Jansa <[email protected]>
Quoted 2 lines · wrote:
Quoted 2 lines
Quoted 2 lines
Please don't change
SRC_URIindentation, meta-oe uses 4 spaces forindentation with closing quote as the first character as described on
https://www.openembedded.org/wiki/StyleguideQuoted 2 lines
Quoted 2 lines
Quoted 2 lines
On Wed, Nov 9, 2022 at 9:06 PM Alexander Kanavin <
Quoted 4 lines · [email protected]> wrote:
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Signed-off-by Alexander Kanavin <[email protected]>--- ...ot-clobber-PYTHONPATH-from-build-env.patch | 55+++++++++++++++++++
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
.../recipes-connectivity/lirc/lirc_0.10.2.bb | 21 +++---- 2 files changed, 66 insertions(+), 10 deletions(-) create mode 100644
meta-oe/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc/0001-Makefile.am-do-not-clobber-PYTHONPATH-from-build-env.patchQuoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
diff --git
a/meta-oe/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc/0001-Makefile.am-do-not-clobber-PYTHONPATH-from-build-env.patchb/meta-oe/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc/0001-Makefile.am-do-not-clobber-PYTHONPATH-from-build-env.patchQuoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
new file mode 100644
index 000000000..089ed23c7
---/dev/null
+++
b/meta-oe/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc/0001-Makefile.am-do-not-clobber-PYTHONPATH-from-build-env.patchQuoted 2 lines
Quoted 2 lines
Quoted 2 lines
Review line 1
Quoted 2 lines
(quoted diff) +1
-0@@ -0,0 +1,55 @@ +From 5e3b74927b4fef03d91518d235e9e3ba8cd7ab2e Mon Sep 17 00:00:002001
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
meta-oe/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc/0001-Makefile.am-do-not-clobber-PYTHONPATH-from-build-env.patch
Quoted 3 lines
meta-oe/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc/0001-Makefile.am-do-not-clobber-PYTHONPATH-from-build-env.patch new file +3
-0+From: Alexander Kanavin <[email protected]> +Date: Wed, 9 Nov 2022 20:49:41 +0100 +Subject: [PATCH] Makefile.am: do not clobber PYTHONPATH from buildenvironment
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
meta-oe/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc/0001-Makefile.am-do-not-clobber-PYTHONPATH-from-build-env.patch new file +13
-0+ +This environment variable has special significance for python, +and so lirc's variable has to be named something else. + +Signed-off-by: Alexander Kanavin <[email protected]> +--- + Makefile.am | 2 +- + pylint.mak | 2 +- + tools/Makefile.am | 2 +- + 3 files changed, 3 insertions(+), 3 deletions(-) + +diff --git a/Makefile.am b/Makefile.am +index 6718af1..fae423e 100644Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
meta-oe/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc/0001-Makefile.am-do-not-clobber-PYTHONPATH-from-build-env.patch
Quoted 8 lines
meta-oe/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc/0001-Makefile.am-do-not-clobber-PYTHONPATH-from-build-env.patch new file +8
-0+--- a/Makefile.am ++++ b/Makefile.am +@@ -128,7 +128,7 @@ endif + + pylint: .phony + $(MAKE) -C tools pylint +- -PYTHONPATH=$(PYTHONPATH) $(PYLINT) --rcfile=pylint.conf \ ++ -PYTHONPATH=$(LIRCPYTHONPATH) $(PYLINT) --rcfile=pylint.conf\
Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
meta-oe/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc/0001-Makefile.am-do-not-clobber-PYTHONPATH-from-build-env.patch new file +16
-0+ --msg-template='$(pylint_template)' $(py_PYTHON) + + pep8: $(py_PYTHON) +diff --git a/pylint.mak b/pylint.mak +index bf427ab..2692951 100644 +--- a/pylint.mak ++++ b/pylint.mak +@@ -1,5 +1,5 @@ + PYTHONPATH1 = $(abs_top_srcdir)/python-pkg/lirc: + PYTHONPATH2 = $(abs_top_srcdir)/python-pkg/lirc/lib/.libs +-PYTHONPATH = $(PYTHONPATH1):$(PYTHONPATH2) ++LIRCPYTHONPATH = $(PYTHONPATH1):$(PYTHONPATH2) + PYLINT = python3-pylint + pylint_template = {path}:{line}: [{msg_id}({symbol}), {obj}] {msg} +diff --git a/tools/Makefile.am b/tools/Makefile.am +index 85d1fd0..96b17f8 100644Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
meta-oe/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc/0001-Makefile.am-do-not-clobber-PYTHONPATH-from-build-env.patch
Quoted 8 lines
meta-oe/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc/0001-Makefile.am-do-not-clobber-PYTHONPATH-from-build-env.patch new file +8
-0+--- a/tools/Makefile.am ++++ b/tools/Makefile.am +@@ -142,7 +142,7 @@ force-pylint: .phony + + pylint: .pylint-stamp + .pylint-stamp: $(py_sources) +- -PYTHONPATH=$(PYTHONPATH) $(PYLINT) --rcfile=../pylint.conf \ ++ -PYTHONPATH=$(LIRCPYTHONPATH) $(PYLINT)--rcfile=../pylint.conf \
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
meta-oe/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc/0001-Makefile.am-do-not-clobber-PYTHONPATH-from-build-env.patch new file +6
-0+ --msg-template='$(pylint_template)' $? && touch $@ + + .phony: +-- +2.30.2 +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
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
index
234d347af..458d9d7cd100644
--- a/meta-oe/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc_0.10.2.bb
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
+++ b/meta-oe/dynamic-layers/meta-python/recipes-connectivity/lirc/
lirc_0.10.2.bb
Quoted 1 line
Quoted 1 line
Quoted 1 line
Review DEPENDS = "libxslt-native alsa-lib libftdi
Quoted 1 line
(quoted diff) +0
-0@@ -11,16 +11,17 @@ DEPENDS = "libxslt-native alsa-lib libftdilibusb1 libusb-compat jack portaudio-
Quoted 1 line
Quoted 1 line
Quoted 1 line
Review DEPENDS = "libxslt-native alsa-lib libftdi · line 11
Quoted 1 line
(quoted diff) +0
-0LIC_FILES_CHKSUM ="file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Review DEPENDS = "libxslt-native alsa-lib libftdi · line 12
Quoted 2 lines
(quoted diff) +0
-0SRC_URI = "http://prdownloads.sourceforge.net/lirc/lirc-${PV}.tar.bz2 \
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
meta-oe/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc_0.10.2.bb DEPENDS = "libxslt-native alsa-lib libftdi libusb1 libusb-compat jack portaudio-
Quoted 11 lines
meta-oe/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc_0.10.2.bb +1
-10- file://0001-Fix-build-on-32bit-arches-with-64bit-time_t.patch \ - file://fix_build_errors.patch \ - file://0001-mplay-Fix-build-with-musl.patch \ - file://lircd.service \ - file://lircd.init \ - file://lircexec.init \ - file://lircd.conf \ - file://lirc_options.conf \ - file://lirc.tmpfiles \ -" +file://0001-Fix-build-on-32bit-arches-with-64bit-time_t.patch \
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
meta-oe/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc_0.10.2.bb DEPENDS = "libxslt-native alsa-lib libftdi libusb1 libusb-compat jack portaudio-
Quoted 9 lines
meta-oe/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc_0.10.2.bb +9
-0+ file://fix_build_errors.patch \ + file://0001-mplay-Fix-build-with-musl.patch \ + file://lircd.service \ + file://lircd.init \ + file://lircexec.init \ + file://lircd.conf \ + file://lirc_options.conf \ + file://lirc.tmpfiles \ +file://0001-Makefile.am-do-not-clobber-PYTHONPATH-from-build-env.patch \
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Review DEPENDS = "libxslt-native alsa-lib libftdi · line 24
Quoted 2 lines
(quoted diff) +1
-0+ " SRC_URI[sha256sum] ="
3d44ec8274881cf262f160805641f0827ffcc20ade0d85e7e6f3b90e0d3d222a"Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
(quoted diff) +0
-1SYSTEMD_PACKAGES = "lirc lirc-exec" --2.30.2
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#99509):https://lists.openembedded.org/g/openembedded-devel/message/99509
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Mute This Topic: https://lists.openembedded.org/mt/94921643/3617156
Group Owner: [email protected] Unsubscribe:https://lists.openembedded.org/g/openembedded-devel/unsub [ [email protected]]
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
-=-=-=-=-=-=-=-=-=-=-=-
Re: [oe] [PATCH 2/2] lirc: correctly use PYTHONPATH
That I can certainly agree with. Still, the problem is that devtool knows only one style of formatting and resets to it, and I'm not sure it's a good use of time to implement auto-detection of the other style when modifying recipes.
Alex
Quoted 162 lines · Martin Jansa
Well the obvious difference is that your commit which I was reviewing chows 11 changed lines, instead of just 1 added .patch file in
SRC_URI.Style changes shouldn't be applied together with functional changes, especially when they make it worse.
Quoted 156 lines · Alexander Kanavin
This commit shows that at some point in the past you fixed up formatting to your preference. It does not set one way or another way as the 'correct' one, particularly as it is not mentioned anywhere in the layer.
And honestly, I don't care if it's consistent or not, and neither should you or anyone else. It helps nobody to spend time and energy enforcing those 4 spaces throughout the layer, as opposed to some recipes having 4 spaces and some aligning with the value on the first line. What's so bad about that, seriously?
If you feel strongly about this, you can just run a linter periodically to fix it up.
Alex
Quoted 138 lines · Martin Jansa
Style guide says:
"Some layers prefer to use four-space indentation on sucessive lines and prefer the closing quote as the first character"And this commit:
https://git.openembedded.org/meta-openembedded/commit/?id=a45830a39bb47a9eab27980d52966226c9504ea4
shows that meta-oe/meta-* layers belong to this group.Yes, it's not 100% consistent, but lets not make it less consistent, just because "devtool finish" prepared such change.
Quoted 127 lines · Alexander Kanavin
This was re-set by devtool modify/devtool finish, I didn't specifically adjust it.
The styleguide says either way is ok. I'd suggest we spend our time on more important matters.
Alex
Quoted 117 lines · Martin Jansa
Please don't change
SRC_URIindentation, meta-oe uses 4 spaces for indentation with closing quote as the first character as described on https://www.openembedded.org/wiki/StyleguideQuoted 113 lines · Alexander Kanavin
Signed-off-by Alexander Kanavin <[email protected]>--- ...ot-clobber-PYTHONPATH-from-build-env.patch | 55 +++++++++++++++++++ .../recipes-connectivity/lirc/lirc_0.10.2.bb | 21 +++---- 2 files changed, 66 insertions(+), 10 deletions(-) create mode 100644 meta-oe/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc/0001-Makefile.am-do-not-clobber-PYTHONPATH-from-build-env.patchmeta-oe/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc/0001-Makefile.am-do-not-clobber-PYTHONPATH-from-build-env.patch new file +55
-0@@ -0,0 +1,55 @@ +From 5e3b74927b4fef03d91518d235e9e3ba8cd7ab2e Mon Sep 17 00:00:00 2001 +From: Alexander Kanavin <[email protected]> +Date: Wed, 9 Nov 2022 20:49:41 +0100 +Subject: [PATCH] Makefile.am: do not clobber PYTHONPATH from build environment + +This environment variable has special significance for python, +and so lirc's variable has to be named something else. + +Signed-off-by: Alexander Kanavin <[email protected]> +--- + Makefile.am | 2 +- + pylint.mak | 2 +- + tools/Makefile.am | 2 +- + 3 files changed, 3 insertions(+), 3 deletions(-) + +diff --git a/Makefile.am b/Makefile.am +index 6718af1..fae423e 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -128,7 +128,7 @@ endif + + pylint: .phony + $(MAKE) -C tools pylint +- -PYTHONPATH=$(PYTHONPATH) $(PYLINT) --rcfile=pylint.conf \ ++ -PYTHONPATH=$(LIRCPYTHONPATH) $(PYLINT) --rcfile=pylint.conf \ + --msg-template='$(pylint_template)' $(py_PYTHON) + + pep8: $(py_PYTHON) +diff --git a/pylint.mak b/pylint.mak +index bf427ab..2692951 100644 +--- a/pylint.mak ++++ b/pylint.mak +@@ -1,5 +1,5 @@ + PYTHONPATH1 = $(abs_top_srcdir)/python-pkg/lirc: + PYTHONPATH2 = $(abs_top_srcdir)/python-pkg/lirc/lib/.libs +-PYTHONPATH = $(PYTHONPATH1):$(PYTHONPATH2) ++LIRCPYTHONPATH = $(PYTHONPATH1):$(PYTHONPATH2) + PYLINT = python3-pylint + pylint_template = {path}:{line}: [{msg_id}({symbol}), {obj}] {msg} +diff --git a/tools/Makefile.am b/tools/Makefile.am +index 85d1fd0..96b17f8 100644 +--- a/tools/Makefile.am ++++ b/tools/Makefile.am +@@ -142,7 +142,7 @@ force-pylint: .phony + + pylint: .pylint-stamp + .pylint-stamp: $(py_sources) +- -PYTHONPATH=$(PYTHONPATH) $(PYLINT) --rcfile=../pylint.conf \ ++ -PYTHONPATH=$(LIRCPYTHONPATH) $(PYLINT) --rcfile=../pylint.conf \ + --msg-template='$(pylint_template)' $? && touch $@ + + .phony: +-- +2.30.2 +meta-oe/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc_0.10.2.bb +11
-11@@ -11,16 +11,17 @@ DEPENDS = "libxslt-native alsa-lib libftdi libusb1 libusb-compat jack portaudio- LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" SRC_URI = "http://prdownloads.sourceforge.net/lirc/lirc-${PV}.tar.bz2 \ - file://0001-Fix-build-on-32bit-arches-with-64bit-time_t.patch \ - file://fix_build_errors.patch \ - file://0001-mplay-Fix-build-with-musl.patch \ - file://lircd.service \ - file://lircd.init \ - file://lircexec.init \ - file://lircd.conf \ - file://lirc_options.conf \ - file://lirc.tmpfiles \ -" + file://0001-Fix-build-on-32bit-arches-with-64bit-time_t.patch \ + file://fix_build_errors.patch \ + file://0001-mplay-Fix-build-with-musl.patch \ + file://lircd.service \ + file://lircd.init \ + file://lircexec.init \ + file://lircd.conf \ + file://lirc_options.conf \ + file://lirc.tmpfiles \ + file://0001-Makefile.am-do-not-clobber-PYTHONPATH-from-build-env.patch \ + " SRC_URI[sha256sum] = "3d44ec8274881cf262f160805641f0827ffcc20ade0d85e7e6f3b90e0d3d222a" SYSTEMD_PACKAGES = "lirc lirc-exec" --2.30.2
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#99509): https://lists.openembedded.org/g/openembedded-devel/message/99509
Mute This Topic: https://lists.openembedded.org/mt/94921643/3617156
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-