python3-pyelftools: add missing runtime dependencies
PATCH 1/1 python3-pyelftools: add missing runtime dependencies
From: "Theo Gaige (Schneider Electric)" <[email protected]>
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) <[email protected]>
Reviewed-by Wahid ESSID <[email protected]>
--- meta/recipes-devtools/python/python3-pyelftools_0.33.bb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
meta/recipes-devtools/python/python3-pyelftools_0.33.bb +7 -1
@@ -10,4 +10,10 @@ inherit pypi python_setuptools_build_meta BBCLASSEXTEND = "native" -RDEPENDS:${PN} += "python3-debugger python3-pprint python3-logging" +RDEPENDS:${PN} += " \ + python3-debugger \ + python3-pprint \ + python3-logging \ + python3-asyncio \ + python3-json \ +"
Signature · 1 line
2.43.0