From: Wang Mingyu < wangmy@fujitsu.com>
To: openembedded-core@lists.openembedded.org
Cc: Wang Mingyu <wangmy@fujitsu.com>
Subject: [OE-core] [PATCH] python3-spdx-python-model: fix do_compile error for update of python3-shacl2code
Date: Fri, 20 Mar 2026 19:15:43 +0800 [thread overview]
Message-ID: <20260320111545.2108-1-wangmy@fujitsu.com> (raw)
From: Wang Mingyu <wangmy@fujitsu.com>
Add patch 0001-Update-gen-generate-bindings-to-output-to-directory-.patch to fix bug when updated python3-shacl2code:
ERROR: python3-spdx-python-model-0.0.4-r0 do_compile: Execution of '/tmp/work/cortexa57-poky-linux/python3-spdx-python-model/0.0.4/temp/run.do_compile.2283925' failed with exit code 1
ERROR: Logfile of failure stored in: /tmp/work/cortexa57-poky-linux/python3-spdx-python-model/0.0.4/temp/log.do_compile.2283925
Log data follows:
| DEBUG: Executing shell function do_compile
| * Getting build dependencies for wheel...
|
| ERROR Missing dependencies:
| shacl2code==0.0.24
| WARNING: exit code 1 from a shell command.
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
---
...ate-bindings-to-output-to-directory-.patch | 54 +++++++++++++++++++
.../python/python3-spdx-python-model_0.0.4.bb | 1 +
2 files changed, 55 insertions(+)
create mode 100644 meta/recipes-devtools/python/python3-spdx-python-model/0001-Update-gen-generate-bindings-to-output-to-directory-.patch
diff --git a/meta/recipes-devtools/python/python3-spdx-python-model/0001-Update-gen-generate-bindings-to-output-to-directory-.patch b/meta/recipes-devtools/python/python3-spdx-python-model/0001-Update-gen-generate-bindings-to-output-to-directory-.patch
new file mode 100644
index 0000000000..a84ce54382
--- /dev/null
+++ b/meta/recipes-devtools/python/python3-spdx-python-model/0001-Update-gen-generate-bindings-to-output-to-directory-.patch
@@ -0,0 +1,54 @@
+From 1fd7e490a082ffb450283c43c3635e80110091e7 Mon Sep 17 00:00:00 2001
+From: Wang Mingyu <wangmy@fujitsu.com>
+Date: Fri, 20 Mar 2026 09:02:18 +0000
+Subject: [PATCH] Update gen/generate-bindings to output to directory name
+
+Upstream-Status: Backport [https://github.com/spdx/spdx-python-model/commit/678f5af062743cb8a84fdb24bb9e63963464c86b]
+
+Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
+---
+ gen/generate-bindings | 4 ++--
+ pyproject.toml | 6 +++---
+ 2 files changed, 5 insertions(+), 5 deletions(-)
+
+diff --git a/gen/generate-bindings b/gen/generate-bindings
+index bc7041e..d1e06aa 100755
+--- a/gen/generate-bindings
++++ b/gen/generate-bindings
+@@ -21,14 +21,14 @@ for v in $SPDX_VERSIONS; do
+ --context-url "file://${SHACL2CODE_SPDX_DIR}/$v/spdx-context.jsonld" https://spdx.org/rdf/$v/spdx-context.jsonld \
+ --license Apache-2.0 \
+ python \
+- -o "$MODNAME.py"
++ --output "$MODNAME"
+ else
+ shacl2code generate --input https://spdx.org/rdf/$v/spdx-model.ttl \
+ --input https://spdx.org/rdf/$v/spdx-json-serialize-annotations.ttl \
+ --context https://spdx.org/rdf/$v/spdx-context.jsonld \
+ --license Apache-2.0 \
+ python \
+- -o "$MODNAME.py"
++i --output "$MODNAME"
+ fi
+
+ echo "from . import $MODNAME" >> __init__.py
+diff --git a/pyproject.toml b/pyproject.toml
+index a0a5f4d..7075375 100644
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -32,9 +32,9 @@ Issues = "https://github.com/spdx/spdx-python-model/issues"
+
+ [build-system]
+ requires = [
+- "hatchling",
+- "hatch-build-scripts",
+- "shacl2code == 0.0.24",
++ "hatchling >= 1.27.0",
++ "hatch-build-scripts >= 0.0.4",
++ "shacl2code == 1.0.0",
+ ]
+ build-backend = "hatchling.build"
+
+--
+2.43.0
+
diff --git a/meta/recipes-devtools/python/python3-spdx-python-model_0.0.4.bb b/meta/recipes-devtools/python/python3-spdx-python-model_0.0.4.bb
index 00c3b3913c..16adbc9577 100644
--- a/meta/recipes-devtools/python/python3-spdx-python-model_0.0.4.bb
+++ b/meta/recipes-devtools/python/python3-spdx-python-model_0.0.4.bb
@@ -12,6 +12,7 @@ SRC_URI += " \
https://spdx.org/rdf/3.0.1/spdx-json-serialize-annotations.ttl;name=spdx2 \
https://spdx.org/rdf/3.0.1/spdx-model.ttl;name=spdx3 \
file://0001-generate-bindings-allow-to-use-local-files.patch \
+ file://0001-Update-gen-generate-bindings-to-output-to-directory-.patch \
"
SRC_URI[spdx1.sha256sum] = "c72b0928f094c83e5c127784edb1ebca2af74a104fcacc007c332b23cbc788bd"
--
2.43.0
reply other threads:[~2026-03-20 11:15 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260320111545.2108-1-wangmy@fujitsu.com \
--to=wangmy@fujitsu.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox