Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fgrep-is-obsolescent-using-grep-F.patch
- Loading branch information
1 parent
ecaead6
commit 8dfe342
Showing
2 changed files
with
101 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
From 5d3bf2809cfb3afe74d4d07bd578bbc3d16194bb Mon Sep 17 00:00:00 2001 | ||
From: Masato Toyoshima <phoepsilonix@gmail.com> | ||
Date: Mon, 10 Oct 2022 23:11:02 +0900 | ||
Subject: [PATCH] fgrep-is-obsolescent-using-grep-F.patch | ||
|
||
--- | ||
grub-core/lib/libgcrypt/src/libgcrypt-config.in | 4 ++-- | ||
util/grub.d/10_hurd.in | 2 +- | ||
util/grub.d/10_kfreebsd.in | 2 +- | ||
util/grub.d/10_linux.in | 2 +- | ||
util/grub.d/20_linux_xen.in | 4 ++-- | ||
5 files changed, 7 insertions(+), 7 deletions(-) | ||
|
||
diff --git a/grub-core/lib/libgcrypt/src/libgcrypt-config.in b/grub-core/lib/libgcrypt/src/libgcrypt-config.in | ||
index c052638cd..84f3b26df 100644 | ||
--- a/grub-core/lib/libgcrypt/src/libgcrypt-config.in | ||
+++ b/grub-core/lib/libgcrypt/src/libgcrypt-config.in | ||
@@ -142,7 +142,7 @@ if test "$echo_cflags" = "yes"; then | ||
|
||
tmp="" | ||
for i in $includes $cflags_final; do | ||
- if echo "$tmp" | fgrep -v -- "$i" >/dev/null; then | ||
+ if echo "$tmp" | grep -F -v -- "$i" >/dev/null; then | ||
tmp="$tmp $i" | ||
fi | ||
done | ||
@@ -163,7 +163,7 @@ if test "$echo_libs" = "yes"; then | ||
|
||
tmp="" | ||
for i in $libdirs $libs_final; do | ||
- if echo "$tmp" | fgrep -v -- "$i" >/dev/null; then | ||
+ if echo "$tmp" | grep -F -v -- "$i" >/dev/null; then | ||
tmp="$tmp $i" | ||
fi | ||
done | ||
diff --git a/util/grub.d/10_hurd.in b/util/grub.d/10_hurd.in | ||
index 2fafa4e59..b26c2567d 100644 | ||
--- a/util/grub.d/10_hurd.in | ||
+++ b/util/grub.d/10_hurd.in | ||
@@ -222,7 +222,7 @@ while [ "x$kernels" != "x" ] ; do | ||
hurd_entry "$kernel" advanced | ||
hurd_entry "$kernel" recovery | ||
|
||
- kernels=`echo $kernels | tr ' ' '\n' | fgrep -vx "$kernel" | tr '\n' ' '` | ||
+ kernels=`echo $kernels | tr ' ' '\n' | grep -F -vx "$kernel" | tr '\n' ' '` | ||
done | ||
|
||
# If at least one kernel was found, then we need to | ||
diff --git a/util/grub.d/10_kfreebsd.in b/util/grub.d/10_kfreebsd.in | ||
index 199b20e16..0ed082f05 100644 | ||
--- a/util/grub.d/10_kfreebsd.in | ||
+++ b/util/grub.d/10_kfreebsd.in | ||
@@ -239,7 +239,7 @@ while [ "x$list" != "x" ] ; do | ||
kfreebsd_entry "${OS}" "${version}" recovery "-s" | ||
fi | ||
|
||
- list=`echo $list | tr ' ' '\n' | fgrep -vx "$kfreebsd" | tr '\n' ' '` | ||
+ list=`echo $list | tr ' ' '\n' | grep -F -vx "$kfreebsd" | tr '\n' ' '` | ||
done | ||
|
||
# If at least one kernel was found, then we need to | ||
diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in | ||
index b4a4d6900..4b22eeadc 100644 | ||
--- a/util/grub.d/10_linux.in | ||
+++ b/util/grub.d/10_linux.in | ||
@@ -296,7 +296,7 @@ while [ "x$list" != "x" ] ; do | ||
"${GRUB_CMDLINE_LINUX_RECOVERY} ${GRUB_CMDLINE_LINUX}" | ||
fi | ||
|
||
- list=`echo $list | tr ' ' '\n' | fgrep -vx "$linux" | tr '\n' ' '` | ||
+ list=`echo $list | tr ' ' '\n' | grep -F -vx "$linux" | tr '\n' ' '` | ||
done | ||
|
||
# If at least one kernel was found, then we need to | ||
diff --git a/util/grub.d/20_linux_xen.in b/util/grub.d/20_linux_xen.in | ||
index 51a983926..d6e299b99 100644 | ||
--- a/util/grub.d/20_linux_xen.in | ||
+++ b/util/grub.d/20_linux_xen.in | ||
@@ -352,12 +352,12 @@ while [ "x${xen_list}" != "x" ] ; do | ||
"${GRUB_CMDLINE_LINUX_RECOVERY} ${GRUB_CMDLINE_LINUX}" "${GRUB_CMDLINE_XEN}" | ||
fi | ||
|
||
- list=`echo $list | tr ' ' '\n' | fgrep -vx "$linux" | tr '\n' ' '` | ||
+ list=`echo $list | tr ' ' '\n' | grep -F -vx "$linux" | tr '\n' ' '` | ||
done | ||
if [ x"$is_top_level" != xtrue ]; then | ||
echo ' }' | ||
fi | ||
- xen_list=`echo $xen_list | tr ' ' '\n' | fgrep -vx "$current_xen" | tr '\n' ' '` | ||
+ xen_list=`echo $xen_list | tr ' ' '\n' | grep -F -vx "$current_xen" | tr '\n' ' '` | ||
done | ||
|
||
# If at least one kernel was found, then we need to | ||
-- | ||
2.37.3 | ||
|