summaryrefslogtreecommitdiff
path: root/sys-boot
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-10-05 02:05:50 +0100
committerV3n3RiX <venerix@koprulu.sector>2022-10-05 02:05:50 +0100
commitcd9552f5d54653e64894bca03b882b00467db63c (patch)
tree4635e3eaa0dee5627870b5a6e0c17283944a8135 /sys-boot
parente96a48a737f2339c9e08b0b917e15037fd9fa741 (diff)
sys-boot/grub : silence fgrep
Diffstat (limited to 'sys-boot')
-rw-r--r--sys-boot/grub/files/04-fgrep.patch75
-rw-r--r--sys-boot/grub/grub-2.04-r12.ebuild (renamed from sys-boot/grub/grub-2.04-r11.ebuild)1
2 files changed, 76 insertions, 0 deletions
diff --git a/sys-boot/grub/files/04-fgrep.patch b/sys-boot/grub/files/04-fgrep.patch
new file mode 100644
index 00000000..93d50ffa
--- /dev/null
+++ b/sys-boot/grub/files/04-fgrep.patch
@@ -0,0 +1,75 @@
+diff -Nur 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 2018-11-24 17:13:02.000000000 +0000
++++ b/grub-core/lib/libgcrypt/src/libgcrypt-config.in 2022-10-05 01:59:10.786495758 +0100
+@@ -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 -Fv -- "$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 -Fv -- "$i" >/dev/null; then
+ tmp="$tmp $i"
+ fi
+ done
+diff -Nur a/util/grub.d/10_hurd.in b/util/grub.d/10_hurd.in
+--- a/util/grub.d/10_hurd.in 2018-11-24 17:13:02.000000000 +0000
++++ b/util/grub.d/10_hurd.in 2022-10-05 02:02:09.500500296 +0100
+@@ -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 -Fvx "$kernel" | tr '\n' ' '`
+ done
+
+ # If at least one kernel was found, then we need to
+diff -Nur a/util/grub.d/10_kfreebsd.in b/util/grub.d/10_kfreebsd.in
+--- a/util/grub.d/10_kfreebsd.in 2018-11-24 17:13:02.000000000 +0000
++++ b/util/grub.d/10_kfreebsd.in 2022-10-05 02:02:31.978500866 +0100
+@@ -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 -Fvx "$kfreebsd" | tr '\n' ' '`
+ done
+
+ # If at least one kernel was found, then we need to
+diff -Nur a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in
+--- a/util/grub.d/10_linux.in 2018-11-24 17:13:02.000000000 +0000
++++ b/util/grub.d/10_linux.in 2022-10-05 02:01:43.687499640 +0100
+@@ -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 -Fvx "$linux" | tr '\n' ' '`
+ done
+
+ # If at least one kernel was found, then we need to
+diff -Nur a/util/grub.d/20_linux_xen.in b/util/grub.d/20_linux_xen.in
+--- a/util/grub.d/20_linux_xen.in 2019-04-23 09:54:47.000000000 +0100
++++ b/util/grub.d/20_linux_xen.in 2022-10-05 02:00:13.501497350 +0100
+@@ -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 -Fvx "$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 -Fvx "$current_xen" | tr '\n' ' '`
+ done
+
+ # If at least one kernel was found, then we need to
diff --git a/sys-boot/grub/grub-2.04-r11.ebuild b/sys-boot/grub/grub-2.04-r12.ebuild
index 3e439983..286d5017 100644
--- a/sys-boot/grub/grub-2.04-r11.ebuild
+++ b/sys-boot/grub/grub-2.04-r12.ebuild
@@ -42,6 +42,7 @@ PATCHES=(
"${FILESDIR}"/01-gfxpayload.patch
"${FILESDIR}"/02-KERNEL_GLOBS.patch
"${FILESDIR}"/03-sparc64-bios-boot.patch
+ "${FILESDIR}"/04-fgrep.patch
)
DEJAVU=dejavu-sans-ttf-2.37