remove unnecessary patches and enable mariadb for arm and i686 (#1115)
authorVishal Biswas <vshlbiswas@ymail.com>
Sat, 1 Jul 2017 06:44:49 +0000 (12:14 +0530)
committerFredrik Fornwall <fredrik@fornwall.net>
Sat, 1 Jul 2017 06:44:49 +0000 (08:44 +0200)
* krb5: res_init and res_search prototypes are now declared

* mariadb: snprintf is no longer a macro

* mariadb: enable arm, i686

packages/krb5/dnsglue.h.patch [deleted file]
packages/mariadb/build.sh
packages/mariadb/m_ctype.h.patch [deleted file]

diff --git a/packages/krb5/dnsglue.h.patch b/packages/krb5/dnsglue.h.patch
deleted file mode 100644 (file)
index 35119d2..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
---- ./lib/krb5/os/dnsglue.h    2016-12-02 04:01:25.000000000 +0530
-+++ ../dnsglue.h       2016-12-06 23:46:48.394430806 +0530
-@@ -150,6 +150,12 @@
-         (ptr) += (incr);                                \
-     } while (0)
-+/* Bionic has res_init() but it's not in any header */
-+#ifdef __BIONIC__
-+extern int res_init (void);
-+extern int res_search (const char *dname, int class, int type,unsigned char *answer, int anslen);
-+#endif
-+
- struct krb5int_dns_state;
- int krb5int_dns_init(struct krb5int_dns_state **, char *, int, int);
index 7bd9885..37fd58d 100644 (file)
@@ -44,15 +44,6 @@ TERMUX_PKG_DEPENDS="liblzma, ncurses, libedit, openssl, pcre, libcrypt, libandro
 TERMUX_PKG_MAINTAINER="Vishal Biswas @vishalbiswas"
 TERMUX_PKG_CONFLICTS="mysql"
 TERMUX_PKG_RM_AFTER_INSTALL="bin/mysqltest*"
-# MariaDB doesn't support 32-bit off_t systems, see
-# https://bugs.mysql.com/bug.php?id=41309
-# It builds with -D_FILE_OFFSET_BITS=64 but the NDK only starts supporting
-# that with unified headers,
-# https://android.googlesource.com/platform/ndk/+/master/docs/UnifiedHeaders.md
-# The unified headers are new in the current NDK r14 release and contains some
-# issues which are being fixed for r15, at which time we'll probably switch to it.
-# In the meantime we don't build mariadb for 32-bit arches.
-TERMUX_PKG_BLACKLISTED_ARCHES="arm,i686"
 
 termux_step_host_build () {
        termux_setup_cmake
diff --git a/packages/mariadb/m_ctype.h.patch b/packages/mariadb/m_ctype.h.patch
deleted file mode 100644 (file)
index 12094e7..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-bionic snprintf is defined as a macro, so this saves chaos
---- ./include/m_ctype.h        2017-01-18 01:08:20.000000000 +0530
-+++ ../m_ctype.h       2017-02-01 09:14:37.958658913 +0530
-@@ -398,7 +398,9 @@
-   const char *m_cannot_convert_error_pos;
- } MY_STRCONV_STATUS;
--
-+#ifdef __ANDROID__
-+#undef snprintf
-+#endif
- /* See strings/CHARSET_INFO.txt about information on this structure  */
- struct my_charset_handler_st
- {