From 6aab3a8f07f8dcc4a12bcacc07ec49720e01d961 Mon Sep 17 00:00:00 2001 From: icp Date: Thu, 12 Jan 2023 01:37:31 +0530 Subject: [PATCH] chroot-grep: patch out problematic warnings in egrep and fgrep. --- .../chroot-grep/patches/efgrep-remove-warning.patch | 10 ++++++++++ srcpkgs/chroot-grep/template | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/chroot-grep/patches/efgrep-remove-warning.patch diff --git a/srcpkgs/chroot-grep/patches/efgrep-remove-warning.patch b/srcpkgs/chroot-grep/patches/efgrep-remove-warning.patch new file mode 100644 index 000000000000..6371301688f0 --- /dev/null +++ b/srcpkgs/chroot-grep/patches/efgrep-remove-warning.patch @@ -0,0 +1,10 @@ +since 3.8, egrep and fgrep print a warning which can cause many issues with +programs not expecting this behaviour + +--- a/src/egrep.sh ++++ b/src/egrep.sh +@@ -1,4 +1,3 @@ + #!@SHELL@ + cmd=${0##*/} +-echo "$cmd: warning: $cmd is obsolescent; using @grep@ @option@" >&2 + exec @grep@ @option@ "$@" diff --git a/srcpkgs/chroot-grep/template b/srcpkgs/chroot-grep/template index 6a99116d4b5d..7b68ca9348b8 100644 --- a/srcpkgs/chroot-grep/template +++ b/srcpkgs/chroot-grep/template @@ -1,7 +1,7 @@ # Template file for 'chroot-grep' pkgname=chroot-grep version=3.8 -revision=1 +revision=2 bootstrap=yes build_style=gnu-configure configure_args="--disable-perl-regexp --disable-nls ac_cv_path_GREP=grep"