darktable: update to 5.2.0.

This commit is contained in:
lemmi 2025-06-26 18:27:53 +02:00
parent 38c76309a0
commit 2642abd58e
2 changed files with 34 additions and 8 deletions

View file

@ -0,0 +1,30 @@
From ec6b2d2194963f5f17df136b490b6d21c34cc503 Mon Sep 17 00:00:00 2001
From: Pascal Obry <pascal@obry.net>
Date: Fri, 27 Jun 2025 08:14:30 +0200
Subject: [PATCH] Fix compilation when OpenMP is disabled.
Fixes #19006.
---
src/common/darktable.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/common/darktable.c b/src/common/darktable.c
index 11f86b0330a8..e5feaf63eddd 100644
--- a/src/common/darktable.c
+++ b/src/common/darktable.c
@@ -1193,10 +1193,13 @@ int dt_init(int argc, char *argv[], const gboolean init_gui, const gboolean load
if(desired > possible)
dt_print(DT_DEBUG_ALWAYS,
"[dt_init --threads] requested %d ompthreads restricted to %d",
- desired, possible);
+ desired, possible);
+#ifdef _OPENMP
dt_print(DT_DEBUG_ALWAYS,
"[dt_init --threads] using %d threads of %d for openmp parallel sections %s",
- darktable.num_openmp_threads, (int)dt_get_num_procs(), omp_get_dynamic() ? "(dynamic)" : "(static)");
+ darktable.num_openmp_threads, (int)dt_get_num_procs(),
+ omp_get_dynamic() ? "(dynamic)" : "(static)");
+#endif
k++;
argv[k-1] = NULL;
argv[k] = NULL;

View file

@ -1,7 +1,7 @@
# Template file for 'darktable'
pkgname=darktable
version=5.0.1
revision=3
version=5.2.0
revision=1
# upstream only supports these archs:
archs="x86_64* aarch64* ppc64le*"
build_style=cmake
@ -23,7 +23,7 @@ license="GPL-3.0-or-later"
homepage="https://www.darktable.org/"
changelog="https://github.com/darktable-org/darktable/releases"
distfiles="https://github.com/darktable-org/darktable/releases/download/release-${version}/darktable-${version}.tar.xz"
checksum=4a918d094ebba983ef67a10cc715c3d7e8ca738009920a9ff65d33417b6dd984
checksum=53a46cd46ef7118485c4abf4ab407c181639bb8634243ec0ed1f7c1e8299bec6
build_options="avif gmic sdl2"
build_options_default="avif sdl2"
@ -33,10 +33,6 @@ case "${XBPS_TARGET_MACHINE}" in
*) build_options_default+=" gmic" ;;
esac
# 2024-12-27 enabling openmp on anything but x86_64 causes linker errors
# e.g. undefined reference to `_ZGVnN2vv_powf'
case "${XBPS_TARGET_MACHINE}" in
x86_64) ;;
*) configure_args+=" -DUSE_OPENMP=OFF" ;;
*-musl) configure_args+=" -DUSE_OPENMP=OFF";;
esac