pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/graphics/libjpeg-turbo



Module Name:    pkgsrc
Committed By:   adam
Date:           Thu Feb  9 09:57:01 UTC 2023

Modified Files:
        pkgsrc/graphics/libjpeg-turbo: Makefile distinfo

Log Message:
libjpeg-turbo: updated to 2.1.5.1

Significant changes relative to 2.1.5

The SIMD dispatchers in libjpeg-turbo 2.1.4 and prior stored the list of supported SIMD instruction sets in a global variable, which caused an innocuous race condition whereby the variable could have 
been initialized multiple times if jpeg_start_*compress() was called simultaneously in multiple threads. libjpeg-turbo 2.1.5 included an undocumented attempt to fix this race condition by making the 
SIMD support variable thread-local. However, that caused another issue whereby, if jpeg_start_*compress() was called in one thread and jpeg_read_*() or jpeg_write_*() was called in a second thread, 
the SIMD support variable was never initialized in the second thread. On x86 systems, this led the second thread to incorrectly assume that AVX2 instructions were always available, and when it 
attempted to use those instructions on older x86 CPUs that do not support them, an illegal instruction error occurred. The SIMD dispatchers now ensure that the SIMD support variable is initialized bef
ore dispatching based on its value.


To generate a diff of this commit:
cvs rdiff -u -r1.29 -r1.30 pkgsrc/graphics/libjpeg-turbo/Makefile
cvs rdiff -u -r1.24 -r1.25 pkgsrc/graphics/libjpeg-turbo/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/graphics/libjpeg-turbo/Makefile
diff -u pkgsrc/graphics/libjpeg-turbo/Makefile:1.29 pkgsrc/graphics/libjpeg-turbo/Makefile:1.30
--- pkgsrc/graphics/libjpeg-turbo/Makefile:1.29 Wed Feb  1 12:39:30 2023
+++ pkgsrc/graphics/libjpeg-turbo/Makefile      Thu Feb  9 09:57:01 2023
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.29 2023/02/01 12:39:30 adam Exp $
+# $NetBSD: Makefile,v 1.30 2023/02/09 09:57:01 adam Exp $
 
-DISTNAME=      libjpeg-turbo-2.1.5
+DISTNAME=      libjpeg-turbo-2.1.5.1
 CATEGORIES=    graphics
 MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=libjpeg-turbo/}
 
@@ -20,9 +20,9 @@ BUILD_DEPENDS+=       nasm-[0-9]*:../../devel/
 
 USE_LANGUAGES=         c c++
 PKGCONFIG_OVERRIDE=    release/libturbojpeg.pc.in release/libjpeg.pc.in
-TEST_ENV+=             LD_LIBRARY_PATH=${WRKSRC}
+TEST_ENV+=             LD_LIBRARY_PATH=${WRKSRC}/${CMAKE_BUILD_DIR}
 # For Darwin
-TEST_ENV+=             DYLD_LIBRARY_PATH=${WRKSRC}
+TEST_ENV+=             DYLD_LIBRARY_PATH=${WRKSRC}/${CMAKE_BUILD_DIR}
 TEST_TARGET=           test
 
 # Ask for compatibility with jpeg 8, to get the highest ABI that

Index: pkgsrc/graphics/libjpeg-turbo/distinfo
diff -u pkgsrc/graphics/libjpeg-turbo/distinfo:1.24 pkgsrc/graphics/libjpeg-turbo/distinfo:1.25
--- pkgsrc/graphics/libjpeg-turbo/distinfo:1.24 Wed Feb  1 12:39:30 2023
+++ pkgsrc/graphics/libjpeg-turbo/distinfo      Thu Feb  9 09:57:01 2023
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.24 2023/02/01 12:39:30 adam Exp $
+$NetBSD: distinfo,v 1.25 2023/02/09 09:57:01 adam Exp $
 
-BLAKE2s (libjpeg-turbo-2.1.5.tar.gz) = 0bb558238a3e9cbcc91e5a35027e90c2f868ca3e388bad2826403c38269675cb
-SHA512 (libjpeg-turbo-2.1.5.tar.gz) = ceab6d1c3c46d2816b06402e3b912e950d887fc8a6fb32fa6876f4aaa663b4769d8f4c50e1b967addf6704d0760ca14ed723d55e0312d7ca69e7f2a91484c0dc
-Size (libjpeg-turbo-2.1.5.tar.gz) = 2264471 bytes
+BLAKE2s (libjpeg-turbo-2.1.5.1.tar.gz) = aa707c4b83aa0a2a6b07e7f0363d828cc3d969aabba639fac203423f47064616
+SHA512 (libjpeg-turbo-2.1.5.1.tar.gz) = 86a7248d064043b26b09755633ef4872a2a6133c9e677a9fe4be6645b2e0fde102cf01e09119967b3b6b85f4cb93f3f7c49ec4973944d5eff99b5b90ce8b0be6
+Size (libjpeg-turbo-2.1.5.1.tar.gz) = 2264936 bytes
 SHA1 (patch-jpeglib.h) = 22f69b5fed1882c33f4a8a6e42b8aca5ed195de3
 SHA1 (patch-simd_arm__aarch32_jsimd.c) = 0d35d6f0727709d4e894202a3a297fc66383c377
 SHA1 (patch-simd_arm__aarch64_jsimd.c) = 76c5e81403f70a8ea8bca8ae2266066fff5ec6f9



Home | Main Index | Thread Index | Old Index