Skip to contentSkip to conversation

package/pocketpy: fix build without threads

PATCH Applied Dario Binacchi 2 participants 4 messages Sep 7 – Sep 18

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 package/pocketpy: fix build without threads

pocketpy enables thread support by default (PK_ENABLE_THREADS=ON) and then requires Threads from cmake, which fails on toolchains without thread support:

CMake Error at /usr/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find Threads (missing: Threads_FOUND)

Thread support is optional, so enable it only when the toolchain provides threads.

---
 package/pocketpy/pocketpy.mk | 6 ++++++
 1 file changed, 6 insertions(+)
package/pocketpy/pocketpy.mk +6 -0
index 23789dd62028..c1ae075d3897 100644
@@ -12,6 +12,12 @@ POCKETPY_INSTALL_STAGING = YES
 
 POCKETPY_CONF_OPTS = -DPK_BUILD_SHARED_LIB=ON
 
+ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
+POCKETPY_CONF_OPTS += -DPK_ENABLE_THREADS=ON
+else
+POCKETPY_CONF_OPTS += -DPK_ENABLE_THREADS=OFF
+endif
+
 define POCKETPY_INSTALL_TARGET_CMDS
 	$(INSTALL) -D -m 0755 $(@D)/libpocketpy.so* $(TARGET_DIR)/usr/lib
 endef
Signature · 6 lines
2.43.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

PATCH 2/2 package/pocketpy: bump to version 2.2.0

Release notes:
https://github.com/pocketpy/pocketpy/releases/tag/v2.2.0

---
 package/pocketpy/pocketpy.hash | 2 +-
 package/pocketpy/pocketpy.mk   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
package/pocketpy/pocketpy.hash +1 -1
index d6ba6e5da27c..0c36fc770021 100644
@@ -1,3 +1,3 @@
 # locally computed
-sha256  2b840e0c87c36ae00100fe892301565d7d905e07e1ce1f69cb4b9fcd65bc82ef  pocketpy-2.1.8.tar.gz
+sha256  c67cb6a1422abe26114219d2e58441cbb3625bae6b25901d5b7f6f46b23ae8b3  pocketpy-2.2.0.tar.gz
 sha256  5ad14c41f26ed1b8c9a0039ae566bc7ce00277aec1634220eae5db2bb8fc54ef  LICENSE
package/pocketpy/pocketpy.mk +1 -1
index c1ae075d3897..1150a47fc561 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-POCKETPY_VERSION = 2.1.8
+POCKETPY_VERSION = 2.2.0
 POCKETPY_SITE = $(call github,pocketpy,pocketpy,v$(POCKETPY_VERSION))
 POCKETPY_LICENSE = MIT
 POCKETPY_LICENSE_FILES = LICENSE
Signature · 6 lines
2.43.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw
In reply to Dario Binacchi
Quoted 4 lines · Dario Binacchi

pocketpy enables thread support by default (PK_ENABLE_THREADS=ON) and then requires Threads from cmake, which fails on toolchains without thread support:

Quoted 8 lines

CMake Error at
/usr/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find Threads (missing: Threads_FOUND)

Thread support is optional, so enable it only when the toolchain provides threads.

Series applied to master, thanks.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#3 lore raw
In reply to Dario Binacchi

In reply of:

Quoted 11 lines

pocketpy enables thread support by default (PK_ENABLE_THREADS=ON) and then requires Threads from cmake, which fails on toolchains without thread support:

CMake Error at /usr/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find Threads (missing: Threads_FOUND)

Thread support is optional, so enable it only when the toolchain provides threads.

Applied to 2026.08.x. Thanks

Quoted 28 lines
---
 package/pocketpy/pocketpy.mk | 6 ++++++
 1 file changed, 6 insertions(+)
package/pocketpy/pocketpy.mk +6 -0
index 23789dd62028..c1ae075d3897 100644
@@ -12,6 +12,12 @@ POCKETPY_INSTALL_STAGING = YES
 
 POCKETPY_CONF_OPTS = -DPK_BUILD_SHARED_LIB=ON
 
+ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
+POCKETPY_CONF_OPTS += -DPK_ENABLE_THREADS=ON
+else
+POCKETPY_CONF_OPTS += -DPK_ENABLE_THREADS=OFF
+endif
+
 define POCKETPY_INSTALL_TARGET_CMDS
 	$(INSTALL) -D -m 0755 $(@D)/libpocketpy.so* $(TARGET_DIR)/usr/lib
 endef
Signature · 6 lines
2.43.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot