package/jasper: fix build without threads
PATCH 1/2 package/jasper: fix build without threads
Buildroot commit 03a1732dea67e088ec85f92853ca14f5a3c0f7b7 bumped the package from 2.0.33 to 4.2.8. This bump includes upstream commit
https://github.com/jasper-software/jasper/commit/91fca092098396938830fe458f57109f0dd58a54
which was added to version 3.0.0 and causes build errors when threads are not available:
message(FATAL_ERROR "Threading support is not available.")
because JAS_ENABLE_MULTITHREADING_SUPPORT defaults to ON:
https://github.com/jasper-software/jasper/blob/version-4.2.8/CMakeLists.txt#L124
Add configure options to disable thread support when needed.
Fixes:
https://autobuild.buildroot.net/results/870/870d6adbac166b22cce217628d477b1bce538320/
--- package/jasper/jasper.mk | 6 ++++++ 1 file changed, 6 insertions(+)
package/jasper/jasper.mk +6 -0
@@ -32,6 +32,12 @@ ifeq ($(BR2_STATIC_LIBS),y) JASPER_CONF_OPTS += -DJAS_ENABLE_SHARED=OFF endif +ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y) +JASPER_CONF_OPTS += -DJAS_ENABLE_MULTITHREADING_SUPPORT=ON +else +JASPER_CONF_OPTS += -DJAS_ENABLE_MULTITHREADING_SUPPORT=OFF +endif + ifeq ($(BR2_PACKAGE_JPEG),y) JASPER_CONF_OPTS += -DJAS_ENABLE_LIBJPEG=ON JASPER_DEPENDENCIES += jpeg
Signature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 2/2 package/jasper: bump version to 4.2.9
https://github.com/jasper-software/jasper/releases/tag/version-4.2.9
Switch to sha256 tarball hash provided by upstream.
--- package/jasper/jasper.hash | 3 ++- package/jasper/jasper.mk | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-)
package/jasper/jasper.hash +2 -1
@@ -1,3 +1,4 @@ +# From https://github.com/jasper-software/jasper/releases/tag/version-4.2.9 +sha256 f71cf643937a5fcaedcfeb30a22ba406912948ad4413148214df280afc425454 jasper-4.2.9.tar.gz # Locally calculated -sha256 98058a94fbff57ec6e31dcaec37290589de0ba6f47c966f92654681a56c71fae jasper-4.2.8.tar.gz sha256 4ad1bb42aff888c4403d792e6e2c5f1716d6c279fea70b296333c9d577d30b81 LICENSE.txt
package/jasper/jasper.mk +1 -1
@@ -4,7 +4,7 @@ # ################################################################################ -JASPER_VERSION = 4.2.8 +JASPER_VERSION = 4.2.9 JASPER_SITE = https://github.com/jasper-software/jasper/releases/download/version-$(JASPER_VERSION) JASPER_INSTALL_STAGING = YES JASPER_LICENSE = JasPer-2.0
Signature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
On 08/03/2026 17:03, Bernd Kuhls wrote:
[...]
Quoted 1 line
Signed-off-by Bernd Kuhls <[email protected]>
Series applied to master, thanks.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Thomas Perale via buildroot
AppliedIn reply of:
Quoted 11 lines
Buildroot commit
03a1732dea67e088ec85f92853ca14f5a3c0f7b7bumped the package from 2.0.33 to 4.2.8. This bump includes upstream commit
https://github.com/jasper-software/jasper/commit/91fca092098396938830fe458f57109f0dd58a54
which was added to version 3.0.0 and causes build errors when threads are not available:
message(FATAL_ERROR "Threading support is not available.")because
JAS_ENABLE_MULTITHREADING_SUPPORTdefaults to ON:
https://github.com/jasper-software/jasper/blob/version-4.2.8/CMakeLists.txt#L124
Quoted 6 lines
Add configure options to disable thread support when needed.
Fixes:
https://autobuild.buildroot.net/results/870/870d6adbac166b22cce217628d477b1bce538320/Signed-off-by Bernd Kuhls <[email protected]>
Applied to 2026.02.x. Thanks
Quoted 28 lines
--- package/jasper/jasper.mk | 6 ++++++ 1 file changed, 6 insertions(+)package/jasper/jasper.mk +6
-0@@ -32,6 +32,12 @@ ifeq ($(BR2_STATIC_LIBS),y) JASPER_CONF_OPTS += -DJAS_ENABLE_SHARED=OFF endif +ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y) +JASPER_CONF_OPTS += -DJAS_ENABLE_MULTITHREADING_SUPPORT=ON +else +JASPER_CONF_OPTS += -DJAS_ENABLE_MULTITHREADING_SUPPORT=OFF +endif + ifeq ($(BR2_PACKAGE_JPEG),y) JASPER_CONF_OPTS += -DJAS_ENABLE_LIBJPEG=ON JASPER_DEPENDENCIES += jpegSignature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot