Skip to contentSkip to conversation

libgpiod: improve FILESEXTRAPATHS

PATCH In review Martin Jansa 2 participants 12 messages Oct 31, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/11 libgpiod: improve FILESEXTRAPATHS

* I thought that PN in FILESEXTRAPATHS worked as everywhere else and as described in:
https://lore.kernel.org/all/[email protected]/T/

* but surprisingly (to me)
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}-2.x:"
ends with effectively ${BPN}-2.x in bitbake -e (and the build doesn't fail to fetch file://gpio-manager.init in lib32-libgpiod build

* I've tried with kirkstone and dunfell as well and it ends with
"libgpiod-2.x" for all 3 PNs:
dunfell $ grep ^FILESEXTRAPATHS= env.* | sed 's@/OE.*dunfell/@@g' env.lib32-libgpiod:FILESEXTRAPATHS="meta-oe/meta-oe/recipes-support/libgpiod/libgpiod-2.x:__default:" env.libgpiod:FILESEXTRAPATHS="meta-oe/meta-oe/recipes-support/libgpiod/libgpiod-2.x:__default:" env.libgpiod-native:FILESEXTRAPATHS="meta-oe/meta-oe/recipes-support/libgpiod/libgpiod-2.x:__default:"

dunfell $ grep ^PN= env.*
env.lib32-libgpiod:PN="lib32-libgpiod"
env.libgpiod:PN="libgpiod"
env.libgpiod-native:PN="libgpiod-native"

There is the QA check for PN in SRC_URI, maybe I took it a bit further and updated all FILESEXTRAPATHS references as well in our layers (in 2023) even when it wasn't causing build failures, e.g.:
https://github.com/webosose/meta-webosose/commit/38d3cbf010a5e4e112d82ee473eecc718d9cc687

* so it's not so important to use BPN, but it's a bit clearer as that's what it ends evaluated into and what default FILESPATH is using as well:

  meta/classes-global/base.bbclass:FILESPATH = "${@base_set_filespath(["${FILE_DIRNAME}/${BP}", "${FILE_DIRNAME}/${BPN}", "${FILE_DIRNAME}/files"], d)}"
  meta/conf/bitbake.conf:#FILESPATH = "${FILE_DIRNAME}/${PF}:${FILE_DIRNAME}/${P}:${FILE_DIRNAME}/${PN}:${FILE_DIRNAME}/${BP}:${FILE_DIRNAME}/${BPN}:${FILE_DIRNAME}/files:${FILE_DIRNAME}"

BPN was added in denzil 2009 (and FILESPATH moved to base.bbclass, bitbake.conf has commented-out value since then):
https://git.openembedded.org/openembedded-core/commit/?h=denzil&id=94c895aad5ad286f172b04bc33ba670220d5eba8

PF was dropped in dylan 2012:
https://git.openembedded.org/openembedded-core/commit/?h=dylan&id=3efa13cd76bbd5611805021945fc9def88d9fd93

P and PN were dropped shortly after in dylan 2012:
https://git.openembedded.org/openembedded-core/commit/?h=dylan&id=fb359583b659cda643973fa285002aaffb729a51

---
 meta-oe/recipes-support/libgpiod/libgpiod_1.6.5.bb | 2 +-
 meta-oe/recipes-support/libgpiod/libgpiod_2.2.bb   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
meta-oe/recipes-support/libgpiod/libgpiod_1.6.5.bb +1 -1
index 0795839492..dac7dd36fc 100644
@@ -7,7 +7,7 @@ SRC_URI += "file://0001-bindings-cxx-disable-tests.patch"
 
 SRC_URI[sha256sum] = "ae280f697bf035a1fb780c9972e5c81d0d2712b7ab6124fb3fba24619daa72bc"
 
-FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}-1.x:"
+FILESEXTRAPATHS:prepend := "${THISDIR}/${BPN}-1.x:"
 
 inherit python3native
 
meta-oe/recipes-support/libgpiod/libgpiod_2.2.bb +1 -1
index 8d8a2cc3a4..224918a55a 100644
@@ -9,7 +9,7 @@ LIC_FILES_CHKSUM = " \
     file://LICENSES/CC-BY-SA-4.0.txt;md5=fba3b94d88bfb9b81369b869a1e9a20f \
 "
 
-FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}-2.x:"
+FILESEXTRAPATHS:prepend := "${THISDIR}/${BPN}-2.x:"
 
 SRC_URI += "file://gpio-manager.init"
 
Signature · 1 line
2.47.0
#1 lore raw

PATCH 2/11 perfetto: drop unnecessary FILESEXTRAPATHS

* we already have a common directory in default FILESPATH called 'files'

---
 .../perfetto/{common => files}/0001-fix-musl-build.patch        | 0
 meta-oe/recipes-devtools/perfetto/perfetto.inc                  | 2 --
 2 files changed, 2 deletions(-)
 rename meta-oe/recipes-devtools/perfetto/{common => files}/0001-fix-musl-build.patch (100%)
meta-oe/recipes-devtools/perfetto/files/0001-fix-musl-build.patch renamed from meta-oe/recipes-devtools/perfetto/common/0001-fix-musl-build.patch +0 -0
similarity index 100%
rename from meta-oe/recipes-devtools/perfetto/common/0001-fix-musl-build.patch
rename to meta-oe/recipes-devtools/perfetto/files/0001-fix-musl-build.patch
meta-oe/recipes-devtools/perfetto/perfetto.inc +0 -2
index e0e4f04a23..3cd0cb91b8 100644
@@ -1,8 +1,6 @@
 SUMMARY = "Perfetto - System profiling, app tracing and trace analysis."
 HOMEPAGE = "https://github.com/google/perfetto"
 
-FILESEXTRAPATHS:prepend := "${THISDIR}/common:"
-
 # Add only patches here which are used by both perfetto and libperfetto
 SRC_URI = "git://github.com/google/perfetto.git;protocol=https;name=perfetto;nobranch=1 \
 	   file://0001-fix-musl-build.patch \
Signature · 1 line
2.47.0
#2 lore raw

PATCH 3/11 colord-native: rename directory and drop unnecessary FILESEXTRAPATHS

In reply to Martin Jansa

* ${BPN}-native is weird work around for ${P} and ${PN} being dropped from default FILESPATH in 2012 with:
https://git.openembedded.org/openembedded-core/commit/?h=dylan&id=fb359583b659cda643973fa285002aaffb729a51

better to just rename directory to something which is included in the default value (like BPN) the filename are different in target and native colord build so they don't need to be in separate directories.

---
 meta-oe/recipes-support/colord/colord-native.bb                 | 2 --
 ...1-Move-the-function-cd_icc_create_from_edid-to-avoid-u.patch | 0
 .../recipes-support/colord/{colord-native => colord}/Makefile   | 0
 3 files changed, 2 deletions(-)
 rename meta-oe/recipes-support/colord/{colord-native => colord}/0001-Move-the-function-cd_icc_create_from_edid-to-avoid-u.patch (100%)
 rename meta-oe/recipes-support/colord/{colord-native => colord}/Makefile (100%)
meta-oe/recipes-support/colord/colord-native.bb +0 -2
index 64dd94a9ed..2c79be4957 100644
@@ -1,7 +1,5 @@
 require ${BPN}.inc
 
-FILESEXTRAPATHS:prepend := "${THISDIR}/${BPN}-native:"
-
 inherit meson pkgconfig native
 
 DEPENDS += " \
meta-oe/recipes-support/colord/colord/0001-Move-the-function-cd_icc_create_from_edid-to-avoid-u.patch renamed from meta-oe/recipes-support/colord/colord-native/0001-Move-the-function-cd_icc_create_from_edid-to-avoid-u.patch +0 -0
similarity index 100%
rename from meta-oe/recipes-support/colord/colord-native/0001-Move-the-function-cd_icc_create_from_edid-to-avoid-u.patch
rename to meta-oe/recipes-support/colord/colord/0001-Move-the-function-cd_icc_create_from_edid-to-avoid-u.patch
meta-oe/recipes-support/colord/colord/Makefile renamed from meta-oe/recipes-support/colord/colord-native/Makefile +0 -0
similarity index 100%
rename from meta-oe/recipes-support/colord/colord-native/Makefile
rename to meta-oe/recipes-support/colord/colord/Makefile
Signature · 1 line
2.47.0
#3 lore raw

PATCH 4/11 python3-m2crypto: drop unnecessary FILESEXTRAPATHS

In reply to Martin Jansa

* python-m2crypto directory doesn't exist since:
commit b8bbcd4dea422be57123d75fbf77db6d33542b06
Author: Khem Raj <[email protected]>
Date: Sat May 1 12:04:27 2021 -0700

python3-m2crypto: Upgrade to 0.37.1

Unifiy .inc into .bb
Add patches to fix issues with openssl 1.1.x
Remove m2crypto-0.26.4-gcc_macros patch, its no longer needed Refresh existing patches

---
 meta-python/recipes-devtools/python/python3-m2crypto_0.42.0.bb | 2 --
 1 file changed, 2 deletions(-)
meta-python/recipes-devtools/python/python3-m2crypto_0.42.0.bb +0 -2
index d5ffdbc40c..6b178cd127 100644
@@ -4,8 +4,6 @@ HOMEPAGE = "https://gitlab.com/m2crypto/m2crypto"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://LICENCE;md5=b0e1f0b7d0ce8a62c18b1287b991800e"
 
-FILESEXTRAPATHS:prepend := "${THISDIR}/python-m2crypto:"
-
 SRC_URI[sha256sum] = "42b62df2caf623161b1d643a7235464c2fe2a3105049ebc498a6d47dc08f64b4"
 
 inherit pypi siteinfo python_setuptools_build_meta
Signature · 1 line
2.47.0
#4 lore raw

PATCH 5/11 python3-pykickstart: drop unnecessary FILESEXTRAPATHS

In reply to Martin Jansa

* 'files' was always in default FILESPATH, no need to add it again with FILESEXTRAPATHS

---
 .../python-pykickstart/python3-pykickstart_3.48.bb               | 1 -
 1 file changed, 1 deletion(-)
meta-python/recipes-extended/python-pykickstart/python3-pykickstart_3.48.bb +0 -1
index a7bd8ae437..9e074bddcf 100644
@@ -3,7 +3,6 @@ HOMEPAGE = "http://fedoraproject.org/wiki/pykickstart"
 LICENSE = "GPL-2.0-or-later"
 
 LIC_FILES_CHKSUM = "file://COPYING;md5=8ca43cbc842c2336e835926c2166c28b"
-FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
 
 inherit python_setuptools_build_meta
 
Signature · 1 line
2.47.0
#5 lore raw

PATCH 6/11 python3-flask-xstatic: drop unnecessary FILESEXTRAPATHS and fold .inc into .bb

In reply to Martin Jansa

* python2 is long dead, kill .inc file as well

* rename python-flask-xstatic to BPN python3-flask-xstatic which is included in default FILESPATH

---
 .../python/python-flask-xstatic.inc              | 15 ---------------
 .../remove-pip-requires.patch                    |  0
 .../python/python3-flask-xstatic_0.0.1.bb        | 16 +++++++++++++++-
 3 files changed, 15 insertions(+), 16 deletions(-)
 delete mode 100644 meta-python/recipes-devtools/python/python-flask-xstatic.inc
 rename meta-python/recipes-devtools/python/{python-flask-xstatic => python3-flask-xstatic}/remove-pip-requires.patch (100%)
meta-python/recipes-devtools/python/python-flask-xstatic.inc deleted +0 -15
deleted file mode 100644
index 6fc32107f2..0000000000
@@ -1,15 +0,0 @@
-DESCRIPTION = "XStatic support for flask"
-LICENSE = "BSD-2-Clause"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=659968f6ebd4b70b6c3190d20b4a924c"
-
-SRC_URI[sha256sum] = "226ea8e97065a9488b59bfe5c94af4c6e2ea70a25052e301fb231a1381490133"
-
-FILESEXTRAPATHS:prepend := "${THISDIR}/python-flask-xstatic:"
-SRC_URI += "file://remove-pip-requires.patch"
-
-PYPI_PACKAGE = "Flask-XStatic"
-
-RDEPENDS:${PN} += "\
-    python3-flask \
-    python3-xstatic \
-    "
meta-python/recipes-devtools/python/python3-flask-xstatic/remove-pip-requires.patch renamed from meta-python/recipes-devtools/python/python-flask-xstatic/remove-pip-requires.patch +0 -0
similarity index 100%
rename from meta-python/recipes-devtools/python/python-flask-xstatic/remove-pip-requires.patch
rename to meta-python/recipes-devtools/python/python3-flask-xstatic/remove-pip-requires.patch
meta-python/recipes-devtools/python/python3-flask-xstatic_0.0.1.bb +15 -1
index 5412befdb5..c4cad466ad 100644
@@ -1,2 +1,16 @@
+DESCRIPTION = "XStatic support for flask"
+LICENSE = "BSD-2-Clause"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=659968f6ebd4b70b6c3190d20b4a924c"
+
+SRC_URI[sha256sum] = "226ea8e97065a9488b59bfe5c94af4c6e2ea70a25052e301fb231a1381490133"
+
+SRC_URI += "file://remove-pip-requires.patch"
+
+PYPI_PACKAGE = "Flask-XStatic"
+
+RDEPENDS:${PN} += "\
+    python3-flask \
+    python3-xstatic \
+    "
+
 inherit pypi setuptools3
-require python-flask-xstatic.inc
Signature · 1 line
2.47.0
#6 lore raw

PATCH 7/11 python3-rfc3986-validator: drop unnecessary FILESEXTRAPATHS

In reply to Martin Jansa

* rename python-rfc3986-validator to BPN python3-rfc3986-validator which is included in default FILESPATH

---
 .../0001-setup.py-move-pytest-runner-to-test_requirements.patch | 0
 .../recipes-devtools/python/python3-rfc3986-validator_0.1.1.bb  | 2 --
 2 files changed, 2 deletions(-)
 rename meta-python/recipes-devtools/python/{python-rfc3986-validator => python3-rfc3986-validator}/0001-setup.py-move-pytest-runner-to-test_requirements.patch (100%)
meta-python/recipes-devtools/python/python3-rfc3986-validator/0001-setup.py-move-pytest-runner-to-test_requirements.patch renamed from meta-python/recipes-devtools/python/python-rfc3986-validator/0001-setup.py-move-pytest-runner-to-test_requirements.patch +0 -0
similarity index 100%
rename from meta-python/recipes-devtools/python/python-rfc3986-validator/0001-setup.py-move-pytest-runner-to-test_requirements.patch
rename to meta-python/recipes-devtools/python/python3-rfc3986-validator/0001-setup.py-move-pytest-runner-to-test_requirements.patch
meta-python/recipes-devtools/python/python3-rfc3986-validator_0.1.1.bb +0 -2
index b06634e5af..21f588bc11 100644
@@ -3,8 +3,6 @@ HOMEPAGE = "https://github.com/naimetti/rfc3986-validator"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=a21b13b5a996f08f7e0b088aa38ce9c6"
 
-FILESEXTRAPATHS:prepend := "${THISDIR}/python-rfc3986-validator:"
-
 SRC_URI[sha256sum] = "3d44bde7921b3b9ec3ae4e3adca370438eccebc676456449b145d533b240d055"
 
 PYPI_PACKAGE = "rfc3986_validator"
Signature · 1 line
2.47.0
#7 lore raw

PATCH 8/11 python3-django-south: fold .inc file into .bb

In reply to Martin Jansa

* python2 is long dead, kill .inc file as well

---
 .../python/python-django-south.inc             | 16 ----------------
 .../python/python3-django-south_1.0.2.bb       | 18 ++++++++++++++++--
 2 files changed, 16 insertions(+), 18 deletions(-)
 delete mode 100644 meta-python/recipes-devtools/python/python-django-south.inc
meta-python/recipes-devtools/python/python-django-south.inc deleted +0 -16
deleted file mode 100644
index c2932f9230..0000000000
@@ -1,16 +0,0 @@
-SUMMARY = "Migrations for Django"
-DESCRIPTION = "South is an intelligent database migrations library for the Django web framework. It is database-independent and DVCS-friendly, as well as a whole host of other features."
-HOMEPAGE = "http://south.aeracode.org/"
-LICENSE = "Apache-2.0"
-LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=17;endline=18;md5=2155d8ae21e7c23101d5febac696b27e"
-
-SRC_URI[sha256sum] = "d360bd31898f9df59f6faa786551065bba45b35e7ee3c39b381b4fbfef7392f4"
-
-PYPI_PACKAGE = "South"
-inherit pypi
-
-BBCLASSEXTEND = "native nativesdk"
-
-RDEPENDS:${PN} += "\
-    python3-django \
-    "
meta-python/recipes-devtools/python/python3-django-south_1.0.2.bb +16 -2
index 10519111fa..8237cf034d 100644
@@ -1,2 +1,16 @@
-require python-django-south.inc
-inherit setuptools3
+SUMMARY = "Migrations for Django"
+DESCRIPTION = "South is an intelligent database migrations library for the Django web framework. It is database-independent and DVCS-friendly, as well as a whole host of other features."
+HOMEPAGE = "http://south.aeracode.org/"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=17;endline=18;md5=2155d8ae21e7c23101d5febac696b27e"
+
+SRC_URI[sha256sum] = "d360bd31898f9df59f6faa786551065bba45b35e7ee3c39b381b4fbfef7392f4"
+
+PYPI_PACKAGE = "South"
+inherit pypi setuptools3
+
+BBCLASSEXTEND = "native nativesdk"
+
+RDEPENDS:${PN} += "\
+    python3-django \
+    "
Signature · 1 line
2.47.0
#8 lore raw

PATCH 9/11 python3-flask-bootstrap: fold .inc file into .bb

In reply to Martin Jansa

* python2 is long dead, kill .inc file as well

---
 .../python/python-flask-bootstrap.inc             | 13 -------------
 .../python/python3-flask-bootstrap_3.3.7.1.bb     | 15 ++++++++++++++-
 2 files changed, 14 insertions(+), 14 deletions(-)
 delete mode 100644 meta-python/recipes-devtools/python/python-flask-bootstrap.inc
meta-python/recipes-devtools/python/python-flask-bootstrap.inc deleted +0 -13
deleted file mode 100644
index e476b41add..0000000000
@@ -1,13 +0,0 @@
-DESCRIPTION = "An extension that includes Bootstrap in your project, without any boilerplate code."
-LICENSE = "Apache-2.0 & MIT & BSD-3-Clause"
-LIC_FILES_CHKSUM = "file://PKG-INFO;md5=a03749709f06118a17349deb5a210619"
-
-SRC_URI[sha256sum] = "cb08ed940183f6343a64e465e83b3a3f13c53e1baabb8d72b5da4545ef123ac8"
-
-PYPI_PACKAGE = "Flask-Bootstrap"
-
-RDEPENDS:${PN} += "\
-    python3-dominate \
-    python3-flask \
-    python3-visitor \
-    "
meta-python/recipes-devtools/python/python3-flask-bootstrap_3.3.7.1.bb +14 -1
index 877c754361..7553ce74a2 100644
@@ -1,2 +1,15 @@
+DESCRIPTION = "An extension that includes Bootstrap in your project, without any boilerplate code."
+LICENSE = "Apache-2.0 & MIT & BSD-3-Clause"
+LIC_FILES_CHKSUM = "file://PKG-INFO;md5=a03749709f06118a17349deb5a210619"
+
+SRC_URI[sha256sum] = "cb08ed940183f6343a64e465e83b3a3f13c53e1baabb8d72b5da4545ef123ac8"
+
+PYPI_PACKAGE = "Flask-Bootstrap"
+
 inherit pypi setuptools3
-require python-flask-bootstrap.inc
+
+RDEPENDS:${PN} += "\
+    python3-dominate \
+    python3-flask \
+    python3-visitor \
+    "
Signature · 1 line
2.47.0
#9 lore raw

PATCH 10/11 python3-flask-sijax: fold .inc file into .bb

In reply to Martin Jansa

* python2 is long dead, kill .inc file as well

---
 .../python/python-flask-sijax.inc               | 12 ------------
 .../python/python3-flask-sijax_0.4.1.bb         | 17 +++++++++++++++--
 2 files changed, 15 insertions(+), 14 deletions(-)
 delete mode 100644 meta-python/recipes-devtools/python/python-flask-sijax.inc
meta-python/recipes-devtools/python/python-flask-sijax.inc deleted +0 -12
deleted file mode 100644
index 239c843fce..0000000000
@@ -1,12 +0,0 @@
-DESCRIPTION = "An extension for the Flask microframework that adds Sijax support."
-HOMEPAGE = "https://github.com/spantaleev/flask-sijax"
-LICENSE = "BSD-3-Clause"
-
-LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=266adc7b911b7c84b837bf77196e1ba6"
-
-PYPI_PACKAGE = "Flask-Sijax"
-RDEPENDS:${PN} += " \
-    python3-flask \
-    python3-sijax \
-    python3-werkzeug \
-"
meta-python/recipes-devtools/python/python3-flask-sijax_0.4.1.bb +15 -2
index e9a65c4aef..d518a1877f 100644
@@ -1,4 +1,17 @@
+DESCRIPTION = "An extension for the Flask microframework that adds Sijax support."
+HOMEPAGE = "https://github.com/spantaleev/flask-sijax"
+LICENSE = "BSD-3-Clause"
+
+LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=266adc7b911b7c84b837bf77196e1ba6"
+
+SRC_URI[sha256sum] = "fb2bf2d4f75408185102195055d75549fee8d9c9e954dca2427186925cdc429f"
+
+PYPI_PACKAGE = "Flask-Sijax"
+
 inherit pypi setuptools3
-require python-flask-sijax.inc
 
-SRC_URI[sha256sum] = "fb2bf2d4f75408185102195055d75549fee8d9c9e954dca2427186925cdc429f"
\ No newline at end of file
+RDEPENDS:${PN} += " \
+    python3-flask \
+    python3-sijax \
+    python3-werkzeug \
+"
Signature · 1 line
2.47.0
#10 lore raw

PATCH 11/11 python3-django: rename .inc file to BPN.inc

In reply to Martin Jansa

* this one has 2 versions, so the .inc file cannot be folded into .bb files but we can at least rename it to start with BPN for consistency

---
 .../python/{python-django.inc => python3-django.inc}            | 0
 meta-python/recipes-devtools/python/python3-django_4.2.16.bb    | 2 +-
 meta-python/recipes-devtools/python/python3-django_5.0.9.bb     | 2 +-
 3 files changed, 2 insertions(+), 2 deletions(-)
 rename meta-python/recipes-devtools/python/{python-django.inc => python3-django.inc} (100%)
meta-python/recipes-devtools/python/python3-django.inc renamed from meta-python/recipes-devtools/python/python-django.inc +0 -0
similarity index 100%
rename from meta-python/recipes-devtools/python/python-django.inc
rename to meta-python/recipes-devtools/python/python3-django.inc
meta-python/recipes-devtools/python/python3-django_4.2.16.bb +1 -1
index 9254e8b009..564e8741e5 100644
@@ -1,4 +1,4 @@
-require python-django.inc
+require python3-django.inc
 inherit setuptools3
 
 SRC_URI[sha256sum] = "6f1616c2786c408ce86ab7e10f792b8f15742f7b7b7460243929cb371e7f1dad"
meta-python/recipes-devtools/python/python3-django_5.0.9.bb +1 -1
index b3fb301ede..2de4832163 100644
@@ -1,4 +1,4 @@
-require python-django.inc
+require python3-django.inc
 inherit python_setuptools_build_meta
 
 SRC_URI[sha256sum] = "6333870d342329b60174da3a60dbd302e533f3b0bb0971516750e974a99b5a39"
Signature · 1 line
2.47.0
#11 lore raw
In reply to Martin Jansa

Thanks for this series, such cleanups are very important.

Quoted 87 lines · Martin Jansa via lists.openembedded.org

* I thought that PN in FILESEXTRAPATHS worked as everywhere else and as described in:
https://lore.kernel.org/all/[email protected]/T/

* but surprisingly (to me)
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}-2.x:"
ends with effectively ${BPN}-2.x in bitbake -e (and the build doesn't fail to fetch file://gpio-manager.init in lib32-libgpiod build

* I've tried with kirkstone and dunfell as well and it ends with
"libgpiod-2.x" for all 3 PNs:
dunfell $ grep ^FILESEXTRAPATHS= env.* | sed 's@/OE.*dunfell/@@g' env.lib32-libgpiod:FILESEXTRAPATHS="meta-oe/meta-oe/recipes-support/libgpiod/libgpiod-2.x:__default:" env.libgpiod:FILESEXTRAPATHS="meta-oe/meta-oe/recipes-support/libgpiod/libgpiod-2.x:__default:" env.libgpiod-native:FILESEXTRAPATHS="meta-oe/meta-oe/recipes-support/libgpiod/libgpiod-2.x:__default:"

dunfell $ grep ^PN= env.*
env.lib32-libgpiod:PN="lib32-libgpiod"
env.libgpiod:PN="libgpiod"
env.libgpiod-native:PN="libgpiod-native"

There is the QA check for PN in SRC_URI, maybe I took it a bit further and updated all FILESEXTRAPATHS references as well in our layers (in 2023) even when it wasn't causing build failures, e.g.:
https://github.com/webosose/meta-webosose/commit/38d3cbf010a5e4e112d82ee473eecc718d9cc687

* so it's not so important to use BPN, but it's a bit clearer as that's what it ends evaluated into and what default FILESPATH is using as well:

  meta/classes-global/base.bbclass:FILESPATH = "${@base_set_filespath(["${FILE_DIRNAME}/${BP}", "${FILE_DIRNAME}/${BPN}", "${FILE_DIRNAME}/files"], d)}"
  meta/conf/bitbake.conf:#FILESPATH = "${FILE_DIRNAME}/${PF}:${FILE_DIRNAME}/${P}:${FILE_DIRNAME}/${PN}:${FILE_DIRNAME}/${BP}:${FILE_DIRNAME}/${BPN}:${FILE_DIRNAME}/files:${FILE_DIRNAME}"

BPN was added in denzil 2009 (and FILESPATH moved to base.bbclass, bitbake.conf has commented-out value since then):
https://git.openembedded.org/openembedded-core/commit/?h=denzil&id=94c895aad5ad286f172b04bc33ba670220d5eba8

PF was dropped in dylan 2012:
https://git.openembedded.org/openembedded-core/commit/?h=dylan&id=3efa13cd76bbd5611805021945fc9def88d9fd93

P and PN were dropped shortly after in dylan 2012:
https://git.openembedded.org/openembedded-core/commit/?h=dylan&id=fb359583b659cda643973fa285002aaffb729a51

---
 meta-oe/recipes-support/libgpiod/libgpiod_1.6.5.bb | 2 +-
 meta-oe/recipes-support/libgpiod/libgpiod_2.2.bb   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
meta-oe/recipes-support/libgpiod/libgpiod_1.6.5.bb +1 -1
index 0795839492..dac7dd36fc 100644
@@ -7,7 +7,7 @@ SRC_URI += "file://0001-bindings-cxx-disable-tests.patch"
 
 SRC_URI[sha256sum] = "ae280f697bf035a1fb780c9972e5c81d0d2712b7ab6124fb3fba24619daa72bc"
 
-FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}-1.x:"
+FILESEXTRAPATHS:prepend := "${THISDIR}/${BPN}-1.x:"
 
 inherit python3native
 
meta-oe/recipes-support/libgpiod/libgpiod_2.2.bb +1 -2
index 8d8a2cc3a4..224918a55a 100644
@@ -9,7 +9,7 @@ LIC_FILES_CHKSUM = " \
     file://LICENSES/CC-BY-SA-4.0.txt;md5=fba3b94d88bfb9b81369b869a1e9a20f \
 "
 
-FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}-2.x:"
+FILESEXTRAPATHS:prepend := "${THISDIR}/${BPN}-2.x:"
 
 SRC_URI += "file://gpio-manager.init"
 
--

2.47.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#113358): https://lists.openembedded.org/g/openembedded-devel/message/113358
Mute This Topic: https://lists.openembedded.org/mt/109314377/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-