dev-libs/grok: Fix compilation against PCRE >=8.34
authorThomas Deutschmann <whissi@gentoo.org>
Mon, 22 May 2017 13:17:28 +0000 (15:17 +0200)
committerThomas Deutschmann <whissi@gentoo.org>
Mon, 22 May 2017 13:43:56 +0000 (15:43 +0200)
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 [new file with mode: 0644]
dev-libs/grok/grok-0.9.2.ebuild

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 (file)
index 0000000..1593ac3
--- /dev/null
@@ -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);
index e7a4e05d10e9b625ff0d8960408b91d033cb4e44..1981d7238fac3c4d5240b368afba3e5e250c5a3f 100644 (file)
@@ -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