public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/schismtracker] rawhide: fix compilation for ppc64le
@ 2026-08-25 14:11 josef radinger
  0 siblings, 0 replies; only message in thread
From: josef radinger @ 2026-08-25 14:11 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/schismtracker
Branch : rawhide
Commit : 52ca141668dff438038474cd86e5da5bfb16492d
Author : josef radinger <cheese@nosuchhost.net>
Date   : 2026-08-25T16:10:44+02:00
Stats  : +30/-6 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/schismtracker/c/52ca141668dff438038474cd86e5da5bfb16492d?branch=rawhide

Log:
fix compilation for ppc64le

---
diff --git a/ppc64le-vec.patch b/ppc64le-vec.patch
new file mode 100644
index 0000000..4d31bb9
--- /dev/null
+++ b/ppc64le-vec.patch
@@ -0,0 +1,24 @@
+diff --git a/schism/util.c b/schism/util.c
+index 486058d..3cd5c3a 100644
+--- a/schism/util.c
++++ b/schism/util.c
+@@ -478,15 +478,15 @@ vector signed short altivec_set1_s16(signed short x)
+ #define altivec_load_unaligned_(x) vec_perm(vec_ld(0, x), vec_ld(16, x), vec_lvsl(0, x))
+ 
+ static inline SCHISM_ALWAYS_INLINE
+-vector signed char altivec_loadu_s8(const void *x)
++vector signed char altivec_loadu_s8(const vector signed char *x)
+ {
+-	return altivec_load_unaligned_(x);
++	return altivec_load_unaligned_((const signed char *)x);
+ }
+ 
+ static inline SCHISM_ALWAYS_INLINE
+-vector signed short altivec_loadu_s16(const void *x)
++vector signed short altivec_loadu_s16(const vector signed short *x)
+ {
+-	return altivec_load_unaligned_(x);
++	return altivec_load_unaligned_((const signed short *)x);
+ }
+ 
+ #define altivec_store(arr, x) (vec_st(x, 0, arr))

diff --git a/schismtracker.spec b/schismtracker.spec
index cc8a7a0..e0a087c 100644
--- a/schismtracker.spec
+++ b/schismtracker.spec
@@ -1,6 +1,6 @@
 Name:      schismtracker
 Version:   20260524
-Release:   3%{?dist}
+Release:   4%{?dist}
 Summary:   Sound module composer/player
 # Automatically converted from old format: GPLv2 - review is highly recommended.
 License:   GPL-2.0-only
@@ -42,12 +42,7 @@ mkdir auto
 %build
 autoreconf -i
 
-# disable altivec for now to fix compile
-
 %configure --disable-dependency-tracking \
-%ifarch ppc64le
---disable-altivec \
-%endif
 %if 0%{?_without_x:1}
 --with-x=no \
 %endif
@@ -75,6 +70,11 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/schism.desktop
 %{_datadir}/pixmaps/schism*.png
 
 %changelog
+- replace Patch1
+  https://github.com/schismtracker/schismtracker/commit/ee6798584b26856260bccca7b8f7730b221b1c0e.patch
+  with
+  https://raw.githubusercontent.com/chimera-linux/cports/refs/heads/master/main/schismtracker/patches/ppc64le-vec.patch
+
 * Fri Jul 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 20260524-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
 

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

only message in thread, other threads:[~2026-08-25 14:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-25 14:11 [rpms/schismtracker] rawhide: fix compilation for ppc64le josef radinger

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