git: ea8a46f5cfa2 - main - textproc/gnugrep: update GNU grep to the latest version 3.7.

From: Alexey Dokuchaev <danfe_at_FreeBSD.org>
Date: Fri, 15 Oct 2021 08:24:37 UTC
The branch main has been updated by danfe:

URL: https://cgit.FreeBSD.org/ports/commit/?id=ea8a46f5cfa2262e0163209d4421435d39ecc16d

commit ea8a46f5cfa2262e0163209d4421435d39ecc16d
Author:     Alexey Dokuchaev <danfe@FreeBSD.org>
AuthorDate: 2021-10-15 08:23:32 +0000
Commit:     Alexey Dokuchaev <danfe@FreeBSD.org>
CommitDate: 2021-10-15 08:23:35 +0000

    textproc/gnugrep: update GNU grep to the latest version 3.7.
    
    Reported by:    portscout
---
 textproc/gnugrep/Makefile              |  2 +-
 textproc/gnugrep/distinfo              |  6 +++---
 textproc/gnugrep/files/patch-configure | 20 ++++++++++++++++++++
 3 files changed, 24 insertions(+), 4 deletions(-)

diff --git a/textproc/gnugrep/Makefile b/textproc/gnugrep/Makefile
index 1ad7dd901b9e..5077afc5f7a8 100644
--- a/textproc/gnugrep/Makefile
+++ b/textproc/gnugrep/Makefile
@@ -1,7 +1,7 @@
 # Created by: Gabor Kovesdan <gabor@FreeBSD.org>
 
 PORTNAME=	grep
-PORTVERSION=	3.6
+PORTVERSION=	3.7
 CATEGORIES=	textproc
 MASTER_SITES=	GNU
 PKGNAMEPREFIX=	gnu
diff --git a/textproc/gnugrep/distinfo b/textproc/gnugrep/distinfo
index 42c268340904..7933d95b9929 100644
--- a/textproc/gnugrep/distinfo
+++ b/textproc/gnugrep/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1604896813
-SHA256 (grep-3.6.tar.xz) = 667e15e8afe189e93f9f21a7cd3a7b3f776202f417330b248c2ad4f997d9373e
-SIZE (grep-3.6.tar.xz) = 1589412
+TIMESTAMP = 1628970999
+SHA256 (grep-3.7.tar.xz) = 5c10da312460aec721984d5d83246d24520ec438dd48d7ab5a05dbc0d6d6823c
+SIZE (grep-3.7.tar.xz) = 1641196
diff --git a/textproc/gnugrep/files/patch-configure b/textproc/gnugrep/files/patch-configure
new file mode 100644
index 000000000000..03c89bad1907
--- /dev/null
+++ b/textproc/gnugrep/files/patch-configure
@@ -0,0 +1,20 @@
+--- configure.orig	2021-08-14 19:53:52 UTC
++++ configure
+@@ -35665,7 +35665,7 @@ else $as_nop
+       elxsi | \
+       fr30 | \
+       h8300 | \
+-      i?86 | x86_64 | \
++      i?86 | x86_64 | amd64 | \
+       i860 | \
+       ia64 | \
+       m32r | \
+@@ -35714,7 +35714,7 @@ find_stack_direction (int *addr, int depth)
+   return dir + dummy;
+ }
+ int
+-main (int argc, char *argv)
++main (int argc, char *argv[])
+ {
+   printf ("%d\n", find_stack_direction (NULL, argc + 20));
+   return 0;