Bug 571386

Summary: RpmLint should check usage of deprecated egrep/fgrep.
Product: [Fedora] Fedora Reporter: Radek Novacek <rnovacek>
Component: rpmlintAssignee: Ville Skyttä <ville.skytta>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: rawhideCC: jreznik, ovasik, rnovacek, tmz, ville.skytta, wolfy
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: rpmlint-0.97-1.fc13 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-04-21 21:59:52 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Attachments:
Description Flags
Proposed patch that adds check of usage egrep and fgrep none

Description Radek Novacek 2010-03-08 12:09:38 UTC
Created attachment 398511 [details]
Proposed patch that adds check of usage egrep and fgrep

egrep and fgrep command is deprecated and grep -E/-F should be used instead. Rpmlint should warn packager that he is using deprecated commands.

Comment 1 Ville Skyttä 2010-03-14 15:13:44 UTC
Thanks, different version applied upstream:
http://rpmlint.zarb.org/cgi-bin/trac.cgi/changeset/1741
http://rpmlint.zarb.org/cgi-bin/trac.cgi/changeset/1742

(The patch in initial comment incorrectly used sec instead of current_section, had some depecated vs deprecated typos, checked for sections that didn't exist yet, and wasn't too strict about finding egrep and fgrep strings.)

Comment 2 Fedora Update System 2010-05-18 20:20:52 UTC
rpmlint-0.97-1.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/rpmlint-0.97-1.fc13

Comment 3 Fedora Update System 2010-05-18 20:22:08 UTC
rpmlint-0.97-1.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/rpmlint-0.97-1.fc12

Comment 4 Fedora Update System 2010-05-28 18:03:45 UTC
rpmlint-0.97-1.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 5 Fedora Update System 2010-06-04 18:46:46 UTC
rpmlint-0.97-1.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.