Skip to contentSkip to conversation

python3-pylibfdt: add recipe

PATCH In review Trevor Gamblin 2 participants 6 messages Jul 11, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 python3-pylibfdt: add recipe

This is required by python3-dtschema (already in oe-core) and likely some other modules, so add the recipe.

---
 .../python/python3-pylibfdt_1.6.1.bb             | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 meta/recipes-devtools/python/python3-pylibfdt_1.6.1.bb
meta/recipes-devtools/python/python3-pylibfdt_1.6.1.bb new file +16 -0
new file mode 100644
index 0000000000..9dd01a1449
@@ -0,0 +1,16 @@
+SUMMARY = "Python binding for libfdt"
+HOMEPAGE = "https://pypi.org/project/pylibfdt/"
+LICENSE = "BSD-2-Clause & GPL-2.0-or-later"
+LIC_FILES_CHKSUM = "file://GPL;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
+                    file://BSD-2-Clause;md5=5d6306d1b08f8df623178dfd81880927"
+
+inherit pypi python_setuptools_build_meta
+
+PYPI_PACKAGE = "pylibfdt"
+
+SRC_URI[sha256sum] = "90c667c5adf44c6ab2f13bdc566598897784c7b781bed91064e7373bd270b778"
+
+BBCLASSEXTEND = "native nativesdk"
+
+DEPENDS += "python3-setuptools-scm-native swig-native"
+
Signature · 1 line
2.41.0
#1 lore raw

PATCH 2/3 python3-dtschema: upgrade 2023.4 -> 2023.6.1

No changelog provided. Diff between versions:

08ab41a (tag: v2023.06.1, origin/master) Fix undocumented compatible check 90ce246 (tag: v2023.06) Revert "Partially Revert "dtschema: add nanoamp unit"" a4fe59b schemas: Allow 'fail' value for 'status'
1ea798a schemas: Allow 'status' for node names
2945ab5 schemas: Allow node names starting with number
33cbf96 schemas: Allow '/' in compatible strings
470b522 fixups: Handle 'multipleOf' keyword in schemas
6fc2e30 meta-schemas: Ensure "enum" contains only strings or integers bd525a4 meta-schemas: Disallow 'binding' or 'schema' in schema 'title' 822ce6a schemas: cpu: Add some missing common properties
e3dfc1e schemas: Use 'oneOf' rather than if/then for *-supply properties 26b0e53 dtschema: Use format strings for printing
bc164f9 Split DTValidator class into 2 classes
4ddf315 meta-schemas: Ensure DT property names contain either an object or boolean 3db9af1 meta-schemas: add $defs schema checking
85e967f schemas: iio: add label
31cc52a dtschema: Move fixups to separate file
9e4dd3b dtschema: Drop unnecessary quote checking
41e1192 dtb: Drop unused pprint import

---
 ...{python3-dtschema_2023.4.bb => python3-dtschema_2023.6.1.bb} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta/recipes-devtools/python/{python3-dtschema_2023.4.bb => python3-dtschema_2023.6.1.bb} (83%)
meta/recipes-devtools/python/python3-dtschema_2023.6.1.bb renamed from meta/recipes-devtools/python/python3-dtschema_2023.4.bb +1 -1
similarity index 83%
rename from meta/recipes-devtools/python/python3-dtschema_2023.4.bb
rename to meta/recipes-devtools/python/python3-dtschema_2023.6.1.bb
index f87563facd..38ff2714f2 100644
@@ -7,7 +7,7 @@ inherit pypi setuptools3
 
 PYPI_PACKAGE = "dtschema"
 
-SRC_URI[sha256sum] = "6daefb8f54403b4d82961b3346571200571747ab01950fd36c1f69950fa7a8cf"
+SRC_URI[sha256sum] = "d9dc11cea6a46ae2ee5ac4a5a1c7da7cb3704417cb390881820460f7c61eb784"
 
 DEPENDS += "python3-setuptools-scm-native"
 RDEPENDS:${PN} += "python3-ruamel-yaml python3-jsonschema python3-rfc3987"
Signature · 1 line
2.41.0
#2 lore raw

PATCH 3/3 python3-dtschema: add python3-pylibfdt to RDEPENDS

In reply to Trevor Gamblin

Also reorder the RDEPENDS to be in alphabetical order.

---
 meta/recipes-devtools/python/python3-dtschema_2023.6.1.bb | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
meta/recipes-devtools/python/python3-dtschema_2023.6.1.bb +7 -1
index 38ff2714f2..f9dd6b77c6 100644
@@ -10,6 +10,12 @@ PYPI_PACKAGE = "dtschema"
 SRC_URI[sha256sum] = "d9dc11cea6a46ae2ee5ac4a5a1c7da7cb3704417cb390881820460f7c61eb784"
 
 DEPENDS += "python3-setuptools-scm-native"
-RDEPENDS:${PN} += "python3-ruamel-yaml python3-jsonschema python3-rfc3987"
+
+RDEPENDS:${PN} += "\
+        python3-jsonschema \
+        python3-pylibfdt \
+        python3-rfc3987 \
+        python3-ruamel-yaml \
+        "
 
 BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.41.0
#3 lore raw
In reply to Trevor Gamblin
Quoted 3 lines · Trevor Gamblin

This is required by python3-dtschema (already in oe-core) and likely some other modules, so add the recipe.

We are now on the 3rd (or 4th) iteration of attempts to add this.

Rather than re-hashing the discussion, I suggest searching the mailing list for libfdt.

The summary is: the pypi version is not up to date, and this python library should be built out of the dtc repository and provided that way.

Bruce

Quoted 41 lines
---
 .../python/python3-pylibfdt_1.6.1.bb             | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 meta/recipes-devtools/python/python3-pylibfdt_1.6.1.bb
meta/recipes-devtools/python/python3-pylibfdt_1.6.1.bb new file +16 -1
new file mode 100644
index 0000000000..9dd01a1449
@@ -0,0 +1,16 @@
+SUMMARY = "Python binding for libfdt"
+HOMEPAGE = "https://pypi.org/project/pylibfdt/"
+LICENSE = "BSD-2-Clause & GPL-2.0-or-later"
+LIC_FILES_CHKSUM = "file://GPL;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
+                    file://BSD-2-Clause;md5=5d6306d1b08f8df623178dfd81880927"
+
+inherit pypi python_setuptools_build_meta
+
+PYPI_PACKAGE = "pylibfdt"
+
+SRC_URI[sha256sum] = "90c667c5adf44c6ab2f13bdc566598897784c7b781bed91064e7373bd270b778"
+
+BBCLASSEXTEND = "native nativesdk"
+
+DEPENDS += "python3-setuptools-scm-native swig-native"
+
--

2.41.0

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

Signature · 3 lines
- Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end
- "Use the force Harry" - Gandalf, Star Trek II
#4 lore raw
Quoted 11 lines · Bruce Ashfield
Quoted 2 lines · Trevor Gamblin

This is required by python3-dtschema (already in oe-core) and likely some other modules, so add the recipe.

We are now on the 3rd (or 4th) iteration of attempts to add this.

Rather than re-hashing the discussion, I suggest searching the mailing list for libfdt.

The summary is: the pypi version is not up to date, and this python library should be built out of the dtc repository and provided that way.

Thanks for the heads-up, I hadn't seen the others. I noticed that you have python3-dtc in meta-virtualization and that seems to cover python3-dtschema's needs. Will it be an issue for meta-virt if I move that to oe-core?

Trevor

Quoted 44 lines

Bruce

Quoted 40 lines
---
  .../python/python3-pylibfdt_1.6.1.bb             | 16 ++++++++++++++++
  1 file changed, 16 insertions(+)

create mode 100644 meta/recipes-devtools/python/python3-pylibfdt_1.6.1.bb

meta/recipes-devtools/python/python3-pylibfdt_1.6.1.bb new file +16 -1
new file mode 100644
index 0000000000..9dd01a1449
@@ -0,0 +1,16 @@
+SUMMARY = "Python binding for libfdt"
+HOMEPAGE = "https://pypi.org/project/pylibfdt/"
+LICENSE = "BSD-2-Clause & GPL-2.0-or-later"
+LIC_FILES_CHKSUM = "file://GPL;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
+                    file://BSD-2-Clause;md5=5d6306d1b08f8df623178dfd81880927"
+
+inherit pypi python_setuptools_build_meta
+
+PYPI_PACKAGE = "pylibfdt"
+
+SRC_URI[sha256sum] = "90c667c5adf44c6ab2f13bdc566598897784c7b781bed91064e7373bd270b778"
+
+BBCLASSEXTEND = "native nativesdk"
+
+DEPENDS += "python3-setuptools-scm-native swig-native"
+
--

2.41.0

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

#5 lore raw
Quoted 11 lines · Trevor Gamblin
Quoted 8 lines · Bruce Ashfield
Quoted 2 lines · Trevor Gamblin

This is required by python3-dtschema (already in oe-core) and likely some other modules, so add the recipe.

We are now on the 3rd (or 4th) iteration of attempts to add this.

Rather than re-hashing the discussion, I suggest searching the mailing list for libfdt.

Quoted 8 lines
Quoted 3 lines

The summary is: the pypi version is not up to date, and this python library should be built out of the dtc repository and provided that way.

Thanks for the heads-up, I hadn't seen the others. I noticed that you have python3-dtc in meta-virtualization and that seems to cover python3-dtschema's needs. Will it be an issue for meta-virt if I move that to oe-core?

That shouldn't be a problem. It is there to support lopper, which we use in Xen and some other SDK configurations.

I can't recall if there were arch issues, or other gaps in the support, but that is
something that should pop up quickly.

As for the patch against libfdt in meta-virt, in theory it may not be required, but
even if it is, I can bbappend it back in the layer.

Bruce

Quoted 47 lines

Trevor

Quoted 44 lines

Bruce

Quoted 40 lines
---
  .../python/python3-pylibfdt_1.6.1.bb             | 16 ++++++++++++++++
  1 file changed, 16 insertions(+)

create mode 100644 meta/recipes-devtools/python/python3-pylibfdt_1.6.1.bb

meta/recipes-devtools/python/python3-pylibfdt_1.6.1.bb new file +16 -1
new file mode 100644
index 0000000000..9dd01a1449
@@ -0,0 +1,16 @@
+SUMMARY = "Python binding for libfdt"
+HOMEPAGE = "https://pypi.org/project/pylibfdt/"
+LICENSE = "BSD-2-Clause & GPL-2.0-or-later"
+LIC_FILES_CHKSUM = "file://GPL;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
+                    file://BSD-2-Clause;md5=5d6306d1b08f8df623178dfd81880927"
+
+inherit pypi python_setuptools_build_meta
+
+PYPI_PACKAGE = "pylibfdt"
+
+SRC_URI[sha256sum] = "90c667c5adf44c6ab2f13bdc566598897784c7b781bed91064e7373bd270b778"
+
+BBCLASSEXTEND = "native nativesdk"
+
+DEPENDS += "python3-setuptools-scm-native swig-native"
+
--

2.41.0

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

Signature · 3 lines
- Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end
- "Use the force Harry" - Gandalf, Star Trek II