public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Simone Caronni <negativo17@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/vapoursynth] rawhide: Fix build on ppc64le
Date: Mon, 10 Aug 2026 09:48:41 GMT	[thread overview]
Message-ID: <178635532156.1.14235143684866970561.rpms-vapoursynth-e341dc574ef2@fedoraproject.org> (raw)

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

                 reply	other threads:[~2026-08-10  9:48 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=178635532156.1.14235143684866970561.rpms-vapoursynth-e341dc574ef2@fedoraproject.org \
    --to=negativo17@gmail.com \
    --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