meshtasticd: add python-pyelftools to host build deps
authorAlexandru Ardelean <redacted>
Sun, 31 May 2026 07:25:02 +0000 (10:25 +0300)
committerAlexandru Ardelean <redacted>
Tue, 2 Jun 2026 11:42:30 +0000 (14:42 +0300)
PlatformIO's SCons builder loads its tool modules at the start of
'pio run', including platformio/builder/tools/piosize.py which imports
elftools.elf. python-platformio's HOST_BUILD_DEPENDS already lists
python-pyelftools/host so it is installed alongside platformio in
staging_dir/hostpkg, but the dependency does not always reach
meshtasticd's compile step via that indirect chain, leading to:

  ModuleNotFoundError: No module named 'elftools'
    File ".../site-packages/platformio/builder/tools/piosize.py", line 22:
      from elftools.elf.descriptions import describe_sh_flags

Declare python-pyelftools/host directly in meshtasticd's build deps so
the host install is guaranteed before 'pio run' is invoked.

Signed-off-by: Alexandru Ardelean <redacted>
net/meshtasticd/Makefile

index ceeab311efb3cd9b067e4d96cb6c7bb66d8a755d..8e796bc40fa26d4fd5ee5fc12ba63f3f587df7ec 100644 (file)
@@ -5,7 +5,7 @@ include $(TOPDIR)/rules.mk
 PKG_NAME:=meshtasticd
 PKG_VERSION:=2.7.15
 PKG_SOURCE_VERSION:=v$(PKG_VERSION).567b8ea
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
 PKG_SOURCE_PROTO:=git
@@ -20,6 +20,7 @@ FRONTEND_HASH:=a34f4360a0486543a698de20de533557492e763ab459fc27fcea95d0495144ed
 PKG_BUILD_DEPENDS:= \
        python3/host \
        python-platformio/host \
+       python-pyelftools/host \
        !USE_GLIBC:argp-standalone
 
 PKG_MAINTAINER:=Austin Lane <vidplace7@gmail.com>, George Sapkin <george@sapk.in>
git clone https://git.99rst.org/PROJECT