Skip to content

Commit 82b1295

Browse files
CAB233MingcongBai
authored andcommitted
editline: update to 1.17.1
1 parent 335035f commit 82b1295

File tree

3 files changed

+58
-2
lines changed

3 files changed

+58
-2
lines changed

runtime-common/editline/autobuild/defines

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@ PKGNAME=editline
22
PKGSEC=libs
33
PKGDEP="glibc"
44
PKGDES="A readline() replacement for UNIX without termcap (ncurses)"
5+
6+
ABTYPE=autotools
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
From 356304ff347445bf23c31b90279bb1656573a019 Mon Sep 17 00:00:00 2001
2+
From: CAB233 <[email protected]>
3+
Date: Mon, 6 Oct 2025 17:02:34 +0800
4+
Subject: [PATCH] BACKPORT: fix syntax error in configure.ac file
5+
6+
https://github.com/troglobit/editline/commit/127d9958552b51c1a906b1781aa0ef2eb7bdb9b2
7+
---
8+
configure.ac | 9 +++++----
9+
1 file changed, 5 insertions(+), 4 deletions(-)
10+
11+
diff --git a/configure.ac b/configure.ac
12+
index 6f5b032..6cb7958 100644
13+
--- a/configure.ac
14+
+++ b/configure.ac
15+
@@ -5,7 +5,7 @@ AM_SILENT_RULES([yes])
16+
17+
AC_CONFIG_MACRO_DIR([m4])
18+
AC_CONFIG_SRCDIR([src/editline.c])
19+
-AC_CONFIG_HEADER([config.h])
20+
+AC_CONFIG_HEADERS([config.h])
21+
AC_CONFIG_FILES([Makefile libeditline.pc src/Makefile include/Makefile man/Makefile examples/Makefile])
22+
23+
# Checks for programs.
24+
@@ -18,7 +18,7 @@ LT_INIT
25+
# Checks for header files.
26+
AC_HEADER_DIRENT
27+
AC_HEADER_STAT
28+
-AC_HEADER_STDC
29+
+
30+
# Check for malloc.h instead of AC_FUNC_MALLOC/REALLOC AIX and others
31+
# mess up the traditional malloc check.
32+
AC_CHECK_HEADERS([malloc.h signal.h stdlib.h string.h termcap.h termio.h termios.h sgtty.h unistd.h])
33+
@@ -83,7 +83,7 @@ AS_IF([test "x$enable_terminal_bell" = "xyes"],
34+
AC_DEFINE(CONFIG_TERMINAL_BELL, 1, [Define to enable terminal bell on completion.]))
35+
36+
# Check for a termcap compatible library if enabled
37+
-AS_IF([test "x$enable_termcap" = "xyes"],
38+
+AS_IF([test "x$enable_termcap" = "xyes"], [
39+
AC_DEFINE(CONFIG_USE_TERMCAP, 1, [Define to use the termcap library for terminal size.])
40+
AC_CHECK_LIB(terminfo, tgetent, , [
41+
AC_CHECK_LIB(termcap, tgetent, , [
42+
@@ -94,7 +94,8 @@ AS_IF([test "x$enable_termcap" = "xyes"],
43+
])
44+
])
45+
])
46+
- ]))
47+
+ ])
48+
+ ])
49+
50+
# Generate all files
51+
AC_OUTPUT
52+
--
53+
2.51.0
54+

runtime-common/editline/spec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VER=1.16.1
1+
VER=1.17.1
22
SRCS="tbl::https://github.com/troglobit/editline/releases/download/$VER/editline-$VER.tar.xz"
3-
CHKSUMS="sha256::6518cc0d8241bcebc860432d1babc662a9ce0f5d6035649effe38b5bc9463f8c"
3+
CHKSUMS="sha256::df223b3333a545fddbc67b49ded3d242c66fadf7a04beb3ada20957fcd1ffc0e"
44
CHKUPDATE="anitya::id=229375"

0 commit comments

Comments
 (0)