Update package version to 8.3.1
This commit is contained in:
@@ -0,0 +1,14 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
URL="https://tiswww.case.edu/php/chet/readline/rltop.html"
|
||||||
|
|
||||||
|
# Get version number from tag name
|
||||||
|
VERSION=$(curl -s -L "$URL" | grep -A1 'The current version of readline is' | grep -o -E '([0-9]\.[0-9]*)' | head -n1)
|
||||||
|
|
||||||
|
# Get patch number
|
||||||
|
PATCH=$(curl -s --list-only ftp://ftp.gnu.org/gnu/readline/readline-${VERSION}-patches/ | grep -v '.sig' | wc -l)
|
||||||
|
|
||||||
|
# Append patch number to version
|
||||||
|
VERSION="${VERSION}.${PATCH}"
|
||||||
|
|
||||||
|
echo "$VERSION"
|
||||||
@@ -1,7 +1,6 @@
|
|||||||
name: readline
|
name: readline
|
||||||
description: GNU readline library
|
description: GNU readline library
|
||||||
version: 8.3
|
version: 8.3.1
|
||||||
revision: 2
|
|
||||||
url: https://tiswww.case.edu/php/chet/readline/rltop.html
|
url: https://tiswww.case.edu/php/chet/readline/rltop.html
|
||||||
license: GPL3-only
|
license: GPL3-only
|
||||||
architecture: any
|
architecture: any
|
||||||
|
|||||||
@@ -1,33 +0,0 @@
|
|||||||
*** ../readline-8.3/input.c Fri May 2 09:29:05 2025
|
|
||||||
--- input.c Tue Jul 8 15:37:13 2025
|
|
||||||
***************
|
|
||||||
*** 262,266 ****
|
|
||||||
tty = fileno (rl_instream);
|
|
||||||
|
|
||||||
! /* Move this up here to give it first shot, but it can't set chars_avail */
|
|
||||||
/* XXX - need rl_chars_available_hook? */
|
|
||||||
if (rl_input_available_hook)
|
|
||||||
--- 262,267 ----
|
|
||||||
tty = fileno (rl_instream);
|
|
||||||
|
|
||||||
! /* Move this up here to give it first shot, but it can't set chars_avail,
|
|
||||||
! so we assume a single character is available. */
|
|
||||||
/* XXX - need rl_chars_available_hook? */
|
|
||||||
if (rl_input_available_hook)
|
|
||||||
***************
|
|
||||||
*** 269,272 ****
|
|
||||||
--- 270,275 ----
|
|
||||||
if (result == 0)
|
|
||||||
result = -1;
|
|
||||||
+ else
|
|
||||||
+ chars_avail = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
***************
|
|
||||||
*** 286,289 ****
|
|
||||||
--- 289,293 ----
|
|
||||||
if (result <= 0)
|
|
||||||
return 0; /* Nothing to read. */
|
|
||||||
+ result = -1; /* there is something, so check how many chars below */
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
@@ -2,7 +2,8 @@
|
|||||||
# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE
|
# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE
|
||||||
# BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT
|
# BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT
|
||||||
|
|
||||||
DOWNLOAD="https://ftp.gnu.org/gnu/readline/readline-${BPM_PKG_VERSION}.tar.gz"
|
DOWNLOAD="https://ftp.gnu.org/gnu/readline/readline-${BPM_PKG_VERSION%.*}.tar.gz"
|
||||||
|
DOWNLOAD_PATCH_BASE="https://ftp.gnu.org/gnu/readline/readline-${BPM_PKG_VERSION%.*}-patches/readline$(echo ${BPM_PKG_VERSION%.*} | tr -d '.')"
|
||||||
FILENAME="${DOWNLOAD##*/}"
|
FILENAME="${DOWNLOAD##*/}"
|
||||||
|
|
||||||
# The prepare function is executed in the root of the temp directory
|
# The prepare function is executed in the root of the temp directory
|
||||||
@@ -11,10 +12,16 @@ prepare() {
|
|||||||
wget "$DOWNLOAD"
|
wget "$DOWNLOAD"
|
||||||
tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE"
|
tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE"
|
||||||
|
|
||||||
# Apply patches
|
# Download and apply official patches
|
||||||
cd "$BPM_SOURCE"
|
cd "$BPM_SOURCE"
|
||||||
|
for patch in $(seq "${BPM_PKG_VERSION##*.}"); do
|
||||||
|
wget -O "${patch}.patch" "${DOWNLOAD_PATCH_BASE}-$(printf '%03d' ${patch})"
|
||||||
|
patch -Np0 -i "${patch}.patch"
|
||||||
|
done
|
||||||
|
|
||||||
|
# Apply local patches
|
||||||
patch -Np2 < "$BPM_WORKDIR"/8.3.0-display-null-prompt.patch
|
patch -Np2 < "$BPM_WORKDIR"/8.3.0-display-null-prompt.patch
|
||||||
patch -Np2 < "$BPM_WORKDIR"/8.3.0-event-hook.patch
|
|
||||||
autoconf -fiv
|
autoconf -fiv
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user