Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 945113 - dev-util/rizin-0.7.3-r1: bad JIT option when used with dev-libs/libpcre-2[-jit]
Summary: dev-util/rizin-0.7.3-r1: bad JIT option when used with dev-libs/libpcre-2[-jit]
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: John Helmert III
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-11-27 14:01 UTC by Jan Breig
Modified: 2024-12-15 04:57 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Breig 2024-11-27 14:01:46 UTC
When the jit USE flag is disabled for dev-libs/libpcre-2, rizin throws errors on start. When dev-libs/libpcre-2 is re-emerged with the jit flag, these errors do not occur. No rebuild of rizin is required.

Reproducible: Always

Steps to Reproduce:
1. Emerge dev-libs/libpcre-2 with disabled jit flag
2. Run rizin
Actual Results:  
The following error is shown multiple times:
ERROR: Regex compilation for '\s+' failed at 0: bad JIT option

Expected Results:  
There should be no error.

Adding dev-libs/libpcre2[jit] to dependencies should be enough to fix this.
Comment 1 Larry the Git Cow gentoo-dev 2024-12-15 04:57:44 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1c28e908cbcf88be92d030870e17574408cb455d

commit 1c28e908cbcf88be92d030870e17574408cb455d
Author:     John Helmert III <ajak@gentoo.org>
AuthorDate: 2024-12-15 04:51:49 +0000
Commit:     John Helmert III <ajak@gentoo.org>
CommitDate: 2024-12-15 04:52:24 +0000

    dev-util/rizin: depend on libpcre2[jit], force bundled tree-sitter-c
    
    Rizin can automagically pick up a dependency on an incompatible
    system-tree-sitter-c, so instead force usage of the forked
    subproject. Note that I'm patching this as a one-off in this version
    since the forked package has been renamed upstream and thus this
    should be obsolete by the next release.
    
    Also add a dependency on libpcre2[jit], since Rizin automagically
    enables usage of it based on the target architecture, and we're not
    keyworded for anywhere that doesn't have support except for x32, for
    which usage is likely exceedingly rare (if existent).
    
    Bug: https://bugs.gentoo.org/943666
    Closes: https://bugs.gentoo.org/945113
    Signed-off-by: John Helmert III <ajak@gentoo.org>

 .../rizin-0.7.3-force-local-tree-sitter-c.patch    |  22 +++++
 .../rizin-0.7.3-tree-sitter-underlinking.patch     |  31 +++++++
 dev-util/rizin/rizin-0.7.3-r2.ebuild               | 101 +++++++++++++++++++++
 profiles/arch/amd64/x32/package.mask               |   4 +
 4 files changed, 158 insertions(+)