public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/vapoursynth] rawhide: Fix build on ppc64le
@ 2026-08-10 9:48 Simone Caronni
0 siblings, 0 replies; only message in thread
From: Simone Caronni @ 2026-08-10 9:48 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/vapoursynth
Branch : rawhide
Commit : e341dc574ef2aced765a4e1501d54f8b08f42fd8
Author : Simone Caronni <negativo17@gmail.com>
Date : 2026-08-10T11:48:34+02:00
Stats : +16/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/vapoursynth/c/e341dc574ef2aced765a4e1501d54f8b08f42fd8?branch=rawhide
Log:
Fix build on ppc64le
---
diff --git a/vapoursynth-float16-native-check.patch b/vapoursynth-float16-native-check.patch
new file mode 100644
index 0000000..c6973be
--- /dev/null
+++ b/vapoursynth-float16-native-check.patch
@@ -0,0 +1,14 @@
+--- vapoursynth-R79/src/core/float16_helper.h 2026-08-07 10:48:01.000000000 +0200
++++ vapoursynth-R79/src/core/float16_helper.h 2026-08-10 11:44:16.851849594 +0200
+@@ -31,7 +31,10 @@
+ // Without hardware support the compiler emits __truncsfhf2 / __extendhfsf2
+ // soft-float builtins, which are not linked under clang-cl + lld-link -- so
+ // there we fall back to explicit bit manipulation instead.
+-#if (defined(__clang__) || defined(__GNUC__)) && (defined(__F16C__) || (!defined(__x86_64__) && !defined(__i386__)))
++// Not every non-x86 target has the type at all: PowerPC has no _Float16, and
++// the compiler rejects it outright. __FLT16_MANT_DIG__ is predefined only
++// where _Float16 is actually available, so test for that as well.
++#if (defined(__clang__) || defined(__GNUC__)) && defined(__FLT16_MANT_DIG__) && (defined(__F16C__) || (!defined(__x86_64__) && !defined(__i386__)))
+ # define VS_HAVE_NATIVE_FLOAT16 1
+ #else
+ # define VS_HAVE_NATIVE_FLOAT16 0
diff --git a/vapoursynth.spec b/vapoursynth.spec
index 0a6ebbe..16f7407 100644
--- a/vapoursynth.spec
+++ b/vapoursynth.spec
@@ -8,6 +8,8 @@ URL: http://www.vapoursynth.com
Source0: https://github.com/%{name}/%{name}/archive/R%{version}/%{name}-R%{version}.tar.gz
# Restore soversion that was dropped when libvapoursynth-script was renamed to libvsscript.
Patch0: %{name}-vsscript-soversion.patch
+# Check for _Float16 instead of assuming that everything not x86 provides it.
+Patch1: %{name}-float16-native-check.patch
BuildRequires: gcc-c++
BuildRequires: meson
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-10 9:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-10 9:48 [rpms/vapoursynth] rawhide: Fix build on ppc64le Simone Caronni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox