summaryrefslogtreecommitdiff
path: root/user/grub/fix-deprecated-fgrep-usage.patch
blob: a37ce99126bfc6ce698bcb5614f0fd98fd848381 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
diff -ur a/grub-core/lib/libgcrypt/src/libgcrypt-config.in b/grub-core/lib/libgcrypt/src/libgcrypt-config.in
--- a/grub-core/lib/libgcrypt/src/libgcrypt-config.in	2023-05-10 17:44:15.293941096 +0000
+++ b/grub-core/lib/libgcrypt/src/libgcrypt-config.in	2023-05-10 17:44:42.164950456 +0000
@@ -142,7 +142,7 @@
 
     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 @@
 
     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 -ur a/util/grub.d/10_hurd.in b/util/grub.d/10_hurd.in
--- a/util/grub.d/10_hurd.in	2023-05-10 17:44:15.453935199 +0000
+++ b/util/grub.d/10_hurd.in	2023-05-10 17:44:42.088953259 +0000
@@ -168,7 +168,7 @@
   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 -ur a/util/grub.d/10_kfreebsd.in b/util/grub.d/10_kfreebsd.in
--- a/util/grub.d/10_kfreebsd.in	2023-05-10 17:44:15.453935199 +0000
+++ b/util/grub.d/10_kfreebsd.in	2023-05-10 17:44:42.164950456 +0000
@@ -231,7 +231,7 @@
     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 -ur a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in
--- a/util/grub.d/10_linux.in	2023-05-10 17:44:15.453935199 +0000
+++ b/util/grub.d/10_linux.in	2023-05-10 17:44:42.160950604 +0000
@@ -282,7 +282,7 @@
                 "single ${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 -ur a/util/grub.d/20_linux_xen.in b/util/grub.d/20_linux_xen.in
--- a/util/grub.d/20_linux_xen.in	2023-05-10 17:44:15.453935199 +0000
+++ b/util/grub.d/20_linux_xen.in	2023-05-10 17:44:42.156950751 +0000
@@ -310,12 +310,12 @@
 		"single ${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