Skip to content

Commit

Permalink
Merge pull request #123 from git-for-windows/mingw-w64-pcre2-10.44
Browse files Browse the repository at this point in the history
mingw-w64-pcre2: update to 10.44
  • Loading branch information
dscho authored Jun 7, 2024
2 parents e09a7a9 + abf0707 commit fb869d2
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions mingw-w64-pcre2/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand All @@ -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'
Expand Down Expand Up @@ -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() {
Expand Down

0 comments on commit fb869d2

Please sign in to comment.