diff --git a/mingw-w64-readline/PKGBUILD b/mingw-w64-readline/PKGBUILD index fbaa268a1f..f9e2cd57a3 100644 --- a/mingw-w64-readline/PKGBUILD +++ b/mingw-w64-readline/PKGBUILD @@ -4,9 +4,9 @@ _realname=readline pkgbase=mingw-w64-${_realname} pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}" _basever=8.0 -_patchlevel=000 +_patchlevel=001 pkgver=${_basever}.${_patchlevel} -pkgrel=4 +pkgrel=1 pkgdesc="MinGW port of readline for editing typed command lines (mingw-w64)" arch=('any') depends=("${MINGW_PACKAGE_PREFIX}-gcc-libs" @@ -27,7 +27,9 @@ fi validpgpkeys=('7C0135FB088AAF6C66C650B9BB5869F064EA74AB') sha256sums=('e339f51971478d369f8a053a330a190781acb9864cf4c541060f12078948e461' 'SKIP' - '353dcbbc0435c60e33f02f8fb1c2d10e9b966ebe1b3857a0b2e2e268029c6f35') + '353dcbbc0435c60e33f02f8fb1c2d10e9b966ebe1b3857a0b2e2e268029c6f35' + 'd8e5e98933cf5756f862243c0601cb69d3667bb33f2c7b751fe4e40b2c3fd069' + 'SKIP') prepare() { cd "${srcdir}/readline-${_basever}" diff --git a/mingw-w64-readline/readline80-001 b/mingw-w64-readline/readline80-001 new file mode 100644 index 0000000000..aa72a9dfa7 --- /dev/null +++ b/mingw-w64-readline/readline80-001 @@ -0,0 +1,38 @@ + READLINE PATCH REPORT + ===================== + +Readline-Release: 8.0 +Patch-ID: readline80-001 + +Bug-Reported-by: chet.ramey@case.edu +Bug-Reference-ID: +Bug-Reference-URL: + +Bug-Description: + +The history file reading code doesn't close the file descriptor open to +the history file when it encounters a zero-length file. + +Patch (apply with `patch -p0'): + +*** ../readline-8.0-patched/histfile.c 2018-06-11 09:14:52.000000000 -0400 +--- histfile.c 2019-05-16 15:55:57.000000000 -0400 +*************** +*** 306,309 **** +--- 312,316 ---- + { + free (input); ++ close (file); + return 0; /* don't waste time if we don't have to */ + } +*** ../readline-8.0/patchlevel 2013-11-15 08:11:11.000000000 -0500 +--- patchlevel 2014-03-21 08:28:40.000000000 -0400 +*************** +*** 1,3 **** + # Do not edit -- exists only for use by patch + +! 0 +--- 1,3 ---- + # Do not edit -- exists only for use by patch + +! 1 diff --git a/mingw-w64-readline/readline80-001.sig b/mingw-w64-readline/readline80-001.sig new file mode 100644 index 0000000000..9ca780d61c Binary files /dev/null and b/mingw-w64-readline/readline80-001.sig differ