public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/xmountains] rawhide: 2.15
@ 2026-10-11 13:59 Mamoru TASAKA
  0 siblings, 0 replies; only message in thread
From: Mamoru TASAKA @ 2026-10-11 13:59 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/xmountains
Branch : rawhide
Commit : aebdeb84340a958efeba3bc5a25ca996e3fb9639
Author : Mamoru TASAKA <mtasaka@fedoraproject.org>
Date   : 2026-10-11T22:59:34+09:00
Stats  : +63/-70 in 5 file(s)
URL    : https://src.fedoraproject.org/rpms/xmountains/c/aebdeb84340a958efeba3bc5a25ca996e3fb9639?branch=rawhide

Log:
2.15

---
diff --git a/sources b/sources
index 59fa754..e2270e6 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (xmountains-2.11.tar.gz) = 0c9f9d66d6288ad1bdbc76b0bc35f66f9baa3842da2fd55a434ee9e52d6ac18deb1fb3930456ad45422074814657008471edde5ac42b628b843adf4b794efd33
+SHA512 (xmountains-2.15.tar.gz) = 37807865a0c1d285102405886e549cf832c6dcc1faaa1b18b816d23f443276bd7bc97a1cd686692efee8fbe0a6d8cb79edb54ec68a60fcaf23acb0787eeaec9e

diff --git a/xmountains-2.11-c23.patch b/xmountains-2.11-c23.patch
deleted file mode 100644
index b0340d4..0000000
--- a/xmountains-2.11-c23.patch
+++ /dev/null
@@ -1,61 +0,0 @@
-diff --git a/X_graphics.c b/X_graphics.c
-index 3b5d7b2..ceef856 100644
---- a/X_graphics.c
-+++ b/X_graphics.c
-@@ -80,8 +80,7 @@ TRUE,
- void finish_artist();
- 
- /*{{{void zap_events(int snooze)*/
--void zap_events(snooze)
--int snooze;
-+void zap_events()
- {
-   XEvent event;
-   XExposeEvent *expose = (XExposeEvent *)&event;
-@@ -427,7 +426,7 @@ Gun *blue;
-     XMapWindow(dpy, win );
-   }
-   XClearWindow(dpy,win);
--  zap_events(0);
-+  zap_events();
-   
-   gptr->graph_width = graph_width;
-   gptr->graph_height = graph_height;
-diff --git a/xmountains.c b/xmountains.c
-index 6968b92..108b492 100644
---- a/xmountains.c
-+++ b/xmountains.c
-@@ -5,6 +5,7 @@
- #include <signal.h>
- #include <sys/types.h>
- #include <unistd.h>
-+#include <X11/Xlib.h>
- #include "crinkle.h"
- #include "paint.h"
- #include "patchlevel.h"
-@@ -78,7 +79,6 @@ int my_getopt (int argc, char **argv, char *pat)
- }
- /* }}} */
- 
--double atof();
- #ifdef ANSI
- void init_graphics (int, Window, int,int, Graph *, Gun *, Gun *, Gun *);
- void clear_col( int );
-@@ -95,7 +95,7 @@ void scroll_screen ();
- void zap_events();
- #endif
- 
--void finish_prog();
-+void finish_prog(int);
- 
- int s_height=768, s_width=1024;
- int mapwid;
-@@ -483,7 +483,7 @@ int main (int argc, char **argv)
-     
- extern int quit_xmount;
- 
--void finish_prog()
-+void finish_prog(int)
- {
-   /* The next time zap_events is called the program will quit */
-   quit_xmount=TRUE;

diff --git a/xmountains-2.15-6dce3ff-lto-prototype.patch b/xmountains-2.15-6dce3ff-lto-prototype.patch
new file mode 100644
index 0000000..a05d66e
--- /dev/null
+++ b/xmountains-2.15-6dce3ff-lto-prototype.patch
@@ -0,0 +1,38 @@
+From 6dce3ff31e7fa13350cf16c887f567a8e6aeff12 Mon Sep 17 00:00:00 2001
+From: sbooth <s.booth@epcc.ed.ac.uk>
+Date: Mon, 28 Sep 2026 17:14:37 +0100
+Subject: [PATCH] fix prototype errors
+
+---
+ X_graphics.c | 4 ++--
+ xmountains.c | 2 +-
+ 2 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/X_graphics.c b/X_graphics.c
+index 45988ab..9aa8c98 100644
+--- a/X_graphics.c
++++ b/X_graphics.c
+@@ -79,8 +79,8 @@ TRUE,
+ 
+ void finish_artist();
+ 
+-/*{{{void zap_events(int snooze)*/
+-void zap_events(int snooze)
++/*{{{void zap_events()*/
++void zap_events()
+ {
+   XEvent event;
+   XExposeEvent *expose = (XExposeEvent *)&event;
+diff --git a/xmountains.c b/xmountains.c
+index a772f2a..9eecc1f 100644
+--- a/xmountains.c
++++ b/xmountains.c
+@@ -82,7 +82,7 @@ int my_getopt (int argc, char **argv, char *pat)
+ /* }}} */
+ 
+ void init_graphics (int, Window, int,int, Graph *, Gun *, Gun *, Gun *);
+-void clear_col( int );
++void blank_col( int );
+ void finish_graphics();
+ void plot_pixel (int, int, unsigned char);
+ void scroll_screen ( int );

diff --git a/xmountains-2.15-prototype-additional-fix.patch b/xmountains-2.15-prototype-additional-fix.patch
new file mode 100644
index 0000000..711cb7e
--- /dev/null
+++ b/xmountains-2.15-prototype-additional-fix.patch
@@ -0,0 +1,11 @@
+--- xmountains-2.15/X_graphics.c.proto	2026-10-11 22:50:27.156156732 +0900
++++ xmountains-2.15/X_graphics.c	2026-10-11 22:53:46.993686854 +0900
+@@ -414,7 +414,7 @@ void init_graphics(int  want_use_root,Wi
+     XMapWindow(dpy, win );
+   }
+   XClearWindow(dpy,win);
+-  zap_events(0);
++  zap_events();
+   
+   gptr->graph_width = graph_width;
+   gptr->graph_height = graph_height;

diff --git a/xmountains.spec b/xmountains.spec
index 75fd1b2..b1141b0 100644
--- a/xmountains.spec
+++ b/xmountains.spec
@@ -1,6 +1,6 @@
 Name:           xmountains
-Version:        2.11
-Release:        8%{?dist}
+Version:        2.15
+Release:        1%{?dist}
 Summary:        A fractal terrain generator
 
 # SPDX confirmed
@@ -9,9 +9,11 @@ URL:            https://spbooth.github.io/xmountains/
 Source0:        https://github.com/spbooth/xmountains/archive/v%{version}/%{name}-%{version}.tar.gz
 Source11:        xscreensaver-xmountains.xml
 Source12:        xscreensaver-xmountains.conf
-# Need report to the upstream
-# Fix for C23
-Patch0:         xmountains-2.11-c23.patch
+# https://github.com/spbooth/xmountains/commit/6dce3ff31e7fa13350cf16c887f567a8e6aeff12
+# Fix function prototype mismatch: lto complains
+Patch0:         xmountains-2.15-6dce3ff-lto-prototype.patch
+# ... And yet more fix for the above (need reporting upstream)
+Patch1:         xmountains-2.15-prototype-additional-fix.patch
 
 BuildRequires:  make
 BuildRequires:  gcc
@@ -41,13 +43,13 @@ This package adds XScreenSaver integration.
 
 %prep
 %setup -q
-%patch -P0 -p1 -b .c23
-
+%patch -P0 -p1 -b .lto
+%patch -P1 -p1 -b .proto
 %global optflags %optflags -Werror=implicit-function-declaration
 
 %build
 xmkmf
-make %{?_smp_mflags} CCOPTIONS="$RPM_OPT_FLAGS -DANSI"
+make %{?_smp_mflags} CCOPTIONS="$RPM_OPT_FLAGS"
 
 %install
 make install \
@@ -84,6 +86,9 @@ fi
 %{_datadir}/xscreensaver/*/*
 
 %changelog
+* Sun Oct 11 2026 Mamoru TASAKA <mtasaka@fedoraproject.org> - 2.15-1
+- 2.15
+
 * Sat Jul 18 2026 Mamoru TASAKA <mtasaka@fedoraproject.org> - 2.11-8
 - Drop ix86 on F45 unavoidably as imake stopped supporting on ix86
 

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

only message in thread, other threads:[~2026-10-11 13:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-11 13:59 [rpms/xmountains] rawhide: 2.15 Mamoru TASAKA

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