git: 87ad00b538c9 - main - ftp/ftpcopy: fix build on ARM64 and refresh

From: Matthias Andree <mandree_at_FreeBSD.org>
Date: Fri, 02 Jan 2026 11:44:21 UTC
The branch main has been updated by mandree:

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

commit 87ad00b538c9bf80e6074014ba3d3554ca602bfd
Author:     Matthias Andree <mandree@FreeBSD.org>
AuthorDate: 2026-01-02 11:41:50 +0000
Commit:     Matthias Andree <mandree@FreeBSD.org>
CommitDate: 2026-01-02 11:41:50 +0000

    ftp/ftpcopy: fix build on ARM64 and refresh
    
    With GCC14 now being pulled in on non-i386 non-amd64 platforms,
    the compiler is stricter about prototypes.
    
    I think all our base compilers should be good enough, but some
    platforms don't seem to allow regparm, so patch that out.
---
 ftp/ftpcopy/Makefile                     |  6 +-----
 ftp/ftpcopy/distinfo                     |  1 +
 ftp/ftpcopy/files/patch-src_attributes.h | 11 +++++++++++
 ftp/ftpcopy/files/patch-src_typesize.sh  |  6 +++---
 4 files changed, 16 insertions(+), 8 deletions(-)

diff --git a/ftp/ftpcopy/Makefile b/ftp/ftpcopy/Makefile
index b5b4e74f01e7..f26473ace17d 100644
--- a/ftp/ftpcopy/Makefile
+++ b/ftp/ftpcopy/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	ftpcopy
 PORTVERSION=	0.6.7
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	ftp
 MASTER_SITES=	http://www.ohse.de/uwe/ftpcopy/
 
@@ -19,10 +19,6 @@ OPTIONS_DEFINE=	DOCS
 
 .include <bsd.port.options.mk>
 
-.if ${ARCH} != amd64 && ${ARCH} != i386
-USES+=		compiler:gcc-c++11-lib
-.endif
-
 pre-build:
 	${ECHO} "${CC}" >${WRKSRC}/src/conf-cc
 	${ECHO} "${CPPFLAGS} ${CFLAGS}" >${WRKSRC}/src/conf-cflags
diff --git a/ftp/ftpcopy/distinfo b/ftp/ftpcopy/distinfo
index b0ec85e19b93..22b356a3f53a 100644
--- a/ftp/ftpcopy/distinfo
+++ b/ftp/ftpcopy/distinfo
@@ -1,2 +1,3 @@
+TIMESTAMP = 1767353840
 SHA256 (ftpcopy-0.6.7.tar.gz) = ab5369e1873c50b3370f40bf6cd02b7fb858e05e77eea4c9fda0c025629f2ca3
 SIZE (ftpcopy-0.6.7.tar.gz) = 134956
diff --git a/ftp/ftpcopy/files/patch-src_attributes.h b/ftp/ftpcopy/files/patch-src_attributes.h
new file mode 100644
index 000000000000..c71626623fa0
--- /dev/null
+++ b/ftp/ftpcopy/files/patch-src_attributes.h
@@ -0,0 +1,11 @@
+--- src/attributes.h.orig	2004-07-27 11:27:56 UTC
++++ src/attributes.h
+@@ -67,7 +67,7 @@
+ 
+ #define attribute_inline __inline__
+ 
+-#if GNUC_MINIMUM(2,7) /* doesn't work reliable before, IIRC */
++#if 0
+ # define attribute_regparm(x) __attribute__((__regparm__((x))))
+ #else
+ # define attribute_regparm(x)
diff --git a/ftp/ftpcopy/files/patch-src_typesize.sh b/ftp/ftpcopy/files/patch-src_typesize.sh
index 03f16e48a255..94eede5b8f1a 100644
--- a/ftp/ftpcopy/files/patch-src_typesize.sh
+++ b/ftp/ftpcopy/files/patch-src_typesize.sh
@@ -1,6 +1,6 @@
---- src/typesize.sh.orig	Tue Jul 27 13:24:17 2004
-+++ src/typesize.sh	Thu Aug 19 18:30:43 2004
-@@ -21,7 +21,7 @@
+--- src/typesize.sh.orig	2004-07-27 11:24:17 UTC
++++ src/typesize.sh
+@@ -21,7 +21,7 @@ for i in "short" "int" "long " "unsigned short" "unsig
  	:
        else
  	x=$?