rkunter prints tens on warning messages on my system since grep has been updated to version 3.8 grep: warning: stray \ before + egrep: warning: egrep is obsolescent; using grep -E $ rkhunter --version grep: warning: stray \ before - grep: warning: stray \ before + Rootkit Hunter 1.4.6 $ grep --version grep (GNU grep) 3.8 a proposal fix is joined.
Created attachment 13370 [details] fix regressions from the new grep release replace egrep by grep -e remove rkhunter internal requirement of egrep remove unusefull \ in grep regexp Please have a look to the discussion on rkunter bug in the report
CC: (none) => boulshet
Attachment 13370 is patch: 0 => 1CC: (none) => marja11 Attachment 13370 mime type: application/x-shellscript => text/plain
Attachment 13370 is patch: 1 => 0
(In reply to GG HH from comment #1) > Created attachment 13370 [details] > fix regressions from the new grep release > > replace egrep by grep -e > remove rkhunter internal requirement of egrep > remove unusefull \ in grep regexp Assigning to all packagers collectively, since there is no registered maintainer for rkhunter > > Please have a look to the discussion on rkunter bug in the report So here: https://sourceforge.net/p/rkhunter/bugs/176/
Summary: Warning messages since grep has been upgraded to 3.8 => Warning messages in rkhunter since grep has been upgraded to 3.8Assignee: bugsquad => pkg-bugs
IMHO the attachment does more than fix the grep obsolescences.... So I would want to see the rkhunter bug#176 accepted as is by the rkhunter authors before incorporating all the changes made by this "patch" (replacement really).
CC: (none) => dvgevers
> IMHO the attachment does more than fix the grep obsolescences.... Anything you would like to be explained beside what is described in comment 1 ? > So I would want to see the rkhunter bug#176 accepted as is by the rkhunter authors before incorporating all the changes made by this "patch" (replacement really). Fair enough. Hopefully we will have a feedback but rkhunter did not look so active lately.
Please provide patches against pkg sources instead of full script replacements so we can really see what's changed.
Created attachment 13371 [details] Patch $ rpm -V rkhunter S.5....T. c /etc/rkhunter.conf .......T. /usr/sbin/rkhunter .M?....T. /var/lib/rkhunter/db/mirrors.dat $ diff /usr/sbin/rkhunter /usr/sbin/rkhunter-egrep-fix-+-backslash-escape > /tmp/rkhunter-egrep-fix-+-backslash-escape.diff
See Also: (none) => https://bugs.mageia.org/show_bug.cgi?id=31327
In the light of comment 3, upping the importance. We are liable to see this egrep error msg in other places.
Severity: minor => normal
The issue has to be fixed separately in each package which make uses of the deprecated syntax. https://www.phoronix.com/news/GNU-Grep-3.8-Stop-egrep-fgrep The good news is that the fixes are of course trivial, for rkhunter at least. Unfortunately it still is not. Neither upstream nor in mageia. Regards
It looks like a patch has been applied $ rpm -q --changelog rkhunter * dim. avril 30 2023 kekepower <kekepower> 1.4.6-5.mga9 + Revision: 1955467 - Add patch to switch from egrep to grep -E It is far better but still misses some issues : grep: warning: stray \ before - grep: warning: stray \ before + The command '-E' must be present on the system in order to run rkhunter. Regards