[packages/editline] Rel 2

arekm arekm at pld-linux.org
Thu May 21 15:28:19 CEST 2026


commit cdaffad9be3da82612ca1848118b7dc1479780f9
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Thu May 21 15:28:03 2026 +0200

    Rel 2

 editline-prototypes.patch | 21 +++++++++++++++++++++
 editline.spec             |  4 +++-
 2 files changed, 24 insertions(+), 1 deletion(-)
---
diff --git a/editline.spec b/editline.spec
index 504dcdf..cdde0db 100644
--- a/editline.spec
+++ b/editline.spec
@@ -6,11 +6,12 @@ Summary:	Small line editing library without termcap/curses
 Summary(pl.UTF-8):	Mała biblioteka do edycji wiersza bez termcap/curses
 Name:		editline
 Version:	1.17.1
-Release:	1
+Release:	2
 License:	BSD
 Group:		Libraries
 Source0:	ftp://ftp.troglobit.com/editline/%{name}-%{version}.tar.xz
 # Source0-md5:	ec25530e02f0926909bd0f176528019e
+Patch0:		%{name}-prototypes.patch
 URL:		https://troglobit.com/projects/editline/
 BuildRequires:	tar >= 1:1.22
 BuildRequires:	xz
@@ -56,6 +57,7 @@ Statyczna biblioteka editline.
 
 %prep
 %setup -q
+%patch -P0 -p1
 
 %build
 %configure \
diff --git a/editline-prototypes.patch b/editline-prototypes.patch
new file mode 100644
index 0000000..87632d3
--- /dev/null
+++ b/editline-prototypes.patch
@@ -0,0 +1,21 @@
+From: Terry Greeniaus <terrygreeniaus at gmail.com>
+Subject: Fix function prototypes
+
+K&R-style empty parameter lists conflict with the later definitions
+under GCC 14+, which now warns/errors on prototype mismatches.
+
+Upstream commit f53bebd, adjusted to apply against 1.17.1.
+
+--- editline-1.17.1/examples/fileman.c.orig
++++ editline-1.17.1/examples/fileman.c
+@@ -61,8 +61,8 @@ struct cmd commands[] = {
+ };
+
+ /* Forward declarations. */
+-char *stripwhite();
+-struct cmd *find_command();
++char *stripwhite(char *string);
++struct cmd *find_command(char *name);
+
+ /* When non-zero, this means the user is done using this program. */
+ int done;
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/editline.git/commitdiff/cdaffad9be3da82612ca1848118b7dc1479780f9



More information about the pld-cvs-commit mailing list