public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/vips] f43: Backport upstream patch to fix thumbnail generation on s390x
@ 2026-06-13 12:56 Kleis Auke Wolthuizen
  0 siblings, 0 replies; only message in thread
From: Kleis Auke Wolthuizen @ 2026-06-13 12:56 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/vips
            Branch : f43
            Commit : 94a2d7cdc209aa9f13f0166fc73b6e0a6def4aab
            Author : Kleis Auke Wolthuizen <fedora@kleisauke.nl>
            Date   : 2025-12-20T10:10:14+01:00
            Stats  : +42/-0 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/vips/c/94a2d7cdc209aa9f13f0166fc73b6e0a6def4aab?branch=f43

            Log:
            Backport upstream patch to fix thumbnail generation on s390x

Resolves: rhbz#2421762

---
diff --git a/pr-4816.patch b/pr-4816.patch
new file mode 100644
index 0000000..ed7d726
--- /dev/null
+++ b/pr-4816.patch
@@ -0,0 +1,39 @@
+From 53621c0068a31baa5bb74927a3828343872da68c Mon Sep 17 00:00:00 2001
+From: Kleis Auke Wolthuizen <github@kleisauke.nl>
+Date: Sat, 20 Dec 2025 10:06:58 +0100
+Subject: [PATCH 1/1] vector: mask supported Highway targets by builtin targets
+ (#4816)
+
+Ensure `vips_vector_get_supported_targets()` only reports targets that
+were actually compiled into libvips by intersecting the CPU supported
+targets with the builtin targets.
+
+Resolves: #4815.
+
+Upstream-Status: Backport [https://github.com/libvips/libvips/commit/53621c0068a31baa5bb74927a3828343872da68c]
+---
+ libvips/iofuncs/vector.cpp | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/libvips/iofuncs/vector.cpp b/libvips/iofuncs/vector.cpp
+index e1c3119d3c..f251696817 100644
+--- a/libvips/iofuncs/vector.cpp
++++ b/libvips/iofuncs/vector.cpp
+@@ -132,7 +132,7 @@ vips_vector_get_builtin_targets()
+ /**
+  * vips_vector_get_supported_targets:
+  *
+- * Gets a bitfield of enabled targets that are supported on this CPU. The
++ * Gets a bitfield of builtin targets that are supported on this CPU. The
+  * targets returned may change after calling [func@vector_disable_targets].
+  *
+  * Returns: a bitfield of supported CPU targets.
+@@ -141,7 +141,7 @@ gint64
+ vips_vector_get_supported_targets()
+ {
+ #ifdef HAVE_HWY
+-	return hwy::SupportedTargets() & ~(HWY_EMU128 | HWY_SCALAR);
++	return hwy::SupportedTargets() & HWY_TARGETS & ~(HWY_EMU128 | HWY_SCALAR);
+ #elif defined(HAVE_ORC)
+ 	return orc_target_get_default_flags(orc_target_get_default());
+ #else

diff --git a/vips.spec b/vips.spec
index 151f5d6..7e38cc9 100644
--- a/vips.spec
+++ b/vips.spec
@@ -11,6 +11,9 @@ License:	LGPL-2.1-or-later
 URL:		https://www.libvips.org/
 Source0:	https://github.com/libvips/libvips/releases/download/v%{version}/%{name}-%{version}.tar.xz
 
+# https://github.com/libvips/libvips/pull/4816
+Patch0:		pr-4816.patch
+
 BuildRequires:	meson
 BuildRequires:	pkgconfig(glib-2.0)
 BuildRequires:	pkgconfig(gobject-introspection-1.0)

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-13 12:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-13 12:56 [rpms/vips] f43: Backport upstream patch to fix thumbnail generation on s390x Kleis Auke Wolthuizen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox