public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/slrn] epel10: Port configure script to C99
@ 2026-10-14 13:16 Florian Weimer
  0 siblings, 0 replies; only message in thread
From: Florian Weimer @ 2026-10-14 13:16 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/slrn
            Branch : epel10
            Commit : c75ff0a4111fddf292a7476b400da20fa07535db
            Author : Florian Weimer <fweimer@redhat.com>
            Date   : 2023-02-04T15:09:01+01:00
            Stats  : +53/-1 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/slrn/c/c75ff0a4111fddf292a7476b400da20fa07535db?branch=epel10

            Log:
            Port configure script to C99

Related to:

  <https://fedoraproject.org/wiki/Changes/PortingToModernC>
  <https://fedoraproject.org/wiki/Toolchain/PortingToModernC>

---
diff --git a/slrn-configure-c99.patch b/slrn-configure-c99.patch
new file mode 100644
index 0000000..99b6b9c
--- /dev/null
+++ b/slrn-configure-c99.patch
@@ -0,0 +1,47 @@
+The exit function is called without including <stdlib.h>, resulting in
+an implicit function declarations. Future compilers will not support
+implicit function declarations by default. This will lead to build
+failures.
+
+Submitted upstream: <https://github.com/jedsoft/slrn/pull/1>
+
+diff --git a/autoconf/configure.ac b/autoconf/configure.ac
+index cb4f0fc8646c8f8b..2984007e89936950 100644
+--- a/autoconf/configure.ac
++++ b/autoconf/configure.ac
+@@ -399,6 +399,7 @@ AC_MSG_CHECKING(for an implementation of va_copy())
+ AC_CACHE_VAL(slrn_cv_va_copy,[
+ 	AC_RUN_IFELSE([AC_LANG_SOURCE([[
+ 	#include <stdarg.h>
++	#include <stdlib.h>
+ 	void f (int i, ...) {
+ 	va_list args1, args2;
+ 	va_start (args1, i);
+diff --git a/configure b/configure
+index 1dabb5d67e468261..07fe10653d3544bd 100755
+--- a/configure
++++ b/configure
+@@ -8307,6 +8307,7 @@ else
+ /* end confdefs.h.  */
+ 
+ 	#include <stdarg.h>
++	#include <stdlib.h>
+ 	void f (int i, ...) {
+ 	va_list args1, args2;
+ 	va_start (args1, i);
+@@ -8352,6 +8353,7 @@ else
+ /* end confdefs.h.  */
+ 
+ 	#include <stdarg.h>
++	#include <stdlib.h>
+ 	void f (int i, ...) {
+ 	va_list args1, args2;
+ 	va_start (args1, i);
+@@ -8397,6 +8399,7 @@ else
+ /* end confdefs.h.  */
+ 
+ 	#include <stdarg.h>
++	#include <stdlib.h>
+ 	void f (int i, ...) {
+ 	va_list args1, args2;
+ 	va_start (args1, i);

diff --git a/slrn.spec b/slrn.spec
index f9e570c..6cb9006 100644
--- a/slrn.spec
+++ b/slrn.spec
@@ -1,7 +1,7 @@
 Summary: A threaded Internet news reader
 Name: slrn
 Version: 1.0.3a
-Release: 12%{?dist}
+Release: 13%{?dist}
 License: GPLv2+
 URL: http://slrn.sourceforge.net/
 Source0: http://jedsoft.org/releases/%{name}/%{name}-%{version}.tar.bz2
@@ -19,6 +19,7 @@ Source6: %{name}-gpgkeys.gpg
 Patch1: slrn-1.0.2-Do-not-strip-binaries.patch
 Patch2: slrn-0.9.9pre108-sendmail.patch
 Patch3: fix-FSF-address.patch
+Patch4: slrn-configure-c99.patch
 # Patch4: slrn-dont-limit-signatures.patch
 BuildRequires: make
 BuildRequires: inews
@@ -54,6 +55,7 @@ gpgv2 --quiet --keyring %{SOURCE6} %{SOURCE5} %{SOURCE0}
 %patch1 -p1 -b .nostrip
 %patch2 -p1 -b .sendmail
 %patch3 -p1 -b .FSFaddress
+%patch4 -p1
 #%#patch4 -p1 -b .longsignatures
 
 for i in changes.txt; do
@@ -125,6 +127,9 @@ exit 0
 %{_mandir}/man1/slrnpull.1*
 
 %changelog
+* Sat Feb 04 2023 Florian Weimer <fweimer@redhat.com> - 1.0.3a-13
+- Port configure script to C99
+
 * Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3a-12
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
 

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

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

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-14 13:16 [rpms/slrn] epel10: Port configure script to C99 Florian Weimer

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