Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mingw-w64-pcre2: update to 10.44 #123

Merged
merged 2 commits into from
Jun 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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