Accepting request 1220350 from games
OBS-URL: https://build.opensuse.org/request/show/1220350 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/vitetris?expand=0&rev=6
This commit is contained in:
commit
290e2dec05
25
vitetris-fix-gcc14.patch
Normal file
25
vitetris-fix-gcc14.patch
Normal file
@ -0,0 +1,25 @@
|
||||
diff --git a/src/menu/netplay.c b/src/menu/netplay.c
|
||||
index 0b03ec7..f181ebb 100644
|
||||
--- a/src/menu/netplay.c
|
||||
+++ b/src/menu/netplay.c
|
||||
@@ -17,7 +17,7 @@ static char name_str[18];
|
||||
|
||||
static int cursor = -1;
|
||||
|
||||
-static init_field(char *str, const char *val, int maxlen)
|
||||
+static void init_field(char *str, const char *val, int maxlen)
|
||||
{
|
||||
memset(str, ' ', maxlen+1);
|
||||
if (val) {
|
||||
diff --git a/src/netw/tty_socket.c b/src/netw/tty_socket.c
|
||||
index c6858a4..1593498 100644
|
||||
--- a/src/netw/tty_socket.c
|
||||
+++ b/src/netw/tty_socket.c
|
||||
@@ -11,6 +11,7 @@
|
||||
#include <sys/un.h>
|
||||
#include <pwd.h>
|
||||
#include <errno.h>
|
||||
+#include <time.h>
|
||||
#include "sock.h"
|
||||
#include "internal.h"
|
||||
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Nov 2 20:39:09 UTC 2024 - Martin Hauke <mardnh@gmx.de>
|
||||
|
||||
- Add patch:
|
||||
* vitetris-fix-gcc14.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Feb 20 13:28:55 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
#
|
||||
# spec file for package vitetris
|
||||
#
|
||||
# Copyright (c) 2020 SUSE LLC
|
||||
# Copyright (c) 2019-2020, Martin Hauke <mardnh@gmx.de>
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
# Copyright (c) 2019-2024, Martin Hauke <mardnh@gmx.de>
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -31,6 +31,7 @@ URL: http://victornils.net/tetris/
|
||||
Source: https://github.com/vicgeralds/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||
Source1: vitetris.6
|
||||
Patch6: vitetris-fix-font-path.patch
|
||||
Patch7: vitetris-fix-gcc14.patch
|
||||
%if 0%{with allegro}
|
||||
BuildRequires: liballeg-devel
|
||||
%endif
|
||||
@ -51,7 +52,6 @@ makes it possible to play at higher levels. (It does not make it
|
||||
possible to prevent the piece from ever locking by abusing lock delay
|
||||
resets.)
|
||||
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user