Skip to content

Commit b533533

Browse files
committed
Upgrade readline to version 8.1-002
Signed-off-by: Marko Lindqvist <[email protected]>
1 parent 181fc55 commit b533533

File tree

7 files changed

+82
-20
lines changed

7 files changed

+82
-20
lines changed

dllstack.sh

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1119,17 +1119,19 @@ if ! unpack_component ncurses ||
11191119
! deldir_component ncurses $VERSION_NCURSES "ncurses" ||
11201120
! unpack_component readline ||
11211121
! patch_readline ||
1122-
! patch_src readline $VERSION_READLINE "readline_posix" ||
1123-
! (is_minimum_version $VERSION_READLINE 7.0 ||
1124-
patch_src readline $VERSION_READLINE "readline_sighup" ) ||
1125-
! (is_smaller_version $VERSION_READLINE 7.0 ||
1126-
is_minimum_version $VERSION_READLINE 8.0 ||
1127-
patch_src readline $VERSION_READLINE "readline_chown" ) ||
1128-
! patch_src readline $VERSION_READLINE "readline_statf" ||
1129-
! patch_src readline $VERSION_READLINE "readline_ncurses" ||
1122+
! patch_src readline "${VERSION_READLINE}" "readline_posix" ||
1123+
! (is_minimum_version "${VERSION_READLINE}" 7.0 ||
1124+
patch_src readline "${VERSION_READLINE}" "readline_sighup" ) ||
1125+
! (is_smaller_version "${VERSION_READLINE}" 7.0 ||
1126+
is_minimum_version "${VERSION_READLINE}" 8.0 ||
1127+
patch_src readline "${VERSION_READLINE}" "readline_chown" ) ||
1128+
! (is_smaller_version "${VERSION_READLINE}" 8.1 ||
1129+
patch_src readline "${VERSION_READLINE}" "readline_sigblock" ) ||
1130+
! patch_src readline "${VERSION_READLINE}" "readline_statf" ||
1131+
! patch_src readline "${VERSION_READLINE}" "readline_ncurses" ||
11301132
! build_component readline \
1131-
"$READLINE_VARS --with-curses" ||
1132-
! deldir_component readline $VERSION_READLINE "readline"
1133+
"${READLINE_VARS} --with-curses" ||
1134+
! deldir_component readline "${VERSION_READLINE}" "readline"
11331135
then
11341136
log_error "Readline build failed"
11351137
exit 1

doc/ChangeLog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
- Updated pixman to version 0.44.2
2626
- Updated libiconv to version 1.18
2727
- Updated SDL2_image to version 2.8.3
28+
- Updated readline to version 8.1-002
2829

2930
2.9 (04-Sep-24)
3031
- Dropped illegal linker parameter from ImageMagick config

patch/readline_sigblock.patch

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
diff -Nurd readline-8.1/signals.c readline-8.1-newbie/signals.c
2+
--- readline-8.1/signals.c 2020-08-06 23:30:02.000000000 +0300
3+
+++ readline-8.1-newbie/signals.c 2024-12-22 23:27:14.902660588 +0200
4+
@@ -210,7 +210,7 @@
5+
_rl_sigcleanarg = 0;
6+
}
7+
8+
-#if defined (HAVE_POSIX_SIGNALS)
9+
+#if defined (HAVE_POSIX_SIGNALS) && defined (SIG_BLOCK)
10+
/* Get the current set of blocked signals. If we want to block a signal for
11+
the duration of the cleanup functions, make sure to add it to SET and
12+
set block_sig = 1 (see the SIGHUP case below). */
13+
@@ -266,8 +266,10 @@
14+
case SIGQUIT:
15+
#endif
16+
17+
+#ifdef SIG_BLOCK
18+
if (block_sig)
19+
sigprocmask (SIG_BLOCK, &set, &oset);
20+
+#endif
21+
22+
rl_echo_signal_char (sig);
23+
rl_cleanup_after_signal ();
24+
@@ -284,7 +286,7 @@
25+
/* We don't have to bother unblocking the signal because we are not
26+
running in a signal handler context. */
27+
#if 0
28+
-#if defined (HAVE_POSIX_SIGNALS)
29+
+#if defined (HAVE_POSIX_SIGNALS) && defined (SIG_BLOCK)
30+
/* Make sure this signal is not blocked when we resend it to the
31+
calling application. */
32+
sigemptyset (&set);
33+
@@ -470,7 +472,7 @@
34+
35+
if (rl_catch_signals && signals_set_flag == 0)
36+
{
37+
-#if defined (HAVE_POSIX_SIGNALS)
38+
+#if defined (HAVE_POSIX_SIGNALS) && defined (SIG_BLOCK)
39+
sigemptyset (&_rl_orig_sigset);
40+
sigprocmask (SIG_BLOCK, &bset, &_rl_orig_sigset);
41+
#endif
42+
@@ -518,7 +520,7 @@
43+
}
44+
else if (rl_catch_signals == 0)
45+
{
46+
-#if defined (HAVE_POSIX_SIGNALS)
47+
+#if defined (HAVE_POSIX_SIGNALS) && defined (SIG_BLOCK)
48+
sigemptyset (&_rl_orig_sigset);
49+
sigprocmask (SIG_BLOCK, (sigset_t *)NULL, &_rl_orig_sigset);
50+
#endif
51+
@@ -691,7 +693,7 @@
52+
53+
#if defined (SIGWINCH)
54+
55+
-#if defined (HAVE_POSIX_SIGNALS)
56+
+#if defined (HAVE_POSIX_SIGNALS) && defined (SIG_BLOCK)
57+
sigemptyset (&sigwinch_set);
58+
sigemptyset (&sigwinch_oset);
59+
sigaddset (&sigwinch_set, SIGWINCH);

scripts/setup_reader.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,11 @@ if test "$CROSSER_SFML" != "yes" && test "$CROSSER_SFML" != "no" ; then
110110
echo "Unknown value \"$CROSSER_SFML\" for CROSSER_SFML. Valid values are \"yes\" and \"no\"" >&2
111111
exit 1
112112
fi
113-
if test "$CROSSER_READLINE" = "" ; then
114-
CROSSER_READLINE="$CROSSER_FULL"
113+
if test "${CROSSER_READLINE}" = "" ; then
114+
CROSSER_READLINE="${CROSSER_FULL}"
115115
fi
116-
if test "$CROSSER_READLINE" != "yes" && test "$CROSSER_READLINE" != "no" ; then
117-
echo "Unknown value \"$CROSSER_READLINE\" for CROSSER_READLINE. Valid values are \"yes\" and \"no\"" >&2
116+
if test "${CROSSER_READLINE}" != "yes" && test "${CROSSER_READLINE}" != "no" ; then
117+
echo "Unknown value \"${CROSSER_READLINE}\" for CROSSER_READLINE. Valid values are \"yes\" and \"no\"" >&2
118118
exit 1
119119
fi
120120
if test "$CROSSER_PKGCONF" = "" ; then

setups/current.versions

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ VERSION_PKG_CONFIG=0.29.2
2323
VERSION_PKGCONF=2.3.0
2424
VERSION_ICON_NUTILS=0.8.90
2525
VERSION_NCURSES=6.4
26-
VERSION_READLINE=8.0
27-
PATCHES_READLINE=4
26+
VERSION_READLINE=8.1
27+
PATCHES_READLINE=2
2828
VERSION_PCRE2=10.44
2929
VERSION_GLIB=2.82.4
3030
VERSION_FRIBIDI=1.0.16

setups/mature.versions

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ VERSION_PKG_CONFIG=0.29.2
3030
VERSION_PKGCONF=2.2.0
3131
VERSION_ICON_NUTILS=0.8.90
3232
VERSION_NCURSES=6.3
33-
VERSION_READLINE=7.0
34-
PATCHES_READLINE=5
33+
VERSION_READLINE=8.0
34+
PATCHES_READLINE=4
3535
VERSION_PCRE2=10.42
3636
VERSION_GLIB=2.80.5
3737
VERSION_FRIBIDI=1.0.15

setups/test.versions

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ VERSION_PKG_CONFIG=0.29.2
2929
VERSION_PKGCONF=2.3.0
3030
VERSION_ICON_NUTILS=0.8.90
3131
VERSION_NCURSES=6.4
32-
VERSION_READLINE=8.0
33-
PATCHES_READLINE=4
32+
VERSION_READLINE=8.1
33+
PATCHES_READLINE=2
3434
VERSION_PCRE2=10.44
3535
VERSION_GLIB=2.82.4
3636
VERSION_FRIBIDI=1.0.16

0 commit comments

Comments
 (0)