gftp: fix template and add patches for cross and musl builds
Fixing issues for #7370
This commit is contained in:
parent
11e5e27ea5
commit
3ad3d8986f
3 changed files with 91 additions and 2 deletions
80
srcpkgs/gftp/patches/cross.patch
Normal file
80
srcpkgs/gftp/patches/cross.patch
Normal file
|
@ -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 <stdio.h>
|
||||
- #include <string.h>
|
||||
-
|
||||
- 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; }
|
10
srcpkgs/gftp/patches/musl.patch
Normal file
10
srcpkgs/gftp/patches/musl.patch
Normal file
|
@ -0,0 +1,10 @@
|
|||
--- lib/fsplib/fsplib.h.orig
|
||||
+++ lib/fsplib/fsplib.h
|
||||
@@ -3,6 +3,7 @@
|
||||
#include <time.h>
|
||||
#include <dirent.h>
|
||||
#include <sys/stat.h>
|
||||
+#include <sys/param.h>
|
||||
#include <stddef.h>
|
||||
|
||||
/* The FSP v2 protocol support library - public interface */
|
|
@ -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 <psylence@protonmail.com>"
|
||||
license="GPL-1"
|
||||
license="GPL-2"
|
||||
homepage="https://www.gftp.org"
|
||||
distfiles="https://www.gftp.org/gftp-${version}.tar.bz2"
|
||||
checksum=5306a46be96d6f4d23906cb1836fb3d732039621a6c7fcfa921acc21ac110bfd
|
||||
|
|
Loading…
Reference in a new issue