Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 569816
Collapse All | Expand All

(-)a/sys-apps/grep/files/grep-2.25-skip_test_pcre-jitstack_if_libpcre_is_build_without_jit.patch (+25 lines)
Line 0 Link Here
1
If libpcre is build without jit, then grep fails the test pcre-jitstack with
2
3
    grep: internal PCRE error: -21
4
5
libpcre error 21 is
6
7
    #define PCRE_ERROR_RECURSIONLIMIT  (-21)
8
9
This is not grep's fault, so we skip this test.
10
The corresponding Gentoo bug is #569816 [0].
11
12
[0] https://bugs.gentoo.org/show_bug.cgi?id=569816
13
14
diff -ur grep-2.25/tests/pcre-jitstack grep-2.25_b/tests/pcre-jitstack
15
--- a/tests/pcre-jitstack
16
+++ b/tests/pcre-jitstack
17
@@ -10,6 +10,8 @@
18
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
19
 require_pcre_
20
 
21
+skip_ "test pcre-jitstack is known to fail if libpcre is build without jit (Gentoo bug #569816)"
22
+
23
 nl_base64=$(echo | (base64) 2>/dev/null) && test "X$nl_base64" = XCg== ||
24
   skip_ "your system lacks the base64 program"
25
 foo=$( (echo foo | gzip | gzip -d) 2>/dev/null) && test "X$foo" = Xfoo ||
(-)a/sys-apps/grep/grep-2.25.ebuild (-1 / +2 lines)
Lines 28-33 DEPEND="${RDEPEND} Link Here
28
DOCS=( AUTHORS ChangeLog NEWS README THANKS TODO )
28
DOCS=( AUTHORS ChangeLog NEWS README THANKS TODO )
29
29
30
src_prepare() {
30
src_prepare() {
31
	has_version "dev-libs/libpcre[-jit]" && \
32
		epatch "${FILESDIR}/${P}-skip_test_pcre-jitstack_if_libpcre_is_build_without_jit.patch"
31
	sed -i \
33
	sed -i \
32
		-e "s:@SHELL@:${EPREFIX}/bin/sh:g" \
34
		-e "s:@SHELL@:${EPREFIX}/bin/sh:g" \
33
		src/egrep.sh || die #523898
35
		src/egrep.sh || die #523898
34
- 

Return to bug 569816