FS#75898 - [rkhunter] lots of grep warnings

Attached to Project: Community Packages
Opened by David (Marzal) - Tuesday, 13 September 2022, 16:34 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:04 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Lukas Fleischer (lfleischer)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 8
Private No

Details

Description:
Since grep update (3.8) there are lots of warnings due to the use of egrep instead of grep -E.
If upstream doesn't fix this, IMHO a patch should be applied.

Additional info:
* package version(s)
1.4.6-2
* link to upstream bug report, if any
https://sourceforge.net/p/rkhunter/bugs/176/
There is a patch proposed in the upstream report.

Steps to reproduce:
Run rkhunter with any command

rkhunter -V fot instance:
grep: warning: stray \ before -
grep: warning: stray \ before +
This task depends upon

Closed by  Buggy McBugFace (bugbot)
Saturday, 25 November 2023, 20:04 GMT
Reason for closing:  Moved
Additional comments about closing:  https://gitlab.archlinux.org/archlinux/p ackaging/packages/rkhunter/issues/1
Comment by Moon Sungjoon (OctopusET) - Monday, 20 February 2023, 06:45 GMT
This can be fixed with this patch https://sourceforge.net/p/rkhunter/bugs/176/#8040
Comment by Jelle van der Waa (jelly) - Sunday, 03 September 2023, 16:41 GMT
This patch doesn't apply:

patching file rkhunter
Hunk #70 FAILED at 19462.
Hunk #71 succeeded at 19793 (offset 2 lines).
Hunk #72 succeeded at 20904 (offset 8 lines).
Hunk #73 succeeded at 21015 (offset 8 lines).
Hunk #74 succeeded at 21220 (offset 8 lines).
1 out of 74 hunks FAILED -- saving rejects to file rkhunter.rej
Comment by loqs (loqs) - Sunday, 03 September 2023, 17:55 GMT
Fedora switched patches to [1] which does apply. I have not tested it as I do not use rkhunter.
Edit:
I do not understand how the last hunk of [1] relates to the deprecation of egrep.

[1] https://src.fedoraproject.org/rpms/rkhunter/blob/rawhide/f/rkhunter-1.4.6-grep.patch

Loading...