diff --git a/srcpkgs/gftp/patches/cross.patch b/srcpkgs/gftp/patches/cross.patch new file mode 100644 index 00000000000..cc74e2a6f72 --- /dev/null +++ b/srcpkgs/gftp/patches/cross.patch @@ -0,0 +1,80 @@ +--- configure.orig ++++ configure +@@ -5967,77 +5967,9 @@ + ;; + esac + +-{ echo "$as_me:$LINENO: checking whether the printf family of functions supports %'ld" >&5 +-echo $ECHO_N "checking whether the printf family of functions supports %'ld... $ECHO_C" >&6; } +- if test "$cross_compiling" = yes; then +- { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling +-See \`config.log' for more details." >&5 +-echo "$as_me: error: cannot run test program while cross compiling +-See \`config.log' for more details." >&2;} +- { (exit 1); exit 1; }; } +-else +- cat >conftest.$ac_ext <<_ACEOF +-/* confdefs.h. */ +-_ACEOF +-cat confdefs.h >>conftest.$ac_ext +-cat >>conftest.$ac_ext <<_ACEOF +-/* end confdefs.h. */ +-#include +- #include +- +- int main(void) { +- char buf[20]; +-#if defined (_LARGEFILE_SOURCE) +- sprintf (buf, "%'lld", (long) 1); +-#else +- sprintf (buf, "%'ld", (long) 1); +-#endif +- if (strchr (buf, '1') == NULL) +- return (1); +- return (0); +- } +-_ACEOF +-rm -f conftest$ac_exeext +-if { (ac_try="$ac_link" +-case "(($ac_try" in +- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; +- *) ac_try_echo=$ac_try;; +-esac +-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 +- (eval "$ac_link") 2>&5 +- ac_status=$? +- echo "$as_me:$LINENO: \$? = $ac_status" >&5 +- (exit $ac_status); } && { ac_try='./conftest$ac_exeext' +- { (case "(($ac_try" in +- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; +- *) ac_try_echo=$ac_try;; +-esac +-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 +- (eval "$ac_try") 2>&5 +- ac_status=$? +- echo "$as_me:$LINENO: \$? = $ac_status" >&5 +- (exit $ac_status); }; }; then +- + cat >>confdefs.h <<\_ACEOF + #define HAVE_INTL_PRINTF 1 + _ACEOF +- +- { echo "$as_me:$LINENO: result: yes" >&5 +-echo "${ECHO_T}yes" >&6; } +-else +- echo "$as_me: program exited with status $ac_status" >&5 +-echo "$as_me: failed program was:" >&5 +-sed 's/^/| /' conftest.$ac_ext >&5 +- +-( exit $ac_status ) +-{ echo "$as_me:$LINENO: result: no" >&5 +-echo "${ECHO_T}no" >&6; } +-fi +-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +-fi +- +- +- + + { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 + echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; } diff --git a/srcpkgs/gftp/patches/musl.patch b/srcpkgs/gftp/patches/musl.patch new file mode 100644 index 00000000000..8b7384cec5c --- /dev/null +++ b/srcpkgs/gftp/patches/musl.patch @@ -0,0 +1,10 @@ +--- lib/fsplib/fsplib.h.orig ++++ lib/fsplib/fsplib.h +@@ -3,6 +3,7 @@ + #include + #include + #include ++#include + #include + + /* The FSP v2 protocol support library - public interface */ diff --git a/srcpkgs/gftp/template b/srcpkgs/gftp/template index 6592f3a0d20..9e4a2279a80 100644 --- a/srcpkgs/gftp/template +++ b/srcpkgs/gftp/template @@ -5,10 +5,9 @@ revision=1 build_style=gnu-configure hostmakedepends="pkg-config" makedepends="glib-devel gtk+-devel" -depends="glibc gtk+" short_desc="Graphical file transfer client" maintainer="psylence " -license="GPL-1" +license="GPL-2" homepage="https://www.gftp.org" distfiles="https://www.gftp.org/gftp-${version}.tar.bz2" checksum=5306a46be96d6f4d23906cb1836fb3d732039621a6c7fcfa921acc21ac110bfd