diff mbox series

[scarthgap,1/2] python3-pyelftools: add python3-logging to RDEPENDS

Message ID 20261021123722.2713530-1-tgaige.opensource@witekio.com
State New
Headers show
Series [scarthgap,1/2] python3-pyelftools: add python3-logging to RDEPENDS | expand

Commit Message

tgaige.opensource@witekio.com Oct. 21, 2026, 12:37 p.m. UTC
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 mbox series

Patch

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"