4 Commits

3 changed files with 46 additions and 3 deletions

28
oneko-gcc15.patch Normal file
View File

@@ -0,0 +1,28 @@
Index: oneko-1.2.sakura.5/oneko.c
===================================================================
--- oneko-1.2.sakura.5.orig/oneko.c
+++ oneko-1.2.sakura.5/oneko.c
@@ -1333,7 +1333,7 @@ NullFunction()
{
/* No Operation */
#if defined(SYSV) || defined(SVR4)
- signal(SIGALRM, NullFunction);
+ signal(SIGALRM, (void (*)(int))NullFunction);
#endif /* SYSV || SVR4 */
}
@@ -1556,10 +1556,10 @@ main(argc, argv)
InitScreen(theDisplayName);
- signal(SIGALRM, NullFunction);
- signal(SIGINT, RestoreCursor);
- signal(SIGTERM, RestoreCursor);
- signal(SIGQUIT, RestoreCursor);
+ signal(SIGALRM, (void (*)(int))NullFunction);
+ signal(SIGINT, (void (*)(int))RestoreCursor);
+ signal(SIGTERM, (void (*)(int))RestoreCursor);
+ signal(SIGQUIT, (void (*)(int))RestoreCursor);
SinPiPer8Times3 = sin(PI_PER8 * (double)3);
SinPiPer8 = sin(PI_PER8);

View File

@@ -1,3 +1,15 @@
-------------------------------------------------------------------
Thu Sep 11 08:09:37 UTC 2025 - Dr. Werner Fink <werner@suse.de>
- Make it build even with broken imake/xmkmf setup
-------------------------------------------------------------------
Mon Jun 9 14:20:19 UTC 2025 - pgajdos@suse.com
- added patches
build with gcc15
+ oneko-gcc15.patch
-------------------------------------------------------------------
Wed Nov 6 07:53:19 UTC 2024 - Dr. Werner Fink <werner@suse.de>

View File

@@ -1,7 +1,7 @@
#
# spec file for package oneko
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -25,6 +25,8 @@ Group: Amusements/Toys/Graphics
URL: https://www.daidouji.com/oneko/
Source0: %{URL}/distfiles/oneko-%{version}.tar.gz
Patch0: oneko-gcc14.patch
# build with gcc15
Patch1: oneko-gcc15.patch
BuildRequires: imake
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xext)
@@ -37,14 +39,15 @@ cursor.
%prep
%setup -q -b0
%patch -P0 -b .p0
%patch -P 1 -p1
%build
%global optflags %{optflags} -fpermissive
xmkmf -a
make all %{?_smp_mflags}
make all %{?_smp_mflags} MANPATH=%{_mandir}
%install
%make_install install.man
%make_install install.man MANPATH=%{_mandir}
mv README README.jp
%files