public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: net-ftp/ncftp/, net-ftp/ncftp/files/
@ 2025-10-02  8:28 Viorel Munteanu
  0 siblings, 0 replies; 4+ messages in thread
From: Viorel Munteanu @ 2025-10-02  8:28 UTC (permalink / raw
  To: gentoo-commits

commit:     1eeddd8c1e78dd984df1c794be1b3afdd51771b1
Author:     Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
AuthorDate: Thu Oct  2 08:10:39 2025 +0000
Commit:     Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
CommitDate: Thu Oct  2 08:27:44 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1eeddd8c

net-ftp/ncftp: drop 3.2.7-r2

Signed-off-by: Viorel Munteanu <ceamac <AT> gentoo.org>

 net-ftp/ncftp/Manifest                             |  1 -
 ...cftp-3.2.7-implicit-function-declarations.patch | 93 ----------------------
 net-ftp/ncftp/ncftp-3.2.7-r2.ebuild                | 55 -------------
 3 files changed, 149 deletions(-)

diff --git a/net-ftp/ncftp/Manifest b/net-ftp/ncftp/Manifest
index 41277e593ec9..3c5199e1a330 100644
--- a/net-ftp/ncftp/Manifest
+++ b/net-ftp/ncftp/Manifest
@@ -1,3 +1,2 @@
-DIST ncftp-3.2.7-src.tar.xz 422480 BLAKE2B d075be273d534b11385b8ee5839835102d9f69a6cc8fc8f661b85be32c1cad3b1c4bab2c99b8c47bc3c40d18275524b88da7d8e70985dbb0cfb7ff5ea07b70f3 SHA512 b755385a57ac2487625c15985f091d9e1b71073b2593faffe1f2bbba34e691cfff9ffd8448b048f223ea08428e890f30c49a903e4f938393e3c0e4ae03ddab37
 DIST ncftp-3.2.8-src.tar.gz 691081 BLAKE2B 0b88dfbf57befc1613886519698510bb85cc7a8e11f814d6188684551444ee39f17f4e40b71d8388853236be305644d0894e6de5b78c00955504c6f94bfc96ff SHA512 df5e22b48de718212312080964af85c572c8dba0d56d684ef531cdeefc8f4fcddab629ee8e2b94df69665fe160710fb253c694df8e9fdd495c9a1e78660fb8f1
 DIST ncftp-3.3.0-src.tar.gz 640869 BLAKE2B 86e9d4833acf173995cd88c4881b71b82e91ed995eb4b0134d31dcc6d2054da5125d76ccb8828dc3be1f161fe2155bfee528019d55146b5fcbda5fecc06f10d8 SHA512 44ac7326e2cda957b5e32e8130ec8b7c8180d085ff400209dd86c0284b5b07fd2b794ee5d707bdaad4f7581553bd12ac10914e2ef0a7dc0913a0ca540d0322a2

diff --git a/net-ftp/ncftp/files/ncftp-3.2.7-implicit-function-declarations.patch b/net-ftp/ncftp/files/ncftp-3.2.7-implicit-function-declarations.patch
deleted file mode 100644
index a0e14a7c325d..000000000000
--- a/net-ftp/ncftp/files/ncftp-3.2.7-implicit-function-declarations.patch
+++ /dev/null
@@ -1,93 +0,0 @@
-aclocal.m4 contains code that no longer compiles: missing headers and missing
-return types.
-
-https://bugs.gentoo.org/875458
-https://bugs.gentoo.org/921487
-https://bugs.gentoo.org/926491
-
---- a/autoconf_local/aclocal.m4
-+++ b/autoconf_local/aclocal.m4
-@@ -464,6 +464,7 @@ CFLAGS="$CFLAGS $ac_cv_ssp_flags"
- changequote([, ])dnl
- AC_TRY_LINK([
- #include <stdio.h>
-+#include <string.h>
- #ifdef HAVE_STDLIB_H
- #	include <stdlib.h>
- #endif
-@@ -1063,6 +1064,7 @@ AC_DEFUN(wi_USE_STATIC_LIBGCC, [
- 				#
- 				AC_TRY_LINK([
- #include <stdio.h>
-+#include <string.h>
- #ifdef HAVE_STDLIB_H
- #	include <stdlib.h>
- #endif
-@@ -3057,6 +3059,7 @@ AC_TRY_LINK([
- #include <sys/uio.h>
- #include <sys/socket.h>
- #include <sys/un.h>
-+#include <string.h>
- ],[
- struct sockaddr_un uaddr;
- 
-@@ -3285,6 +3288,7 @@ AC_TRY_LINK([
- #ifdef HAVE_RESOLV_H
- #	include <resolv.h>
- #endif
-+#include <string.h>
- ],[
- 	/* function-body */
- 	int len;
-@@ -3363,6 +3367,7 @@ else
- #include <stdio.h>
- #include <stdlib.h>
- 		 
-+			int
- 			main(int argc, char **argv)
- 			{
- 				/* Note:  don't actually call readline,
-@@ -4193,7 +4198,7 @@ AC_MSG_CHECKING([types of arguments for select()])
- #include <sys/select.h>
- #endif
- #include <sys/socket.h>	/* MG: always incl */
--extern select ($ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg234,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5);],,dnl
-+extern int select ($ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg234,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5);],,dnl
-         [ac_not_found=no ; break 3],ac_not_found=yes)
-       done
-      done
-@@ -5145,6 +5150,7 @@ do
- #ifdef HAVE_STDLIB_H
- #	include <stdlib.h>
- #endif
-+#include <string.h>
- 
- #ifdef HAVE_NCURSES_H
- #	define NCURSES_OPAQUE 0
-@@ -5176,6 +5182,7 @@ do
- #endif
- 
-  
-+int
- main(int argc, char **argv)
- {
- 	/* Note:  don't actually call curses, since it may block;
-@@ -6510,7 +6517,6 @@ char *malloc();
- #endif
- #endif			/* MG */
- 
--int
- int  main(void)
- {
- 	char *data, *data2, *data3;
-@@ -6607,8 +6613,9 @@ else
- 	AC_CACHE_CHECK(whether setvbuf arguments are reversed,
- 	  ac_cv_func_setvbuf_reversed,
- 	[AC_TRY_RUN([#include <stdio.h>
-+	$include <stdlib.h>
- 	/* If setvbuf has the reversed format, exit 0. */
--	main () {
-+	int main (void) {
- 	  /* This call has the arguments reversed.
- 	     A reversed system may check and see that the address of main
- 	     is not _IOLBF, _IONBF, or _IOFBF, and return nonzero.  */

diff --git a/net-ftp/ncftp/ncftp-3.2.7-r2.ebuild b/net-ftp/ncftp/ncftp-3.2.7-r2.ebuild
deleted file mode 100644
index 725c245a6032..000000000000
--- a/net-ftp/ncftp/ncftp-3.2.7-r2.ebuild
+++ /dev/null
@@ -1,55 +0,0 @@
-# Copyright 1999-2025 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-inherit autotools toolchain-funcs
-
-DESCRIPTION="An extremely configurable ftp client"
-HOMEPAGE="https://www.ncftp.com/"
-SRC_URI="https://www.ncftp.com/public_ftp/${PN}/${P}-src.tar.xz"
-
-LICENSE="Clarified-Artistic"
-SLOT="0"
-KEYWORDS="~alpha amd64 arm ~hppa ~mips ppc ppc64 ~riscv ~s390 ~sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos"
-IUSE="pch"
-
-DEPEND="
-	sys-libs/ncurses:=
-"
-RDEPEND="
-	${DEPEND}
-"
-BDEPEND="
-	virtual/pkgconfig
-"
-
-PATCHES=(
-	"${FILESDIR}"/${PN}-3.2.7-implicit-function-declarations.patch
-)
-
-src_prepare() {
-	default
-
-	sed -i -e '/^AR=/d' autoconf_local/aclocal.m4 || die
-	# 727774
-	sed -i -e 's/STRIP=".*"/STRIP=":"/' autoconf_local/aclocal.m4 || die
-
-	AT_M4DIR=autoconf_local/ eautoreconf
-}
-
-src_configure() {
-	tc-export AR CC
-	LC_ALL="C" \
-	LIBS="$( $(tc-getPKG_CONFIG) --libs ncurses)" \
-		econf \
-		$(use_enable pch precomp) \
-		--disable-ccdv \
-		--disable-universal
-}
-
-src_install() {
-	default
-	dodoc README.txt doc/*.txt
-	docinto html
-	dodoc doc/html/*.html
-}


^ permalink raw reply related	[flat|nested] 4+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: net-ftp/ncftp/, net-ftp/ncftp/files/
@ 2024-05-03  7:05 Viorel Munteanu
  0 siblings, 0 replies; 4+ messages in thread
From: Viorel Munteanu @ 2024-05-03  7:05 UTC (permalink / raw
  To: gentoo-commits

commit:     e5ee5d5af56c1f2753377ee13d987c32bbd0f58c
Author:     Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
AuthorDate: Fri May  3 06:31:24 2024 +0000
Commit:     Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
CommitDate: Fri May  3 07:04:34 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e5ee5d5a

net-ftp/ncftp: fix implicit function declarations QA warning

Closes: https://bugs.gentoo.org/926491
Signed-off-by: Viorel Munteanu <ceamac <AT> gentoo.org>

 ...cftp-3.2.7-implicit-function-declarations.patch | 93 ++++++++++++++++++++++
 net-ftp/ncftp/ncftp-3.2.7-r2.ebuild                | 55 +++++++++++++
 2 files changed, 148 insertions(+)

diff --git a/net-ftp/ncftp/files/ncftp-3.2.7-implicit-function-declarations.patch b/net-ftp/ncftp/files/ncftp-3.2.7-implicit-function-declarations.patch
new file mode 100644
index 000000000000..a0e14a7c325d
--- /dev/null
+++ b/net-ftp/ncftp/files/ncftp-3.2.7-implicit-function-declarations.patch
@@ -0,0 +1,93 @@
+aclocal.m4 contains code that no longer compiles: missing headers and missing
+return types.
+
+https://bugs.gentoo.org/875458
+https://bugs.gentoo.org/921487
+https://bugs.gentoo.org/926491
+
+--- a/autoconf_local/aclocal.m4
++++ b/autoconf_local/aclocal.m4
+@@ -464,6 +464,7 @@ CFLAGS="$CFLAGS $ac_cv_ssp_flags"
+ changequote([, ])dnl
+ AC_TRY_LINK([
+ #include <stdio.h>
++#include <string.h>
+ #ifdef HAVE_STDLIB_H
+ #	include <stdlib.h>
+ #endif
+@@ -1063,6 +1064,7 @@ AC_DEFUN(wi_USE_STATIC_LIBGCC, [
+ 				#
+ 				AC_TRY_LINK([
+ #include <stdio.h>
++#include <string.h>
+ #ifdef HAVE_STDLIB_H
+ #	include <stdlib.h>
+ #endif
+@@ -3057,6 +3059,7 @@ AC_TRY_LINK([
+ #include <sys/uio.h>
+ #include <sys/socket.h>
+ #include <sys/un.h>
++#include <string.h>
+ ],[
+ struct sockaddr_un uaddr;
+ 
+@@ -3285,6 +3288,7 @@ AC_TRY_LINK([
+ #ifdef HAVE_RESOLV_H
+ #	include <resolv.h>
+ #endif
++#include <string.h>
+ ],[
+ 	/* function-body */
+ 	int len;
+@@ -3363,6 +3367,7 @@ else
+ #include <stdio.h>
+ #include <stdlib.h>
+ 		 
++			int
+ 			main(int argc, char **argv)
+ 			{
+ 				/* Note:  don't actually call readline,
+@@ -4193,7 +4198,7 @@ AC_MSG_CHECKING([types of arguments for select()])
+ #include <sys/select.h>
+ #endif
+ #include <sys/socket.h>	/* MG: always incl */
+-extern select ($ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg234,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5);],,dnl
++extern int select ($ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg234,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5);],,dnl
+         [ac_not_found=no ; break 3],ac_not_found=yes)
+       done
+      done
+@@ -5145,6 +5150,7 @@ do
+ #ifdef HAVE_STDLIB_H
+ #	include <stdlib.h>
+ #endif
++#include <string.h>
+ 
+ #ifdef HAVE_NCURSES_H
+ #	define NCURSES_OPAQUE 0
+@@ -5176,6 +5182,7 @@ do
+ #endif
+ 
+  
++int
+ main(int argc, char **argv)
+ {
+ 	/* Note:  don't actually call curses, since it may block;
+@@ -6510,7 +6517,6 @@ char *malloc();
+ #endif
+ #endif			/* MG */
+ 
+-int
+ int  main(void)
+ {
+ 	char *data, *data2, *data3;
+@@ -6607,8 +6613,9 @@ else
+ 	AC_CACHE_CHECK(whether setvbuf arguments are reversed,
+ 	  ac_cv_func_setvbuf_reversed,
+ 	[AC_TRY_RUN([#include <stdio.h>
++	$include <stdlib.h>
+ 	/* If setvbuf has the reversed format, exit 0. */
+-	main () {
++	int main (void) {
+ 	  /* This call has the arguments reversed.
+ 	     A reversed system may check and see that the address of main
+ 	     is not _IOLBF, _IONBF, or _IOFBF, and return nonzero.  */

diff --git a/net-ftp/ncftp/ncftp-3.2.7-r2.ebuild b/net-ftp/ncftp/ncftp-3.2.7-r2.ebuild
new file mode 100644
index 000000000000..48fa3dac535e
--- /dev/null
+++ b/net-ftp/ncftp/ncftp-3.2.7-r2.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+inherit autotools toolchain-funcs
+
+DESCRIPTION="An extremely configurable ftp client"
+HOMEPAGE="https://www.ncftp.com/"
+SRC_URI="https://www.ncftp.com/public_ftp/${PN}/${P}-src.tar.xz"
+
+LICENSE="Clarified-Artistic"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos"
+IUSE="pch"
+
+DEPEND="
+	sys-libs/ncurses:=
+"
+RDEPEND="
+	${DEPEND}
+"
+BDEPEND="
+	virtual/pkgconfig
+"
+
+PATCHES=(
+	"${FILESDIR}"/${PN}-3.2.7-implicit-function-declarations.patch
+)
+
+src_prepare() {
+	default
+
+	sed -i -e '/^AR=/d' autoconf_local/aclocal.m4 || die
+	# 727774
+	sed -i -e 's/STRIP=".*"/STRIP=":"/' autoconf_local/aclocal.m4 || die
+
+	AT_M4DIR=autoconf_local/ eautoreconf
+}
+
+src_configure() {
+	tc-export AR CC
+	LC_ALL="C" \
+	LIBS="$( $(tc-getPKG_CONFIG) --libs ncurses)" \
+		econf \
+		$(use_enable pch precomp) \
+		--disable-ccdv \
+		--disable-universal
+}
+
+src_install() {
+	default
+	dodoc README.txt doc/*.txt
+	docinto html
+	dodoc doc/html/*.html
+}


^ permalink raw reply related	[flat|nested] 4+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: net-ftp/ncftp/, net-ftp/ncftp/files/
@ 2024-01-03 15:01 Viorel Munteanu
  0 siblings, 0 replies; 4+ messages in thread
From: Viorel Munteanu @ 2024-01-03 15:01 UTC (permalink / raw
  To: gentoo-commits

commit:     187bb1e0c5603e11b55dda915088ec4434a63cd1
Author:     Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
AuthorDate: Wed Jan  3 15:01:17 2024 +0000
Commit:     Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
CommitDate: Wed Jan  3 15:01:17 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=187bb1e0

net-ftp/ncftp: add 3.2.7

Signed-off-by: Viorel Munteanu <ceamac <AT> gentoo.org>

 net-ftp/ncftp/Manifest                          |  1 +
 net-ftp/ncftp/files/ncftp-3.2.7-fix-clang.patch | 66 +++++++++++++++++++++++++
 net-ftp/ncftp/ncftp-3.2.7.ebuild                | 55 +++++++++++++++++++++
 3 files changed, 122 insertions(+)

diff --git a/net-ftp/ncftp/Manifest b/net-ftp/ncftp/Manifest
index 85a2f440154c..4d5ad49ce3fc 100644
--- a/net-ftp/ncftp/Manifest
+++ b/net-ftp/ncftp/Manifest
@@ -1 +1,2 @@
 DIST ncftp-3.2.6-src.tar.xz 420564 BLAKE2B ce6d8d2bf06761f884e9edfe6d0bb0230f5d515078a787c4e6faf7716b760166acdd0accf3de1e1f5f3d892c8c86348cdbbefeac6be05e6806011a3e8f4c9b02 SHA512 8e6091ce2ea1eb463edea322d1b5dde813475fd22096d67f0bfd2f5101ae09747ff25d38816d0b9b1077e6a5a256078361691f816aa2eefa38638aa523b4b382
+DIST ncftp-3.2.7-src.tar.xz 422480 BLAKE2B d075be273d534b11385b8ee5839835102d9f69a6cc8fc8f661b85be32c1cad3b1c4bab2c99b8c47bc3c40d18275524b88da7d8e70985dbb0cfb7ff5ea07b70f3 SHA512 b755385a57ac2487625c15985f091d9e1b71073b2593faffe1f2bbba34e691cfff9ffd8448b048f223ea08428e890f30c49a903e4f938393e3c0e4ae03ddab37

diff --git a/net-ftp/ncftp/files/ncftp-3.2.7-fix-clang.patch b/net-ftp/ncftp/files/ncftp-3.2.7-fix-clang.patch
new file mode 100644
index 000000000000..d8529490cd1e
--- /dev/null
+++ b/net-ftp/ncftp/files/ncftp-3.2.7-fix-clang.patch
@@ -0,0 +1,66 @@
+Fix compilation with clang-16
+
+aclocal.m4 contains code that no longer compiles: missing headers and missing
+return types.
+
+--- a/autoconf_local/aclocal.m4
++++ b/autoconf_local/aclocal.m4
+@@ -3057,6 +3057,7 @@
+ #include <sys/uio.h>
+ #include <sys/socket.h>
+ #include <sys/un.h>
++#include <string.h>
+ ],[
+ struct sockaddr_un uaddr;
+ 
+@@ -3285,6 +3286,7 @@
+ #ifdef HAVE_RESOLV_H
+ #	include <resolv.h>
+ #endif
++#include <string.h>
+ ],[
+ 	/* function-body */
+ 	int len;
+@@ -3363,6 +3365,7 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ 		 
++			int
+ 			main(int argc, char **argv)
+ 			{
+ 				/* Note:  don't actually call readline,
+@@ -5145,6 +5148,7 @@
+ #ifdef HAVE_STDLIB_H
+ #	include <stdlib.h>
+ #endif
++#include <string.h>
+ 
+ #ifdef HAVE_NCURSES_H
+ #	define NCURSES_OPAQUE 0
+@@ -5176,6 +5180,7 @@
+ #endif
+ 
+  
++int
+ main(int argc, char **argv)
+ {
+ 	/* Note:  don't actually call curses, since it may block;
+@@ -6510,7 +6515,6 @@
+ #endif
+ #endif			/* MG */
+ 
+-int
+ int  main(void)
+ {
+ 	char *data, *data2, *data3;
+@@ -6607,8 +6611,9 @@
+ 	AC_CACHE_CHECK(whether setvbuf arguments are reversed,
+ 	  ac_cv_func_setvbuf_reversed,
+ 	[AC_TRY_RUN([#include <stdio.h>
++	$include <stdlib.h>
+ 	/* If setvbuf has the reversed format, exit 0. */
+-	main () {
++	int main (void) {
+ 	  /* This call has the arguments reversed.
+ 	     A reversed system may check and see that the address of main
+ 	     is not _IOLBF, _IONBF, or _IOFBF, and return nonzero.  */

diff --git a/net-ftp/ncftp/ncftp-3.2.7.ebuild b/net-ftp/ncftp/ncftp-3.2.7.ebuild
new file mode 100644
index 000000000000..0aa221e759bc
--- /dev/null
+++ b/net-ftp/ncftp/ncftp-3.2.7.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+inherit autotools toolchain-funcs
+
+DESCRIPTION="An extremely configurable ftp client"
+HOMEPAGE="https://www.ncftp.com/"
+SRC_URI="https://www.ncftp.com/public_ftp/${PN}/${P}-src.tar.xz"
+
+LICENSE="Clarified-Artistic"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos"
+IUSE="pch"
+
+DEPEND="
+	sys-libs/ncurses:=
+"
+RDEPEND="
+	${DEPEND}
+"
+BDEPEND="
+	virtual/pkgconfig
+"
+
+PATCHES=(
+	"${FILESDIR}"/${PN}-3.2.7-fix-clang.patch # 875458
+)
+
+src_prepare() {
+	default
+
+	sed -i -e '/^AR=/d' autoconf_local/aclocal.m4 || die
+	# 727774
+	sed -i -e 's/STRIP=".*"/STRIP=":"/' autoconf_local/aclocal.m4 || die
+
+	AT_M4DIR=autoconf_local/ eautoreconf
+}
+
+src_configure() {
+	tc-export AR CC
+	LC_ALL="C" \
+	LIBS="$( $(tc-getPKG_CONFIG) --libs ncurses)" \
+		econf \
+		$(use_enable pch precomp) \
+		--disable-ccdv \
+		--disable-universal
+}
+
+src_install() {
+	default
+	dodoc README.txt doc/*.txt
+	docinto html
+	dodoc doc/html/*.html
+}


^ permalink raw reply related	[flat|nested] 4+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: net-ftp/ncftp/, net-ftp/ncftp/files/
@ 2022-11-15  5:32 Viorel Munteanu
  0 siblings, 0 replies; 4+ messages in thread
From: Viorel Munteanu @ 2022-11-15  5:32 UTC (permalink / raw
  To: gentoo-commits

commit:     bc257c9a3f6e30f1d1d1204ef2edb3a9a94a1b26
Author:     Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 13 18:12:30 2022 +0000
Commit:     Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
CommitDate: Tue Nov 15 05:32:39 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bc257c9a

net-ftp/ncftp: fix compilation with clang

Closes: https://bugs.gentoo.org/875458
Closes: https://github.com/gentoo/gentoo/pull/28258
Signed-off-by: Viorel Munteanu <ceamac <AT> gentoo.org>

 net-ftp/ncftp/files/ncftp-3.2.6-fix-clang.patch | 437 ++++++++++++++++++++++++
 net-ftp/ncftp/ncftp-3.2.6-r5.ebuild             |  58 ++++
 2 files changed, 495 insertions(+)

diff --git a/net-ftp/ncftp/files/ncftp-3.2.6-fix-clang.patch b/net-ftp/ncftp/files/ncftp-3.2.6-fix-clang.patch
new file mode 100644
index 000000000000..21b4a5601d36
--- /dev/null
+++ b/net-ftp/ncftp/files/ncftp-3.2.6-fix-clang.patch
@@ -0,0 +1,437 @@
+Fix compilation with clang-16
+
+aclocal.m4 contains code that no longer compiles: missing headers and missing
+return types.
+
+--- a/autoconf_local/aclocal.m4
++++ b/autoconf_local/aclocal.m4
+@@ -192,6 +192,7 @@
+ #include "pchtest.h"
+ #pragma hdrstop
+ #include <stdarg.h>
++#include <stdlib.h>
+ 
+ int main(int argc, char **argv)
+ {
+@@ -1242,7 +1243,9 @@
+ AC_MSG_CHECKING([if -D__STDC_EXT__ is needed with GCC on HP-UX])
+ AC_TRY_RUN([
+ #include <stdio.h>
++#include <stdlib.h>
+  
++int
+ main()
+ {
+ #ifdef __STDC_EXT__
+@@ -1674,7 +1677,9 @@
+ #include <sys/types.h>
+ #include <sys/stat.h>
+ #include <stdio.h>
++#include <stdlib.h>
+  
++int
+ main()
+ {
+ 	int result;
+@@ -1816,6 +1821,7 @@
+ #	include <snprintf.h>
+ #endif
+  
++int
+ main()
+ {
+ 	char s[16];
+@@ -1876,6 +1882,7 @@
+ #	include <snprintf.h>
+ #endif
+  
++int
+ main()
+ {
+ 	int result;
+@@ -2004,7 +2011,9 @@
+ #ifdef HAVE_SYS_UN_H
+ #include <sys/un.h>
+ #endif
++#include <stdlib.h>
+  
++int
+ main()
+ {
+ 	int sfd;
+@@ -2088,7 +2097,9 @@
+ #include <sys/socket.h>
+ #include <netinet/in.h>
+ #include <netdb.h>
++#include <stdlib.h>
+  
++int
+ main()
+ {
+ 	struct hostent *hp1, *hp2;
+@@ -2134,6 +2145,7 @@
+ #endif
+ #include <sys/types.h>
+ #include <stdio.h>
++#include <stdlib.h>
+ 
+ /* These are needed if libwrap.a was compiled with
+  * PROCESS_OPTIONS defined.
+@@ -2238,6 +2250,7 @@
+ #include <stdio.h>
+ #include <signal.h>
+ #include <setjmp.h>
++#include <stdlib.h>
+ ],[
+ 	/* function-body */
+ 	sigjmp_buf sjb;
+@@ -2265,6 +2278,7 @@
+ #include <unistd.h>
+ #include <sys/types.h>
+ #include <utmp.h>
++#include <stdlib.h>
+ ],[
+ struct utmp u;
+ 
+@@ -2288,6 +2302,7 @@
+ #include <unistd.h>
+ #include <sys/types.h>
+ #include <utmp.h>
++#include <stdlib.h>
+ ],[
+ struct utmp u;
+ 
+@@ -2311,6 +2326,7 @@
+ #include <unistd.h>
+ #include <sys/types.h>
+ #include <utmpx.h>
++#include <stdlib.h>
+ ],[
+ struct utmpx u;
+ 
+@@ -2334,6 +2350,7 @@
+ #include <unistd.h>
+ #include <sys/types.h>
+ #include <utmpx.h>
++#include <stdlib.h>
+ ],[
+ struct utmpx u;
+ 
+@@ -2357,6 +2374,7 @@
+ #include <unistd.h>
+ #include <sys/types.h>
+ #include <utmpx.h>
++#include <stdlib.h>
+ ],[
+ struct utmpx u;
+ 
+@@ -2380,6 +2398,7 @@
+ #include <unistd.h>
+ #include <sys/types.h>
+ #include <utmp.h>
++#include <stdlib.h>
+ ],[
+ struct utmp u;
+ 
+@@ -2403,6 +2422,7 @@
+ #include <unistd.h>
+ #include <sys/types.h>
+ #include <utmp.h>
++#include <stdlib.h>
+ ],[
+ struct utmp u;
+ 
+@@ -2427,6 +2447,7 @@
+ #include <unistd.h>
+ #include <sys/types.h>
+ #include <utmp.h>
++#include <stdlib.h>
+ ],[
+ struct utmp u;
+ 
+@@ -2450,6 +2471,7 @@
+ #include <unistd.h>
+ #include <sys/types.h>
+ #include <utmp.h>
++#include <stdlib.h>
+ ],[
+ struct utmp u;
+ 
+@@ -2482,6 +2504,7 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+  
++int
+ main()
+ {
+ 	size_t x = 0;
+@@ -2545,6 +2568,7 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+  
++int
+ main()
+ {
+ 	off_t x = 0;
+@@ -2608,6 +2632,7 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+  
++int
+ main()
+ {
+ 	struct stat x;
+@@ -2671,6 +2696,7 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+  
++int
+ main()
+ {
+ 	off64_t x = 0;
+@@ -2732,6 +2758,7 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+  
++int
+ main()
+ {
+ 	struct stat64 x;
+@@ -2789,6 +2816,7 @@
+ #include <unistd.h>
+ #include <sys/types.h>
+ #include <sys/stat.h>
++#include <stdlib.h>
+ ],[
+ struct stat64 st;
+ 
+@@ -2815,6 +2843,7 @@
+ #include <sys/uio.h>
+ #include <sys/socket.h>
+ #include <sys/un.h>
++#include <stdlib.h>
+ ],[
+ struct cmsghdr cm;
+ 
+@@ -2844,6 +2873,7 @@
+ #include <sys/uio.h>
+ #include <sys/socket.h>
+ #include <sys/un.h>
++#include <stdlib.h>
+ ],[
+ struct msghdr m;
+ 
+@@ -2872,6 +2902,7 @@
+ #include <sys/uio.h>
+ #include <sys/socket.h>
+ #include <sys/un.h>
++#include <stdlib.h>
+ ],[
+ struct msghdr m;
+ 
+@@ -2975,6 +3006,8 @@
+ #include <sys/uio.h>
+ #include <sys/socket.h>
+ #include <sys/un.h>
++#include <stdlib.h>
++#include <string.h>
+ ],[
+ struct sockaddr_un uaddr;
+ 
+@@ -3004,6 +3037,7 @@
+ #elif defined(HAVE_SYS_VFS_H)
+ #	include <sys/vfs.h>
+ #endif
++#include <stdlib.h>
+ ],[
+ struct statfs st;
+ 
+@@ -3027,6 +3061,7 @@
+ #include <unistd.h>
+ #include <sys/types.h>
+ #include <sys/statvfs.h>
++#include <stdlib.h>
+ ],[
+ struct statvfs st;
+ 
+@@ -3049,7 +3084,9 @@
+ 	/* program */
+ #include <stdio.h>
+ #include <string.h>
++#include <stdlib.h>
+  
++int
+ main()
+ {
+ 	int result;
+@@ -3108,9 +3145,11 @@
+ #endif
+ #include <stdio.h>
+ #include <string.h>
++#include <stdlib.h>
+ 
+ extern char *crypt(const char *key, const char *salt);
+ 
++int
+ main()
+ {
+ 	char cleartext[256];
+@@ -3182,6 +3221,7 @@
+ #include <sys/socket.h>
+ #include <arpa/inet.h>
+ #include <netinet/in.h>
++#include <string.h>
+ #ifdef HAVE_ARPA_NAMESER_H
+ #	include <arpa/nameser.h>
+ #endif
+@@ -3327,9 +3367,11 @@
+ #include <unistd.h>
+ #include <sys/types.h>
+ #include <stdio.h>
++#include <stdlib.h>
+ 
+ extern char *rl_library_version;
+ 
++int
+ main()
+ {
+ 	FILE *fp;
+@@ -3446,9 +3488,11 @@
+ #endif
+ #include <sys/types.h>
+ #include <stdio.h>
++#include <stdlib.h>
+ 
+ long long hugeNumvar = 1;
+ 
++int
+ main()
+ {
+ 	long long hugeNumtoo = 2;
+@@ -3495,6 +3539,7 @@
+ #include <string.h>
+ #include <stdlib.h>
+ 
++int
+ main()
+ {
+ 	char s[80];
+@@ -3536,6 +3581,7 @@
+ #include <string.h>
+ #include <stdlib.h>
+ 
++int
+ main()
+ {
+ 	char s[80];
+@@ -3585,6 +3631,7 @@
+ #include <string.h>
+ #include <stdlib.h>
+ 
++int
+ main()
+ {
+ 	long long hugeNum, justAsHugeNum;
+@@ -3629,6 +3676,7 @@
+ #include <string.h>
+ #include <stdlib.h>
+ 
++int
+ main()
+ {
+ 	long long hugeNum, justAsHugeNum;
+@@ -4076,7 +4124,7 @@
+ #include <sys/select.h>
+ #endif
+ #include <sys/socket.h>	/* MG: always incl */
+-extern select ($ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg234,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5);],,dnl
++extern int select ($ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg234,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5);],,dnl
+         [ac_not_found=no ; break 3],ac_not_found=yes)
+       done
+      done
+@@ -4226,7 +4274,9 @@
+ #include <netinet/in.h>
+ #include <arpa/inet.h>
+ #include <netdb.h>
++#include <stdlib.h>
+ 
++int
+ main()
+ {
+ 	exit(0);
+@@ -5023,6 +5073,7 @@
+ 		/* includes */
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <string.h>
+ 
+ #ifdef HAVE_NCURSES_H
+ #	define NCURSES_OPAQUE 0
+@@ -5054,6 +5105,7 @@
+ #endif
+ 
+  
++int
+ main(int argc, char **argv)
+ {
+ 	/* Note:  don't actually call curses, since it may block;
+@@ -5142,6 +5194,7 @@
+ #	include <curses.h>
+ #endif
+ 
++int
+ main()
+ {
+ 	exit(0);
+@@ -5809,7 +5862,9 @@
+ 		cat <<EOF > "$vertest.c"
+ #include <stdio.h>
+ #include <gnu/libc-version.h>
++#include <stdlib.h>
+ 
++int
+ main()
+ {
+ 	const char *ver = gnu_get_libc_version();
+@@ -5957,6 +6012,7 @@
+ #include <stdlib.h>
+ #include <ctype.h>
+ 
++int
+ main()
+ {
+ 	char line[256], *cp, *cp2; 
+@@ -6109,6 +6165,7 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+  
++int
+ main()
+ {
+ 	FILE *fp;
+@@ -6166,6 +6223,7 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+  
++int
+ main()
+ {
+ 	struct stat x;
+@@ -6224,6 +6282,7 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+  
++int
+ main()
+ {
+ 	struct stat64 x;
+@@ -6457,7 +6516,8 @@
+ 	  ac_cv_func_setvbuf_reversed,
+ 	[AC_TRY_RUN([#include <stdio.h>
+ 	/* If setvbuf has the reversed format, exit 0. */
+-	main () {
++	#include <stdlib.h>
++	int main () {
+ 	  /* This call has the arguments reversed.
+ 	     A reversed system may check and see that the address of main
+ 	     is not _IOLBF, _IONBF, or _IOFBF, and return nonzero.  */

diff --git a/net-ftp/ncftp/ncftp-3.2.6-r5.ebuild b/net-ftp/ncftp/ncftp-3.2.6-r5.ebuild
new file mode 100644
index 000000000000..c0eb310662c3
--- /dev/null
+++ b/net-ftp/ncftp/ncftp-3.2.6-r5.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+inherit autotools toolchain-funcs
+
+DESCRIPTION="An extremely configurable ftp client"
+HOMEPAGE="https://www.ncftp.com/"
+SRC_URI="
+	https://ftp.mirrorservice.org/sites/ftp.${PN}.com/${PN}/${P}-src.tar.xz
+"
+
+LICENSE="Clarified-Artistic"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x86-solaris"
+IUSE="pch"
+
+DEPEND="
+	sys-libs/ncurses:=
+"
+RDEPEND="
+	${DEPEND}
+"
+BDEPEND="
+	virtual/pkgconfig
+"
+
+PATCHES=(
+	"${FILESDIR}"/${PN}-3.2.6-fno-common.patch
+	"${FILESDIR}"/${PN}-3.2.6-fix-clang.patch # 875458
+)
+
+src_prepare() {
+	default
+
+	sed -i -e '/^AR=/d' autoconf_local/aclocal.m4 || die
+	# 727774
+	sed -i -e 's/STRIP=".*"/STRIP=":"/' autoconf_local/aclocal.m4 || die
+
+	AT_M4DIR=autoconf_local/ eautoreconf
+}
+
+src_configure() {
+	tc-export AR CC
+	LC_ALL="C" \
+	LIBS="$( $(tc-getPKG_CONFIG) --libs ncurses)" \
+		econf \
+		$(use_enable pch precomp) \
+		--disable-ccdv \
+		--disable-universal
+}
+
+src_install() {
+	default
+	dodoc README.txt doc/*.txt
+	docinto html
+	dodoc doc/html/*.html
+}


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-10-02  8:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-02  8:28 [gentoo-commits] repo/gentoo:master commit in: net-ftp/ncftp/, net-ftp/ncftp/files/ Viorel Munteanu
  -- strict thread matches above, loose matches on Subject: below --
2024-05-03  7:05 Viorel Munteanu
2024-01-03 15:01 Viorel Munteanu
2022-11-15  5:32 Viorel Munteanu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox