summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Haubenwallner <haubi@gentoo.org>2018-01-17 16:21:25 +0100
committerLars Wendler <polynomial-c@gentoo.org>2018-06-20 11:09:25 +0200
commitfef0e0c22854d149001db13f0e8872c87a6bf68f (patch)
tree658193009e0523e9fcda2132c45f3f33f21bcc72 /dev-libs/libpcre2
parentapp-text/poppler: Adjusted sub-slot in live ebuild. (diff)
downloadgentoo-fef0e0c22854d149001db13f0e8872c87a6bf68f.tar.gz
gentoo-fef0e0c22854d149001db13f0e8872c87a6bf68f.tar.bz2
gentoo-fef0e0c22854d149001db13f0e8872c87a6bf68f.zip
dev-libs/libpcre2: fix cygwin build
Closes: https://bugs.gentoo.org/633612 Package-Manager: Portage-2.3.13, Repoman-2.3.3 Closes: https://github.com/gentoo/gentoo/pull/8918
Diffstat (limited to 'dev-libs/libpcre2')
-rw-r--r--dev-libs/libpcre2/files/libpcre2-10.31-cygwin.patch16
-rw-r--r--dev-libs/libpcre2/libpcre2-10.31.ebuild4
2 files changed, 20 insertions, 0 deletions
diff --git a/dev-libs/libpcre2/files/libpcre2-10.31-cygwin.patch b/dev-libs/libpcre2/files/libpcre2-10.31-cygwin.patch
new file mode 100644
index 000000000000..3f3a33b366ad
--- /dev/null
+++ b/dev-libs/libpcre2/files/libpcre2-10.31-cygwin.patch
@@ -0,0 +1,16 @@
+https://bugs.exim.org/show_bug.cgi?id=2152#c14
+https://vcs.pcre.org/pcre2?view=revision&revision=939
+
+--- pcre2-10.31/src/pcre2grep.c
++++ pcre2-10.31/src/pcre2grep.c
+@@ -64,8 +64,8 @@
+ #endif
+
+ /* Some cmake's define it still */
+-#if defined(__CYGWIN__) && !defined(WIN32)
+-#define WIN32
++#if defined(__CYGWIN__) && defined(WIN32)
++#undef WIN32
+ #endif
+
+ #ifdef WIN32
diff --git a/dev-libs/libpcre2/libpcre2-10.31.ebuild b/dev-libs/libpcre2/libpcre2-10.31.ebuild
index b3366003de68..6cd15f0dac3b 100644
--- a/dev-libs/libpcre2/libpcre2-10.31.ebuild
+++ b/dev-libs/libpcre2/libpcre2-10.31.ebuild
@@ -30,6 +30,10 @@ DEPEND="${RDEPEND}
virtual/pkgconfig
userland_GNU? ( >=sys-apps/findutils-4.4.0 )"
+PATCHES=(
+ "${FILESDIR}"/${P}-cygwin.patch #633612
+)
+
S="${WORKDIR}/${MY_P}"
MULTILIB_CHOST_TOOLS=(