commit:     0bdc0027d77f551be490f7811702a45b5cd6405c
Author:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Mon May 22 13:17:28 2017 +0000
Commit:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Mon May 22 13:43:56 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0bdc0027

dev-libs/grok: Fix compilation against PCRE >=8.34

In addition, <dev-util/gperf-3.1 dependency was added.

Link: https://github.com/jordansissel/grok/issues/29
Package-Manager: Portage-2.3.5, Repoman-2.3.2

 dev-libs/grok/files/0.9.2-build-with-pcre-lt-8.34.patch | 15 +++++++++++++++
 dev-libs/grok/grok-0.9.2.ebuild                         |  6 ++++--
 2 files changed, 19 insertions(+), 2 deletions(-)

diff --git a/dev-libs/grok/files/0.9.2-build-with-pcre-lt-8.34.patch 
b/dev-libs/grok/files/0.9.2-build-with-pcre-lt-8.34.patch
new file mode 100644
index 00000000000..1593ac30981
--- /dev/null
+++ b/dev-libs/grok/files/0.9.2-build-with-pcre-lt-8.34.patch
@@ -0,0 +1,15 @@
+https://github.com/jordansissel/grok/commit/44ce9372a29319c01d4ac7f24287fb36315e0e34
+
+--- a/grokre.c
++++ b/grokre.c
+@@ -12,8 +12,8 @@
+ 
+ /* global, static variables */
+ 
+-#define CAPTURE_ID_LEN 4
+-#define CAPTURE_FORMAT "%04x"
++#define CAPTURE_ID_LEN 5
++#define CAPTURE_FORMAT "_%04x"
+ 
+ /* internal functions */
+ static char *grok_pattern_expand(grok_t *grok); //, int offset, int length);

diff --git a/dev-libs/grok/grok-0.9.2.ebuild b/dev-libs/grok/grok-0.9.2.ebuild
index e7a4e05d10e..1981d7238fa 100644
--- a/dev-libs/grok/grok-0.9.2.ebuild
+++ b/dev-libs/grok/grok-0.9.2.ebuild
@@ -15,11 +15,13 @@ KEYWORDS="amd64 arm hppa x86"
 
 IUSE=""
 
-DEPEND="dev-db/tokyocabinet
+CDEPEND="dev-db/tokyocabinet
                >=dev-libs/libevent-1.3:=
                >=dev-libs/libpcre-7.6"
 
-RDEPEND="${DEPEND}"
+RDEPEND="${CDEPEND}"
+DEPEND="${CDEPEND}
+               <dev-util/gperf-3.1"
 
 src_prepare() {
        epatch "${FILESDIR}"/${PV}-*.patch

Reply via email to