Quoting Vasyl Gello (2021-10-29 01:31:47) > I removed qemu-user-static from host and tried to build Kodi again. > > The python3.9-minimal:armhf tries to execute foreign-arch code: > > Setting up libssl1.1:armhf (1.1.1l-1) ... > Setting up libpython3.9-minimal:armhf (3.9.7-4) ... > Setting up libexpat1:armhf (2.4.1-3) ... > Setting up zlib1g:armhf (1:1.2.11.dfsg-2) ... > Setting up python3.9-minimal:armhf (3.9.7-4) ... > /var/lib/dpkg/info/python3.9-minimal.postinst: 51: /usr/bin/python3.9: Exec format error > dpkg: error processing package python3.9-minimal:armhf (--configure): > installed python3.9-minimal:armhf package post-installation script subprocess returned error exit status 126 > Errors were encountered while processing: > python3.9-minimal:armhf > E: Sub-process /usr/bin/dpkg returned an error code (1) > E: Failed to process build dependencies > E: pbuilder-satisfydepends failed. > > Seems that python3-dev and its dependencies (namely python3.9-dev -> libpython3.9-dev -> python3.9-minimal) > are the remaining part of an issue. The dependency is needed to link Kodi agaibst Python interpreter library. Yes, that is a known problem. Try replacing the build dependency on python3-dev by a build dependency on: libpython3-dev, python3-dev:any This will get you libpython3-dev from the host architecture and python3-dev from the build architecture. Thanks! cheers, josch
Attachment:
signature.asc
Description: signature