* [scarthgap][PATCH 1/2] python3-pyelftools: add python3-logging to RDEPENDS
@ 2026-10-21 12:37 tgaige.opensource
2026-10-21 12:37 ` [scarthgap][PATCH 2/2] python3-pyelftools: add missing runtime dependencies tgaige.opensource
0 siblings, 1 reply; 2+ messages in thread
From: tgaige.opensource @ 2026-10-21 12:37 UTC (permalink / raw)
To: openembedded-core
Cc: hsimeliere.opensource, Theo GAIGE, Louis Rannou,
Mathieu Dubois-Briand
From: Theo GAIGE <tgaige.opensource@witekio.com>
python3-logging is needed as a runtime dependency of python3-pyelftools
else the readelf.py script run into the following error :
```
Traceback (most recent call last):
File "/usr/bin/readelf.py", line 31, in <module>
from elftools.elf.elffile import ELFFile
File "/usr/lib/python3.12/site-packages/elftools/elf/elffile.py", line 29, in <module>
from ..dwarf.dwarfinfo import DWARFInfo, DebugSectionDescriptor, DwarfConfig
File "/usr/lib/python3.12/site-packages/elftools/dwarf/dwarfinfo.py", line 17, in <module>
from .structs import DWARFStructs
File "/usr/lib/python3.12/site-packages/elftools/dwarf/structs.py", line 10, in <module>
from logging.config import valid_ident
ModuleNotFoundError: No module named 'logging'
```
Signed-off-by: Theo GAIGE <tgaige.opensource@witekio.com>
Reviewed-by: Louis Rannou <louis.rannou@non.se.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
(cherry picked from commit 9b956f6b5a345bd3022a9e64fa70a0365bfac502)
Signed-off-by: Theo Gaige (Schneider Electric) <tgaige.opensource@witekio.com>
---
meta/recipes-devtools/python/python3-pyelftools_0.30.bb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/recipes-devtools/python/python3-pyelftools_0.30.bb b/meta/recipes-devtools/python/python3-pyelftools_0.30.bb
index 837edb7165..b799f5acf8 100644
--- a/meta/recipes-devtools/python/python3-pyelftools_0.30.bb
+++ b/meta/recipes-devtools/python/python3-pyelftools_0.30.bb
@@ -12,4 +12,4 @@ inherit pypi setuptools3
BBCLASSEXTEND = "native"
-RDEPENDS:${PN} += "python3-debugger python3-pprint"
+RDEPENDS:${PN} += "python3-debugger python3-pprint python3-logging"
--
2.43.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [scarthgap][PATCH 2/2] python3-pyelftools: add missing runtime dependencies
2026-10-21 12:37 [scarthgap][PATCH 1/2] python3-pyelftools: add python3-logging to RDEPENDS tgaige.opensource
@ 2026-10-21 12:37 ` tgaige.opensource
0 siblings, 0 replies; 2+ messages in thread
From: tgaige.opensource @ 2026-10-21 12:37 UTC (permalink / raw)
To: openembedded-core
Cc: hsimeliere.opensource, Theo Gaige (Schneider Electric),
Wahid ESSID, Mathieu Dubois-Briand, Richard Purdie
From: "Theo Gaige (Schneider Electric)" <tgaige.opensource@witekio.com>
python3-asyncio and python3-json are needed as runtime dependencies of
python3-pyelftools else the readelf.py script run into the following errors :
```
Traceback (most recent call last):
File "/bin/readelf.py", line 30, in <module>
from elftools.common.utils import bytes2str, iterbytes
File "/usr/lib/python3.14/site-packages/elftools/common/utils.py", line 11, in <module>
from ..construct import ConstructError, ULInt8
File "/usr/lib/python3.14/site-packages/elftools/construct/__init__.py", line 36, in <module>
from .debug import Probe, Debugger
File "/usr/lib/python3.14/site-packages/elftools/construct/debug.py", line 7, in <module>
import pdb
File "/usr/lib/python3.14/pdb.py", line 87, in <module>
import asyncio
ModuleNotFoundError: No module named 'asyncio'
```
```
Traceback (most recent call last):
File "/bin/readelf.py", line 30, in <module>
from elftools.common.utils import bytes2str, iterbytes
File "/usr/lib/python3.14/site-packages/elftools/common/utils.py", line 11, in <module>
from ..construct import ConstructError, ULInt8
File "/usr/lib/python3.14/site-packages/elftools/construct/__init__.py", line 36, in <module>
from .debug import Probe, Debugger
File "/usr/lib/python3.14/site-packages/elftools/construct/debug.py", line 7, in <module>
import pdb
File "/usr/lib/python3.14/pdb.py", line 77, in <module>
import json
ModuleNotFoundError: No module named 'json'
```
Signed-off-by: Theo Gaige (Schneider Electric) <tgaige.opensource@witekio.com>
Reviewed-by: Hugo SIMELIERE (Schneider Electric) <hsimeliere.opensource@witekio.com>
Reviewed-by: Wahid ESSID <wahid.essid@se.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 0dc1a2f9df58cf2dd1418426e38e95372aecdcde)
Signed-off-by: Theo Gaige (Schneider Electric) <tgaige.opensource@witekio.com>
---
meta/recipes-devtools/python/python3-pyelftools_0.30.bb | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/meta/recipes-devtools/python/python3-pyelftools_0.30.bb b/meta/recipes-devtools/python/python3-pyelftools_0.30.bb
index b799f5acf8..bc981051cd 100644
--- a/meta/recipes-devtools/python/python3-pyelftools_0.30.bb
+++ b/meta/recipes-devtools/python/python3-pyelftools_0.30.bb
@@ -12,4 +12,10 @@ inherit pypi setuptools3
BBCLASSEXTEND = "native"
-RDEPENDS:${PN} += "python3-debugger python3-pprint python3-logging"
+RDEPENDS:${PN} += " \
+ python3-debugger \
+ python3-pprint \
+ python3-logging \
+ python3-asyncio \
+ python3-json \
+"
--
2.43.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-10-21 12:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-21 12:37 [scarthgap][PATCH 1/2] python3-pyelftools: add python3-logging to RDEPENDS tgaige.opensource
2026-10-21 12:37 ` [scarthgap][PATCH 2/2] python3-pyelftools: add missing runtime dependencies tgaige.opensource
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox