The package rpms/pcem.git has added or updated architecture specific content in its
spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s):
https://src.fedoraproject.org/cgit/rpms/pcem.git/commit/?id=b9781bc6c8bc8....
Change:
+ExcludeArch: armv7hl i686 ppc64le s390x
Thanks.
Full change:
============
commit b9781bc6c8bc8c012e75dc8710d544454bd59283
Author: Davide Cavalca <dcavalca(a)fedoraproject.org>
Date: Thu Jan 25 14:51:03 2024 -0800
Drop i686 builds
diff --git a/pcem.spec b/pcem.spec
index fd34e65..29918de 100644
--- a/pcem.spec
+++ b/pcem.spec
@@ -23,7 +23,8 @@ Patch: pcem-c99.patch
Patch: pcem-wayland-hack.patch
# checking for cpu... configure: error: Unsupported CPU.
-ExcludeArch: armv7hl ppc64le s390x
+#
https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval
+ExcludeArch: armv7hl i686 ppc64le s390x
BuildRequires: autoconf
BuildRequires: automake
commit 62c09c8ffc0d2680e869057dfccf697f609f5a1b
Author: Davide Cavalca <dcavalca(a)fedoraproject.org>
Date: Thu Jan 25 14:37:29 2024 -0800
Workaround Wayland issues by forcing X11 for now; Fixes: RHBZ#2212225
diff --git a/pcem-wayland-hack.patch b/pcem-wayland-hack.patch
new file mode 100644
index 0000000..fc6beca
--- /dev/null
+++ b/pcem-wayland-hack.patch
@@ -0,0 +1,20 @@
+diff -Naur a/src/wx-main.cc b/src/wx-main.cc
+--- a/src/wx-main.cc 2020-12-01 11:49:05.000000000 -0800
++++ b/src/wx-main.cc 2024-01-25 14:29:55.976837780 -0800
+@@ -8,6 +8,16 @@
+
+ int main(int argc, char **argv)
+ {
++ /*
++ * PCem does not work properly on Wayland at the moment, so force
++ * SDL and GTK to use the x11 backend.
++ *
++ * See
https://github.com/sarah-walker-pcem/pcem/issues/128 for details
++ */
++
++ setenv("SDL_VIDEODRIVER", "x11", 1);
++ setenv("GDK_BACKEND", "x11", 1);
++
+ if (!pc_main(argc, argv))
+ return -1;
+
diff --git a/pcem.spec b/pcem.spec
index 74c2828..fd34e65 100644
--- a/pcem.spec
+++ b/pcem.spec
@@ -15,7 +15,12 @@ License: GPL-2.0-or-later and MIT and BSD-3-Clause
URL:
https://pcem-emulator.co.uk
Source: %{forgeurl}/archive/v%{version}/%{name}-%{version}.tar.gz
Source:
%{metadata_forgeurl}/archive/%{metadata_commit}/flathub-%{metadata_commit}.tar.gz
-Patch0: pcem-c99.patch
+# Define HAVE_UNISTD_H in config.h for the benefit of slrip/debug.c
+# Already fixed upstream with the switch to CMake
+Patch: pcem-c99.patch
+# Workaround Wayland issues by forcing X11 for now
+# Backport of
https://github.com/sarah-walker-pcem/pcem/pull/222
+Patch: pcem-wayland-hack.patch
# checking for cpu... configure: error: Unsupported CPU.
ExcludeArch: armv7hl ppc64le s390x
commit 594b08b8bb4e0e0dd07e2e543587153671c429f4
Author: Davide Cavalca <dcavalca(a)fedoraproject.org>
Date: Thu Jan 25 14:37:08 2024 -0800
Relax build type safety to fix FTBFS
diff --git a/pcem.spec b/pcem.spec
index 5c1a124..74c2828 100644
--- a/pcem.spec
+++ b/pcem.spec
@@ -2,6 +2,9 @@
%global metadata_forgeurl
https://github.com/X-m7/flathub
%global metadata_commit ad9aafaaf2f3c1faccc3a99c11d62daca8520d02
+# Relax due to incompatible pointer issues
+%global build_type_safety_c 2
+
Name: pcem
Version: 17
Release: %autorelease
commit 9bcd3f8d4dad42e211ed7e61f9f1b66032577b66
Author: Fedora Release Engineering <releng(a)fedoraproject.org>
Date: Thu Jan 25 12:16:38 2024 +0000
Rebuilt for
https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
commit 958f0622b387625e53dea45f9b7253248acea582
Author: Fedora Release Engineering <releng(a)fedoraproject.org>
Date: Sun Jan 21 11:59:35 2024 +0000
Rebuilt for
https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild