public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Kleis Auke Wolthuizen <fedora@kleisauke.nl>
To: git-commits@fedoraproject.org
Subject: [rpms/vips] f43: Backport upstream patch to fix thumbnail generation on s390x
Date: Sat, 13 Jun 2026 12:56:57 GMT [thread overview]
Message-ID: <178135541721.1.17512485160832721929.rpms-vips-94a2d7cdc209@fedoraproject.org> (raw)
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)
reply other threads:[~2026-06-13 12:56 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178135541721.1.17512485160832721929.rpms-vips-94a2d7cdc209@fedoraproject.org \
--to=fedora@kleisauke.nl \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox