Summary: | dev-vcs/git-2.14.0[pcre] with dev-libs/libpcre[-jit] - build error: grep.c:(.text+0x12f9): undefined reference to `pcre_jit_exec' | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Leonid Kopylov <leonchik1976> |
Component: | Current packages | Assignee: | Robin Johnson <robbat2> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | adpc, ap, atoth, guillaume, polynomial-c |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | build.log |
Description
Leonid Kopylov
2017-08-05 11:21:27 UTC
Created attachment 488006 [details]
build.log
*** Bug 627086 has been marked as a duplicate of this bug. *** Recompile either dev-libs/libpcre with USE="git", or (untested) try to compile dev-vcs/git with USE="-pcre", and that should make the package build. Suggested to change: pcre? ( dev-libs/libpcre ) into something like pcre? ( dev-libs/libpcre[jit(+)] ) or something of similar effect. apologies, that was incomplete, the changes of course are meant for the .ebuild for git. This needs more care because pcre jit is not available on all arches. Fixed with commit 541e9759ca8143d7e446de7cc353417dd45f5a71. See upstream https://github.com/git/git/commit/fbaceaac4731655540e48845eb3a3e2ce2282b38 for more background, and also the release notes about switching to libpcre2 (In reply to Robin Johnson from comment #5) > This needs more care because pcre jit is not available on all arches. Since dev-vcs/git itself can handle pcre without jit, wouldn't it be more appropriate to introduce USE jit for dev-vcs/git like this - instead of making it mandatory for pcre support: if use !jit ; then myopts+=" NO_LIBPCRE1_JIT" fi Thx: Dw. (In reply to Attila Tóth from comment #7) > (In reply to Robin Johnson from comment #5) > > This needs more care because pcre jit is not available on all arches. > > Since dev-vcs/git itself can handle pcre without jit, wouldn't it be more > appropriate to introduce USE jit for dev-vcs/git like this - instead of > making it mandatory for pcre support: USE='pcre -pcre-jit' does exactly this. (In reply to Robin Johnson from comment #8) > (In reply to Attila Tóth from comment #7) > > (In reply to Robin Johnson from comment #5) > > > This needs more care because pcre jit is not available on all arches. > > > > Since dev-vcs/git itself can handle pcre without jit, wouldn't it be more > > appropriate to introduce USE jit for dev-vcs/git like this - instead of > > making it mandatory for pcre support: > USE='pcre -pcre-jit' does exactly this. Yeah, I've already noticed the USE flag and I'd like to give a feedback, that using USE="pcre -pcre-jit", while pcre had been compiled using USE="-jit" solves the problem. Thanks! (In reply to Attila Tóth from comment #9) > Yeah, I've already noticed the USE flag and I'd like to give a feedback, > that using USE="pcre -pcre-jit", while pcre had been compiled using > USE="-jit" solves the problem. Thanks! Ok, I made it more flexible: dev-vcs/git[-pcre-jit] now doesn't care if dev-libs/libpcre was built with jit (confirmed safe that rebuilding jit -> -jit does not break git). |