[packages/tin] fix gettimeofday signature detection with gcc 14

atler atler at pld-linux.org
Tue Jan 21 20:20:05 CET 2025


commit a558ce710407307edbe535b031f7723dc9eece6d
Author: Jan Palus <atler at pld-linux.org>
Date:   Tue Jan 21 20:04:10 2025 +0100

    fix gettimeofday signature detection with gcc 14

 gcc14.patch | 13 +++++++++++++
 tin.spec    | 11 ++++++++---
 2 files changed, 21 insertions(+), 3 deletions(-)
---
diff --git a/tin.spec b/tin.spec
index 9f1a318..37fbbc7 100644
--- a/tin.spec
+++ b/tin.spec
@@ -22,7 +22,9 @@ Source1:	%{name}.desktop
 Source2:	%{name}.attributes
 Patch0:		%{name}-enable_coloring.patch
 Patch1:		%{name}-charset.patch
+Patch2:		gcc14.patch
 URL:		http://www.tin.org/
+BuildRequires:	autoconf >= 2.52
 BuildRequires:	bison
 BuildRequires:	gettext-tools
 BuildRequires:	gsasl-devel
@@ -82,12 +84,15 @@ Tin - це проста у використанні повноекранна п
 
 %prep
 %setup -q
-%patch0 -p1
-%patch1 -p1
+%patch -P0 -p1
+%patch -P1 -p1
+%patch -P2 -p1
 
 %build
+%{__autoconf}
 LDFLAGS="%{rpmldflags}"
-%configure2_13 \
+%configure \
+	CPP="%__cpp" \
 	--disable-debug \
 	--enable-color \
 	--enable-curses \
diff --git a/gcc14.patch b/gcc14.patch
new file mode 100644
index 0000000..4aa7374
--- /dev/null
+++ b/gcc14.patch
@@ -0,0 +1,13 @@
+--- tin-2.6.1/configure.in.orig	2021-12-26 15:00:08.000000000 +0100
++++ tin-2.6.1/configure.in	2025-01-21 19:25:45.244995698 +0100
+@@ -1206,8 +1206,8 @@
+ #if HAVE_SYS_TIME_H
+ #include <sys/time.h>
+ #endif],
+-[struct timeval *tv;
+-struct timezone *tz;
++[struct timeval tv;
++struct timezone tz;
+ gettimeofday(&tv, &tz);],
+ ac_cv_func_gettimeofday_2args=yes, ac_cv_func_gettimeofday_2args=no)
+ AC_MSG_RESULT($ac_cv_func_gettimeofday_2args)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/tin.git/commitdiff/a558ce710407307edbe535b031f7723dc9eece6d



More information about the pld-cvs-commit mailing list