Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 937014

Summary: app-admin/checksec: sys-apps/grep[pcre] required
Product: Gentoo Linux Reporter: CaptainBlood <luc_pierard_de_maujouy>
Component: Current packagesAssignee: Sebastian Pipping <sping>
Status: RESOLVED FIXED    
Severity: normal CC: sping
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Comment 1 Sebastian Pipping gentoo-dev 2024-10-06 13:12:25 UTC
I confirm that:
- "grep -P" is used by checksec 2.7.1 but not stable 2.4.0
- "grep -P xxx" with USE=-pcre produces error "Perl matching not supported in a --disable-perl-regexp build"

Patch upcoming…
Comment 2 Sebastian Pipping gentoo-dev 2024-10-06 13:13:18 UTC
Here:

# grep -Rho 'grep -[^ ]\+P' checksec-2.7.1/ | uniq -c
      4 grep -oP
Comment 3 Larry the Git Cow gentoo-dev 2024-10-06 13:20:02 UTC
The bug has been closed via the following commit(s):

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

commit dee272f84b2d085ffaa4d3420bcad75632a93f24
Author:     Sebastian Pipping <sping@gentoo.org>
AuthorDate: 2024-10-06 13:16:57 +0000
Commit:     Sebastian Pipping <sping@gentoo.org>
CommitDate: 2024-10-06 13:19:15 +0000

    app-admin/checksec: Require sys-apps/grep[pcre] at runtime
    
    Also address warnings EmptyGlobalAssignment for ${IUSE} and
    VariableOrderWrong for ${S}
    
    Closes: https://bugs.gentoo.org/937014
    Signed-off-by: Sebastian Pipping <sping@gentoo.org>

 app-admin/checksec/checksec-2.7.1-r1.ebuild | 39 +++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)