Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 458950 Details for
Bug 569816
sys-apps/grep[pcre] with dev-libs/libpcre[-jit] fails test pcre-jitstack: grep: internal PCRE error: -21 (PCRE_ERROR_RECURSIONLIMIT)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to skip pcre-jitstack test if sys-libs/libpcre is build without jit
0001-sys-apps-grep-2.25-Skip-pcre-jitstack-test.patch (text/plain), 2.23 KB, created by
gentoo_usr
on 2017-01-06 13:51:43 UTC
(
hide
)
Description:
Patch to skip pcre-jitstack test if sys-libs/libpcre is build without jit
Filename:
MIME Type:
Creator:
gentoo_usr
Created:
2017-01-06 13:51:43 UTC
Size:
2.23 KB
patch
obsolete
>Subject: [PATCH] sys-apps/grep-2.25: Skip pcre-jitstack test > >The test pcre-jitstack is known to fail if sys-libs/libpcre is build >without JIT. If sys-libs/pcre is build without JIT, then patch the >grep sources to skip this test. >--- > ...-jitstack_if_libpcre_is_build_without_jit.patch | 25 +++++++++++++++++++ > sys-apps/grep/grep-2.25.ebuild | 2 ++ > 2 files changed, 27 insertions(+), 0 deletions(-) > create mode 100644 sys-apps/grep/files/grep-2.25-skip_test_pcre-jitstack_if_libpcre_is_build_without_jit.patch > >diff --git a/sys-apps/grep/files/grep-2.25-skip_test_pcre-jitstack_if_libpcre_is_build_without_jit.patch b/sys-apps/grep/files/grep-2.25-skip_test_pcre-jitstack_if_libpcre_is_build_without_jit.patch >new file mode 100644 >index 0000000..2eee4fc >--- /dev/null >+++ b/sys-apps/grep/files/grep-2.25-skip_test_pcre-jitstack_if_libpcre_is_build_without_jit.patch >@@ -0,0 +1,25 @@ >+If libpcre is build without jit, then grep fails the test pcre-jitstack with >+ >+ grep: internal PCRE error: -21 >+ >+libpcre error 21 is >+ >+ #define PCRE_ERROR_RECURSIONLIMIT (-21) >+ >+This is not grep's fault, so we skip this test. >+The corresponding Gentoo bug is #569816 [0]. >+ >+[0] https://bugs.gentoo.org/show_bug.cgi?id=569816 >+ >+diff -ur grep-2.25/tests/pcre-jitstack grep-2.25_b/tests/pcre-jitstack >+--- a/tests/pcre-jitstack >++++ b/tests/pcre-jitstack >+@@ -10,6 +10,8 @@ >+ . "${srcdir=.}/init.sh"; path_prepend_ ../src >+ require_pcre_ >+ >++skip_ "test pcre-jitstack is known to fail if libpcre is build without jit (Gentoo bug #569816)" >++ >+ nl_base64=$(echo | (base64) 2>/dev/null) && test "X$nl_base64" = XCg== || >+ skip_ "your system lacks the base64 program" >+ foo=$( (echo foo | gzip | gzip -d) 2>/dev/null) && test "X$foo" = Xfoo || >diff --git a/sys-apps/grep/grep-2.25.ebuild b/sys-apps/grep/grep-2.25.ebuild >index 8acd51e..ac52271 100644 >--- a/sys-apps/grep/grep-2.25.ebuild >+++ b/sys-apps/grep/grep-2.25.ebuild >@@ -28,6 +28,8 @@ DEPEND="${RDEPEND} > DOCS=( AUTHORS ChangeLog NEWS README THANKS TODO ) > > src_prepare() { >+ has_version "dev-libs/libpcre[-jit]" && \ >+ epatch "${FILESDIR}/${P}-skip_test_pcre-jitstack_if_libpcre_is_build_without_jit.patch" > sed -i \ > -e "s:@SHELL@:${EPREFIX}/bin/sh:g" \ > src/egrep.sh || die #523898 >-- >2.10.2 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 569816
:
420882
| 458950