Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Commit

Permalink
Upgrade PCRE to 10.23
Browse files Browse the repository at this point in the history
  • Loading branch information
tkelman committed Mar 5, 2017
1 parent 08f00b5 commit 05d66d1
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 4 deletions.
2 changes: 1 addition & 1 deletion deps/Versions.make
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
LLVM_VER = 3.9.1
PCRE_VER = 10.22
PCRE_VER = 10.23
DSFMT_VER = 2.2.3
LAPACK_VER = 3.5.0
ARPACK_VER = 3.3.0
Expand Down
1 change: 0 additions & 1 deletion deps/checksums/pcre2-10.22.tar.bz2/md5

This file was deleted.

1 change: 0 additions & 1 deletion deps/checksums/pcre2-10.22.tar.bz2/sha512

This file was deleted.

1 change: 1 addition & 0 deletions deps/checksums/pcre2-10.23.tar.bz2/md5
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
b2cd00ca7e24049040099b0a46bb3649
1 change: 1 addition & 0 deletions deps/checksums/pcre2-10.23.tar.bz2/sha512
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3e5910bd2405cc35934d91e4be760abe4f2e900202a20b6ba74adb7a3acb2b74b3bf9b0e97e8de10f8e8534133e0722e0bf0f5fb40d6c2c4520d1ed61749d456
13 changes: 13 additions & 0 deletions deps/patches/pcre-mingw.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/src/pcre2grep.c b/src/pcre2grep.c
index e98d743..f00dac2 100644
--- a/src/pcre2grep.c
+++ b/src/pcre2grep.c
@@ -628,7 +628,7 @@ z/OS, and "no support". */

/************* Directory scanning Unix-style and z/OS ***********/

-#if (defined HAVE_SYS_STAT_H && defined HAVE_DIRENT_H && defined HAVE_SYS_TYPES_H) || defined NATIVE_ZOS
+#if ((defined HAVE_SYS_STAT_H && defined HAVE_DIRENT_H && defined HAVE_SYS_TYPES_H) || defined NATIVE_ZOS) && !defined WIN32
#include <sys/types.h>
#include <sys/stat.h>
#include <dirent.h>
7 changes: 6 additions & 1 deletion deps/pcre.mk
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,12 @@ $(SRCDIR)/srccache/pcre2-$(PCRE_VER)/source-extracted: $(SRCDIR)/srccache/pcre2-
touch -c $(SRCDIR)/srccache/pcre2-$(PCRE_VER)/configure # old target
echo $1 > $@

$(BUILDDIR)/pcre2-$(PCRE_VER)/build-configured: $(SRCDIR)/srccache/pcre2-$(PCRE_VER)/source-extracted
# patch for mingw build https://bugs.exim.org/show_bug.cgi?id=2067
$(SRCDIR)/srccache/pcre2-$(PCRE_VER)/pcre-mingw.patch-applied: $(SRCDIR)/srccache/pcre2-$(PCRE_VER)/source-extracted
cd $(dir $@) && patch -p1 < $(SRCDIR)/patches/pcre-mingw.patch
echo 1 > $@

$(BUILDDIR)/pcre2-$(PCRE_VER)/build-configured: $(SRCDIR)/srccache/pcre2-$(PCRE_VER)/source-extracted $(SRCDIR)/srccache/pcre2-$(PCRE_VER)/pcre-mingw.patch-applied
mkdir -p $(dir $@)
cd $(dir $@) && \
$(dir $<)/configure $(CONFIGURE_COMMON) --enable-jit --includedir=$(build_includedir) CFLAGS="$(CFLAGS) $(PCRE_CFLAGS)" LDFLAGS="$(LDFLAGS) $(PCRE_LDFLAGS)"
Expand Down

0 comments on commit 05d66d1

Please sign in to comment.