diff --git a/mingw-w64-pcre2/PKGBUILD b/mingw-w64-pcre2/PKGBUILD index bc006c87e597f..e6cf08e40a23f 100644 --- a/mingw-w64-pcre2/PKGBUILD +++ b/mingw-w64-pcre2/PKGBUILD @@ -3,7 +3,7 @@ _realname=pcre2 pkgbase=mingw-w64-${_realname} pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}" -pkgver=10.43 +pkgver=10.44 pkgrel=1 pkgdesc="A library that implements Perl 5-style regular expressions (mingw-w64)" arch=('any') @@ -26,7 +26,7 @@ source=(https://github.com/PhilipHazel/pcre2/releases/download/${_realname}-${pk 0006-RunGrepTest-work-around-Unix-vs-Windows-path-issues.patch 0007-RunGrepTest-Windows-does-not-have-a-bin-echo.patch 0008-RunGrepTest-work-around-MSYS2-idiosyncrasy.patch) -sha256sums=('e2a53984ff0b07dfdb5ae4486bbb9b21cca8e7df2434096cc9bf1b728c350bcb' +sha256sums=('d34f02e113cf7193a1ebf2770d3ac527088d485d4e047ed10e5d217c6ef5de96' 'SKIP' 'bf9f757e17f72009ee04af33c4e5d153ce6f4181e3ad8381d9306019f395048d' 'ab57fb231b459365311c77de051481bfd4b589029e5011a24a0326898a4e018d' @@ -73,7 +73,22 @@ build() { check() { cd "${srcdir}/build-${MSYSTEM}" - make check + + # Work around bug in PCRE2 10.44 + test i686 != "$CARCH" || + for f in testdata/testoutput8-8-2 testdata/testoutput8-16-2 testdata/testoutput8-32-2 + do + cp "../${_realname}-${pkgver}/$f" "../${_realname}-${pkgver}/$f.backup" + perl -pi -e 's{^(Memory allocation - compiled block : )(\d+)$}{$1 . ($2 - 24)}e' "../${_realname}-${pkgver}/$f" + done + + make check || return 1 + + for f in testdata/testoutput8-8-2 testdata/testoutput8-16-2 testdata/testoutput8-32-2 + do + test ! -f "../${_realname}-${pkgver}/$f.backup" || + mv "../${_realname}-${pkgver}/$f.backup" "../${_realname}-${pkgver}/$f" + done } package() {