git: c87cdf264642 - main - textproc/diffutils: update the port to version 3.8 and enable tests

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

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

commit c87cdf264642a329edcab4c5ce3b7522ad0601ac
Author:     Alexey Dokuchaev <danfe@FreeBSD.org>
AuthorDate: 2021-10-15 08:35:26 +0000
Commit:     Alexey Dokuchaev <danfe@FreeBSD.org>
CommitDate: 2021-10-15 08:35:28 +0000

    textproc/diffutils: update the port to version 3.8 and enable tests
    
    PR:     257631
---
 textproc/diffutils/Makefile              |  3 ++-
 textproc/diffutils/distinfo              |  6 +++---
 textproc/diffutils/files/patch-configure | 20 ++++++++++++++++++++
 3 files changed, 25 insertions(+), 4 deletions(-)

diff --git a/textproc/diffutils/Makefile b/textproc/diffutils/Makefile
index 5d9d980030fa..85fc0a7cf7b5 100644
--- a/textproc/diffutils/Makefile
+++ b/textproc/diffutils/Makefile
@@ -1,7 +1,7 @@
 # Created by: Garrett Rooney <rooneg@electricjellyfish.net>
 
 PORTNAME=	diffutils
-PORTVERSION=	3.7
+PORTVERSION=	3.8
 CATEGORIES=	textproc
 MASTER_SITES=	GNU
 
@@ -15,6 +15,7 @@ LIB_DEPENDS=	libsigsegv.so:devel/libsigsegv
 USES=		charsetfix tar:xz
 GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	--program-prefix=g
+TEST_TARGET=	check
 
 OPTIONS_DEFINE=	NLS
 OPTIONS_SUB=	yes
diff --git a/textproc/diffutils/distinfo b/textproc/diffutils/distinfo
index ebfe0a513348..710397db25b8 100644
--- a/textproc/diffutils/distinfo
+++ b/textproc/diffutils/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1546308188
-SHA256 (diffutils-3.7.tar.xz) = b3a7a6221c3dc916085f0d205abf6b8e1ba443d4dd965118da364a1dc1cb3a26
-SIZE (diffutils-3.7.tar.xz) = 1448828
+TIMESTAMP = 1627869571
+SHA256 (diffutils-3.8.tar.xz) = a6bdd7d1b31266d11c4f4de6c1b748d4607ab0231af5188fc2533d0ae2438fec
+SIZE (diffutils-3.8.tar.xz) = 1585120
diff --git a/textproc/diffutils/files/patch-configure b/textproc/diffutils/files/patch-configure
new file mode 100644
index 000000000000..02d8ce285d16
--- /dev/null
+++ b/textproc/diffutils/files/patch-configure
@@ -0,0 +1,20 @@
+--- configure.orig	2021-08-02 01:56:20 UTC
++++ configure
+@@ -34085,7 +34085,7 @@ else $as_nop
+       elxsi | \
+       fr30 | \
+       h8300 | \
+-      i?86 | x86_64 | \
++      i?86 | x86_64 | amd64 | \
+       i860 | \
+       ia64 | \
+       m32r | \
+@@ -34134,7 +34134,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;