Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 881353 - sys-boot/grub using obsolete fgrep
Summary: sys-boot/grub using obsolete fgrep
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mike Gilbert
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-14 23:24 UTC by Thomas Capricelli
Modified: 2023-12-23 20:39 UTC (History)
2 users (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 Thomas Capricelli 2022-11-14 23:24:22 UTC
When using (for ex) grub-mkconfig, i got a bunch of warnings like:
fgrep: warning: fgrep is obsolescent; using /bin/grep -F

Using this command:

  equery files grub | xargs grep fgrep -l

, i can only find two files installed by grub, that uses fgrep:

/etc/grub.d/10_linux
/etc/grub.d/20_linux_xen




Reproducible: Always
Comment 1 Nils Freydank 2022-11-15 20:34:42 UTC
Quoting from grep-3.8 release notes, https://lists.gnu.org/archive/html/info-gnu/2022-09/msg00001.html:

"The egrep and fgrep commands, which have been deprecated since
  release 2.5.3 (2007), now warn that they are obsolescent and should
  be replaced by grep -E and grep -F."
Comment 2 Mike Gilbert gentoo-dev 2022-11-15 21:55:41 UTC
This has been fixed upstream. I do not plan to backport the fix.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-12-23 20:39:44 UTC
commit 76418694270557b6feb75381912a39569ee28d45
Author: Zac Medico <zmedico@gentoo.org>
Date:   Thu Dec 21 09:10:06 2023 -0800

    sys-boot/grub: add 2.12

    * Drop patch for util/grub.d/25_bli.in which was merged upstream.
    * Re-add unstable keywords for supported archs.
    * Create grub-core/extra_deps.lst missing from source tarball.

    Signed-off-by: Zac Medico <zmedico@gentoo.org>