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

Bug 881353

Summary: sys-boot/grub using obsolete fgrep
Product: Gentoo Linux Reporter: Thomas Capricelli <orzel>
Component: Current packagesAssignee: Mike Gilbert <floppym>
Status: RESOLVED FIXED    
Severity: normal CC: base-system, hydrapolic
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

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>