Browse Source
* Patched getpass by wrapping in if statement thanks to https://github.com/termux/termux-packages/blob/master/packages/rsync/rsync-3.1.3_lib_getpass.c.patch
* Patched %n printf failing on android 10 thanks to 759ad3f217
build-on-device
Rowan Wookey
5 years ago
3 changed files with 50 additions and 0 deletions
@ -0,0 +1,8 @@ |
|||
TERMUX_PKG_HOMEPAGE=https://www.gnu.org/software/recutils/ |
|||
TERMUX_PKG_DESCRIPTION="GNU Recutils is a set of tools and libraries to access human-editable, plain text databases called recfiles" |
|||
TERMUX_PKG_LICENSE="GPL-3.0" |
|||
TERMUX_PKG_VERSION=1.8 |
|||
TERMUX_PKG_REVISION=1 |
|||
TERMUX_PKG_SRCURL=https://ftp.gnu.org/gnu/recutils/recutils-${TERMUX_PKG_VERSION}.tar.gz |
|||
TERMUX_PKG_SHA256=df8eae69593fdba53e264cbf4b2307dfb82120c09b6fab23e2dad51a89a5b193 |
|||
TERMUX_PKG_MAINTAINER="Rowan Wookey <admin@rwky.net>" |
@ -0,0 +1,31 @@ |
|||
--- recutils-1.8/lib/getpass.c 2019-01-03 09:19:29.000000000 +0000
|
|||
+++ ../recutils-1.8-patched/lib/getpass.c 2020-02-15 18:35:52.025960001 +0000
|
|||
@@ -80,6 +80,7 @@
|
|||
fclose (arg); |
|||
} |
|||
|
|||
+#ifndef HAVE_GETPASS
|
|||
char * |
|||
getpass (const char *prompt) |
|||
{ |
|||
@@ -170,6 +171,7 @@
|
|||
|
|||
return buf; |
|||
} |
|||
+#endif
|
|||
|
|||
#else /* W32 native */ |
|||
|
|||
@@ -187,6 +189,7 @@
|
|||
# define PASS_MAX 512 |
|||
# endif |
|||
|
|||
+#ifndef HAVE_GETPASS
|
|||
char * |
|||
getpass (const char *prompt) |
|||
{ |
|||
@@ -229,3 +232,4 @@
|
|||
return strdup (getpassbuf); |
|||
} |
|||
#endif |
|||
+#endif
|
@ -0,0 +1,11 @@ |
|||
--- recutils-1.8/lib/vasnprintf.c 2019-01-03 09:19:30.000000000 +0000
|
|||
+++ ../recutils-1.8-patched/lib/vasnprintf.c 2020-02-15 18:35:52.025960001 +0000
|
|||
@@ -4874,7 +4874,7 @@
|
|||
# if ! (((__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 3)) \ |
|||
&& !defined __UCLIBC__) \ |
|||
|| (defined __APPLE__ && defined __MACH__) \ |
|||
- || (defined _WIN32 && ! defined __CYGWIN__))
|
|||
+ || (defined _WIN32 && ! defined __CYGWIN__) || defined(__ANDROID__))
|
|||
fbp[1] = '%'; |
|||
fbp[2] = 'n'; |
|||
fbp[3] = '\0'; |
Loading…
Reference in new issue