From e395f5e3f1b4516f31903f3d78849de9ea7abe12 Mon Sep 17 00:00:00 2001 From: EnumDev Date: Fri, 27 Feb 2026 20:08:56 +0200 Subject: [PATCH] Update package version to 3.4.5 --- pkg.info | 6 ++++-- source-files/glibc-2.43.patch | 19 +++++++++++++++++++ source.sh | 7 +++++++ 3 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 source-files/glibc-2.43.patch diff --git a/pkg.info b/pkg.info index 5849aa2..9583c8a 100644 --- a/pkg.info +++ b/pkg.info @@ -1,9 +1,11 @@ name: openexr description: A high dynamic-range image file format library -version: 3.4.4 +version: 3.4.5 revision: 1 url: https://www.openexr.com/ license: BSD-3-Clause +maintainers: + - enumdev@enumerated.dev architecture: any type: source depends: @@ -17,4 +19,4 @@ downloads: - url: https://github.com/AcademySoftwareFoundation/openexr/releases/download/v${BPM_PKG_VERSION}/openexr-${BPM_PKG_VERSION}.tar.gz extract_to: ${BPM_SOURCE} extract_strip_components: 1 - checksum: 91fc5670f13fe7d9d3b7ae0fe695e3cc813200839084eae6497459e7f650d876 + checksum: 3e3b0c697acb7383ed476276e8ca3933d1e099249c080d3c91642515e6b5b84a diff --git a/source-files/glibc-2.43.patch b/source-files/glibc-2.43.patch new file mode 100644 index 0000000..695589e --- /dev/null +++ b/source-files/glibc-2.43.patch @@ -0,0 +1,19 @@ +diff --git a/src/lib/OpenEXRCore/internal_thread.h b/src/lib/OpenEXRCore/internal_thread.h +index 6c3c1032..e40321e1 100644 +--- a/src/lib/OpenEXRCore/internal_thread.h ++++ b/src/lib/OpenEXRCore/internal_thread.h +@@ -10,6 +10,7 @@ + + // Thread-safe single initiatization, using InitOnceExecuteOnce on Windows, + // pthread_once elsewhere, or a simple variable if threading is completely disabled. ++#ifndef __once_flag_defined + #if ILMTHREAD_THREADING_ENABLED + # ifdef _WIN32 + # include +@@ -49,5 +50,5 @@ call_once (once_flag* flag, void (*func) (void)) + } + } + #endif +- ++#endif + #endif /* OPENEXR_PRIVATE_THREAD_H */ diff --git a/source.sh b/source.sh index 6496eab..3337ca1 100644 --- a/source.sh +++ b/source.sh @@ -2,6 +2,13 @@ # BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE # BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT +# The prepare function is executed in the root of the temp directory +# This function is used for putting downloaded files to the correct location or applying patches +prepare() { + cd "$BPM_SOURCE" + patch -Np1 -i "$BPM_WORKDIR"/glibc-2.43.patch +} + # The build function is executed in the source directory # This function is used to compile the source code build() {