public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Artur Frenszek-Iwicki <fedora@svgames.pl>
To: git-commits@fedoraproject.org
Subject: [rpms/ularn] rawhide: Fix FTBFS (rhbz#2385711 + rhbz#2435169)
Date: Fri, 17 Jul 2026 16:07:44 GMT [thread overview]
Message-ID: <178430446424.1.6482133657033450033.rpms-ularn-724d0e2419cc@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/ularn
Branch : rawhide
Commit : 724d0e2419cc90a26ff0f8040b7550c846ce0e75
Author : Artur Frenszek-Iwicki <fedora@svgames.pl>
Date : 2026-07-17T13:29:59+02:00
Stats : +177/-2 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/ularn/c/724d0e2419cc90a26ff0f8040b7550c846ce0e75?branch=rawhide
Log:
Fix FTBFS (rhbz#2385711 + rhbz#2435169)
---
diff --git a/config.sh.in b/config.sh.in
index 20d9174..f048cbc 100644
--- a/config.sh.in
+++ b/config.sh.in
@@ -17,7 +17,7 @@ cppminus=''
d_ftime='define'
d_getopt='define'
d_index='define'
-d_termio='define'
+d_termios='define'
d_voidsig='define'
libc='/usr/lib/libc.a'
mansrc=''
diff --git a/ularn-termio.patch b/ularn-termio.patch
new file mode 100644
index 0000000..d8dcb69
--- /dev/null
+++ b/ularn-termio.patch
@@ -0,0 +1,170 @@
+diff -rU4 Ularn--orig/config.h.SH Ularn/config.h.SH
+--- Ularn--orig/config.h.SH 2001-11-16 19:13:15.000000000 +0100
++++ Ularn/config.h.SH 2026-03-07 17:21:51.720626157 +0100
+@@ -76,14 +76,14 @@
+ */
+ #$d_index index strchr /* cultural */
+ #$d_index rindex strrchr /* differences? */
+
+-/* TERMIO:
++/* TERMIOS:
+ * This symbol, if defined, indicates that the program should include
+- * termio.h rather than sgtty.h. There are also differences in the
++ * termios.h rather than sgtty.h. There are also differences in the
+ * ioctl() calls that depend on the value of this symbol.
+ */
+-#$d_termio TERMIO /**/
++#$d_termios TERMIOS /**/
+
+ /* VOIDSIG:
+ * This symbol is defined if this system declares "void (*signal())()" in
+ * signal.h. The old way was to declare it as "int (*signal())()". It
+diff -rU4 Ularn--orig/Configure Ularn/Configure
+--- Ularn--orig/Configure 2001-11-16 19:15:20.000000000 +0100
++++ Ularn/Configure 2026-03-07 17:21:14.148181056 +0100
+@@ -49,9 +49,9 @@
+ cppminus=''
+ d_ftime=''
+ d_getopt=''
+ d_index=''
+-d_termio=''
++d_termios=''
+ d_voidsig=''
+ libc=''
+ mansrc=''
+ manext=''
+@@ -1174,22 +1174,22 @@
+ Cppsym -l $attrlist >Cppsym.true
+ cat Cppsym.true
+ rmlist="$rmlist Cppsym Cppsym.know Cppsym.true"
+
+-: see if this is a termio system
++: see if this is a termios system
+ echo " "
+ if Cppsym pyr && $test -r /usr/include/sgtty.h ; then
+- d_termio="$undef"
++ d_termios="$undef"
+ echo "sgtty.h found."
+-elif $test -r /usr/include/termio.h ; then
+- d_termio="$define"
+- echo "termio.h found."
++elif $test -r /usr/include/termios.h ; then
++ d_termios="$define"
++ echo "termios.h found."
+ elif $test -r /usr/include/sgtty.h ; then
+- d_termio="$undef"
++ d_termios="$undef"
+ echo "sgtty.h found."
+ else
+- d_termio="$undef"
+- echo "Neither termio.h nor sgtty.h found--you could have problems."
++ d_termios="$undef"
++ echo "Neither termios.h nor sgtty.h found--you could have problems."
+ fi
+
+ : see if signal is declared as pointer to function returning int or void
+ echo " "
+@@ -1411,9 +1411,9 @@
+ cppminus='$cppminus'
+ d_ftime='$d_ftime'
+ d_getopt='$d_getopt'
+ d_index='$d_index'
+-d_termio='$d_termio'
++d_termios='$d_termios'
+ d_voidsig='$d_voidsig'
+ libc='$libc'
+ mansrc='$mansrc'
+ manext='$manext'
+diff -rU4 Ularn--orig/header.h Ularn/header.h
+--- Ularn--orig/header.h 2001-11-16 19:13:19.000000000 +0100
++++ Ularn/header.h 2026-03-07 17:21:57.378543714 +0100
+@@ -13,15 +13,15 @@
+ #ifdef ITIMER
+ # include SYSTIME
+ #endif /* ITIMER */
+
+-#ifdef TERMIO
+-# include <termio.h>
++#ifdef TERMIOS
++# include <termios.h>
+ #else
+ # include <sys/ioctl.h>
+ # include <sys/file.h>
+ # include <sgtty.h>
+-#endif /* TERMIO */
++#endif /* TERMIOS */
+
+ #include <ctype.h>
+ #include <fcntl.h>
+ #include <pwd.h>
+diff -rU4 Ularn--orig/tty.c Ularn/tty.c
+--- Ularn--orig/tty.c 2001-11-16 19:13:32.000000000 +0100
++++ Ularn/tty.c 2026-07-17 13:24:52.570317999 +0200
+@@ -2,9 +2,9 @@
+ #include "header.h"
+ #include "player.h"
+ #include "extern.h"
+
+-#ifndef TERMIO /* sgtty stuff */
++#ifndef TERMIOS /* sgtty stuff */
+ # define ECHOMASK ECHO
+ # define termstruct sgttyb
+ # define kill_sym sg_kill
+ # define erase_sym sg_erase
+@@ -24,10 +24,11 @@
+ # define vmin t_eofc
+ # define vtime t_brkc
+ struct tchars inittyb2, curttyb2;
+ #else
++# include <sys/ioctl.h>
+ # define ECHOMASK (ECHO|ECHOE|ECHOK|ECHONL)
+-# define termstruct termio
++# define termstruct termios
+ # define kill_sym c_cc[VKILL]
+ # define erase_sym c_cc[VERASE]
+ # define intr_sym c_cc[VINTR]
+ # define EXTABS TAB3
+@@ -45,9 +46,9 @@
+ # define vmin c_cc[VMIN]
+ # define vtime c_cc[VTIME]
+ # define inittyb2 inittyb
+ # define curttyb2 curttyb
+-#endif /* TERMIO */
++#endif /* TERMIOS */
+
+ extern short ospeed;
+
+ static struct termstruct inittyb, curttyb;
+@@ -100,9 +101,9 @@
+
+ setuptty()
+ {
+ curttyb.echoflgs &= ~ECHOMASK;
+-#ifdef TERMIO
++#ifdef TERMIOS
+ curttyb.cbrkflgs &= ~CBRKMASK;
+ #else
+ curttyb.cbrkflgs |= CBRKMASK;
+ #endif
+@@ -120,9 +121,9 @@
+ */
+ scbr ()
+ {
+ curttyb.cbrkflgs &= ~ECHOMASK;
+-#ifdef TERMIO
++#ifdef TERMIOS
+ curttyb.cbrkflgs &= ~CBRKMASK;
+ #else
+ curttyb.cbrkflgs |= CBRKMASK;
+ #endif
+@@ -135,9 +136,9 @@
+ */
+ sncbr ()
+ {
+ curttyb.cbrkflgs |= ECHOMASK;
+-#ifdef TERMIO
++#ifdef TERMIOS
+ curttyb.cbrkflgs |= CBRKMASK;
+ #else
+ curttyb.cbrkflgs &= ~CBRKMASK;
+ #endif
diff --git a/ularn.spec b/ularn.spec
index e992ac6..fb73719 100644
--- a/ularn.spec
+++ b/ularn.spec
@@ -1,6 +1,6 @@
Name: ularn
Version: 1.5p4
-Release: 51%{?dist}
+Release: 52%{?dist}
Summary: Simple roguelike game
License: GPL-1.0-or-later
@@ -13,6 +13,7 @@ Patch0: ularn-build.patch
Patch1: ularn-euid.patch
Patch2: ularn-datadir.patch
Patch3: ularn-drop-setgid.patch
+Patch4: ularn-termio.patch
BuildRequires: make
BuildRequires: gcc
@@ -40,6 +41,7 @@ chmod +x config.h.SH
%patch -P1 -p1
%patch -P2 -p1
%patch -P3 -p1
+%patch -P4 -p1
%build
# This package requires C89 compatibility mode (bug 2155503).
@@ -76,6 +78,9 @@ install -p -m 644 %{SOURCE3} $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/32x32/app
%license GPL
%changelog
+* Fri Jul 17 2026 Artur Frenszek-Iwicki <fedora@svgames.pl> - 1.5p4-52
+- Fix FTBFS (rhbz#2385711 + rhbz#2435169)
+
* Fri Jul 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 1.5p4-51
- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
reply other threads:[~2026-07-17 16:07 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178430446424.1.6482133657033450033.rpms-ularn-724d0e2419cc@fedoraproject.org \
--to=fedora@svgames.pl \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox