commit:     00787a48517bca5dbf90d8b7be3289802f3cfe65
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Sep 28 20:16:36 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Sep 28 20:17:40 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=00787a48

sys-libs/ncurses: avoid egrep/fgrep deprecation warnings

Export EGREP & FGREP to avoid large configure noise (as we run it repeatedly).

Bug: https://lists.gnu.org/archive/html/bug-ncurses/2022-09/msg00024.html
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-libs/ncurses/ncurses-6.3_p20220924-r1.ebuild | 4 ++++
 sys-libs/ncurses/ncurses-6.3_p20220924.ebuild    | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/sys-libs/ncurses/ncurses-6.3_p20220924-r1.ebuild 
b/sys-libs/ncurses/ncurses-6.3_p20220924-r1.ebuild
index 3f93d46bd575..f9e5093a7eb1 100644
--- a/sys-libs/ncurses/ncurses-6.3_p20220924-r1.ebuild
+++ b/sys-libs/ncurses/ncurses-6.3_p20220924-r1.ebuild
@@ -250,6 +250,10 @@ do_configure() {
        mkdir "${BUILD_DIR}/${target}" || die
        cd "${BUILD_DIR}/${target}" || die
 
+       # https://lists.gnu.org/archive/html/bug-ncurses/2022-09/msg00024.html
+       export EGREP="grep -E"
+       export FGREP="grep -F"
+
        local conf=(
                # We need the basic terminfo files in /etc, bug #37026.  We will
                # add '--with-terminfo-dirs' and then populate /etc/terminfo in

diff --git a/sys-libs/ncurses/ncurses-6.3_p20220924.ebuild 
b/sys-libs/ncurses/ncurses-6.3_p20220924.ebuild
index 4fcb647e26d7..9a7f05e0fcb6 100644
--- a/sys-libs/ncurses/ncurses-6.3_p20220924.ebuild
+++ b/sys-libs/ncurses/ncurses-6.3_p20220924.ebuild
@@ -250,6 +250,10 @@ do_configure() {
        mkdir "${BUILD_DIR}/${target}" || die
        cd "${BUILD_DIR}/${target}" || die
 
+       # https://lists.gnu.org/archive/html/bug-ncurses/2022-09/msg00024.html
+       export EGREP="grep -E"
+       export FGREP="grep -F"
+
        local conf=(
                # We need the basic terminfo files in /etc, bug #37026.  We will
                # add '--with-terminfo-dirs' and then populate /etc/terminfo in

Reply via email to