macos-setup.sh: Update the PCRE URL.

As noted on https://pcre.org/, ftp.pcre.org has been shut down. Switch
to SourceForge and bump the version to 8.45. Fixes #17834.
This commit is contained in:
Gerald Combs 2022-01-04 18:19:20 -08:00 committed by A Wireshark GitLab Utility
parent 4b5d54f5ea
commit e9bc60ace4
1 changed files with 2 additions and 2 deletions

View File

@ -72,7 +72,7 @@ LZIP_VERSION=1.21
# The version of libPCRE on Catalina is insufficient to build glib due to
# missing UTF-8 support.
#
PCRE_VERSION=8.44
PCRE_VERSION=8.45
#
# CMake is required to do the build - and to build some of the
@ -366,7 +366,7 @@ uninstall_lzip() {
install_pcre() {
if [ "$PCRE_VERSION" -a ! -f pcre-$PCRE_VERSION-done ] ; then
echo "Downloading, building, and installing pcre:"
[ -f pcre-$PCRE_VERSION.tar.bz2 ] || curl -L -O https://ftp.pcre.org/pub/pcre/pcre-$PCRE_VERSION.tar.bz2 || exit 1
[ -f pcre-$PCRE_VERSION.tar.bz2 ] || curl -L -O https://sourceforge.net/projects/pcre/files/pcre/$PCRE_VERSION/pcre-$PCRE_VERSION.tar.bz2 || exit 1
$no_build && echo "Skipping installation" && return
bzcat pcre-$PCRE_VERSION.tar.bz2 | tar xf - || exit 1
cd pcre-$PCRE_VERSION