Browse Source
* update ndk to 17 * bump NDK version in setup-android script * libnl: fix for ndk r17 * libpixman: use clang's __builtin_shufflevector instead of __builtin_shuffle (#1) Required to make package build with ndk17. * fix as for arm * ndk17 still uses ld.bfd on aarch64 * use -fno-integrated-as for clang only * glib: remove patch unnecessary after ndk17 * torsocks: remove unneeded patch after ndk17 * subversion: fix build as clang++ now errors out for mismatched flags * libpulseaudio: fix build with ndk17 https://github.com/termux/termux-packages/pull/2415#issuecomment-388296684 * gst-plugins-good: disable video4linux2 ioctl is defined as __overloadable in ndk17 headers which conflicts with v4l2object's member ioctl * libzmq: disable Werror to build with ndk17 * ltrace: hardcode symbol not available in ndk17 * busybox: build with clang for all arches except arm * dropbear: build with clang instead of gcc * gnupg: build with clang instead of gcc * openssl: use clang for all arches except arm * picolisp: build with clang instead of gcc * valgrind: use clang on all arches except aarch64 * Revert "gst-plugins-good: disable video4linux2" This reverts commit 43850b81ccf60033c25cb13dfd326c1b0528773a. Already applied on base branch. * libllvm: use default arm tripleandroid-5
Vishal Biswas
7 years ago
committed by
Fredrik Fornwall
27 changed files with 76 additions and 3693 deletions
File diff suppressed because it is too large
@ -1,16 +1,16 @@ |
|||
diff -u -r /home/fornwall/lib/android-ndk/sysroot/usr/include/sys/cdefs.h ./usr/include/sys/cdefs.h
|
|||
--- /home/fornwall/lib/android-ndk/sysroot/usr/include/sys/cdefs.h 2017-07-21 11:04:10.000000000 +0200
|
|||
+++ ./usr/include/sys/cdefs.h 2017-08-07 22:50:14.093361547 +0200
|
|||
@@ -235,7 +235,11 @@
|
|||
#endif |
|||
|
|||
/* _FILE_OFFSET_BITS 64 support. */ |
|||
@@ -218,7 +218,11 @@
|
|||
* _FILE_OFFSET_BITS 64 support. |
|||
* See https://android.googlesource.com/platform/bionic/+/master/docs/32-bit-abi.md |
|||
*/ |
|||
-#if !defined(__LP64__) && defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64
|
|||
+/* Using _FILE_OFFSET_BITS=64 does not work well on Android
|
|||
+ * and can cause problems when mixing libraries, which is why
|
|||
+ * Termux hides away this unless TERMUX_EXPOSE_FILE_OFFSET64
|
|||
+ * is defined. */
|
|||
+#if !defined(__LP64__) && defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64 && defined(TERMUX_EXPOSE_FILE_OFFSET64)
|
|||
#define __USE_FILE_OFFSET64 1 |
|||
#define __RENAME_IF_FILE_OFFSET64(func) __RENAME(func) |
|||
#else |
|||
# define __USE_FILE_OFFSET64 1 |
|||
/* |
|||
* Note that __RENAME_IF_FILE_OFFSET64 is only valid if the off_t and off64_t |
|||
|
@ -1,22 +0,0 @@ |
|||
Mosh needs fd_set to be const*. And native code used by the nio4r gem (used by Rails 5) needs fd_mask. |
|||
|
|||
diff -u -r /home/fornwall/lib/android-ndk/sysroot/usr/include/sys/select.h ./usr/include/sys/select.h
|
|||
--- /home/fornwall/lib/android-ndk/sysroot/usr/include/sys/select.h 2017-06-07 01:07:52.000000000 +0200
|
|||
+++ ./usr/include/sys/select.h 2017-06-18 02:06:53.359009782 +0200
|
|||
@@ -38,6 +38,7 @@
|
|||
__BEGIN_DECLS |
|||
|
|||
#define FD_SETSIZE 1024 |
|||
+typedef unsigned long fd_mask;
|
|||
#define NFDBITS (8 * sizeof(unsigned long)) |
|||
#define __FDSET_LONGS (FD_SETSIZE/NFDBITS) |
|||
|
|||
@@ -62,7 +63,7 @@
|
|||
#if __ANDROID_API__ >= 21 |
|||
void __FD_CLR_chk(int, fd_set*, size_t) __INTRODUCED_IN(21); |
|||
void __FD_SET_chk(int, fd_set*, size_t) __INTRODUCED_IN(21); |
|||
-int __FD_ISSET_chk(int, fd_set*, size_t) __INTRODUCED_IN(21);
|
|||
+int __FD_ISSET_chk(int, fd_set const*, size_t) __INTRODUCED_IN(21);
|
|||
#endif /* __ANDROID_API__ >= 21 */ |
|||
|
|||
|
@ -1,27 +0,0 @@ |
|||
diff -u -r ../glib-2.56.0/gio/gsocket.c ./gio/gsocket.c
|
|||
--- ../glib-2.56.0/gio/gsocket.c 2018-01-08 21:34:19.000000000 +0000
|
|||
+++ ./gio/gsocket.c 2018-03-14 10:48:50.917328275 +0000
|
|||
@@ -2397,7 +2397,11 @@
|
|||
memset (&mc_req_src, 0, sizeof (mc_req_src)); |
|||
|
|||
/* By default use the default IPv4 multicast interface. */ |
|||
+#ifdef __ANDROID__
|
|||
+ mc_req_src.imr_interface = g_htonl (INADDR_ANY);
|
|||
+#else
|
|||
mc_req_src.imr_interface.s_addr = g_htonl (INADDR_ANY); |
|||
+#endif
|
|||
|
|||
if (iface) |
|||
{ |
|||
@@ -2442,7 +2446,11 @@
|
|||
} |
|||
|
|||
iface_addr = (struct sockaddr_in *) &ifr.ifr_addr; |
|||
+#ifdef __ANDROID__
|
|||
+ mc_req_src.imr_interface = iface_addr->sin_addr.s_addr;
|
|||
+#else
|
|||
mc_req_src.imr_interface.s_addr = iface_addr->sin_addr.s_addr; |
|||
+#endif
|
|||
#endif /* defined(G_OS_WIN32) && defined (HAVE_IF_NAMETOINDEX) */ |
|||
} |
|||
memcpy (&mc_req_src.imr_multiaddr, g_inet_address_to_bytes (group), |
@ -0,0 +1,10 @@ |
|||
--- ./include/netlink-private/netlink.h 2018-05-10 17:48:07.762060270 +0530
|
|||
+++ ./include/netlink-private/netlink.h 2018-05-10 17:48:57.891691514 +0530
|
|||
@@ -29,6 +29,7 @@
|
|||
#include <limits.h> |
|||
#include <search.h> |
|||
|
|||
+typedef uint32_t in_addr_t;
|
|||
#include <arpa/inet.h> |
|||
#include <netdb.h> |
|||
|
@ -0,0 +1,11 @@ |
|||
--- ../utils-prng.c.orig 2018-05-10 15:10:13.091304866 +0000
|
|||
+++ ./test/utils-prng.c 2018-05-10 15:11:09.662867182 +0000
|
|||
@@ -204,7 +204,7 @@
|
|||
{ |
|||
3, 2, 1, 0, 7, 6, 5, 4, 11, 10, 9, 8, 15, 14, 13, 12 |
|||
}; |
|||
- randdata.vb = __builtin_shuffle (randdata.vb, bswap_shufflemask);
|
|||
+ randdata.vb = __builtin_shufflevector (randdata.vb, bswap_shufflemask);
|
|||
store_rand_128_data (buf, &randdata, aligned); |
|||
buf += 16; |
|||
#else |
@ -1,12 +0,0 @@ |
|||
diff -u -r ../torsocks-87b075dd16c675606adee792ef1e22691c51475b/src/lib/torsocks.h ./src/lib/torsocks.h
|
|||
--- ../torsocks-87b075dd16c675606adee792ef1e22691c51475b/src/lib/torsocks.h 2016-12-22 16:45:31.000000000 +0100
|
|||
+++ ./src/lib/torsocks.h 2017-06-30 23:28:56.028584667 +0200
|
|||
@@ -314,7 +316,7 @@
|
|||
extern TSOCKS_LIBC_DECL(sendto, LIBC_SENDTO_RET_TYPE, LIBC_SENDTO_SIG) |
|||
TSOCKS_DECL(sendto, LIBC_SENDTO_RET_TYPE, LIBC_SENDTO_SIG) |
|||
#define LIBC_SENDTO_DECL \ |
|||
- LIBC_SENDTO_RET_TYPE LIBC_SENDTO_NAME(LIBC_SENDTO_SIG)
|
|||
+ LIBC_SENDTO_RET_TYPE LIBC_SENDTO_NAME(LIBC_SENDTO_SIG) __overloadable
|
|||
|
|||
/* socket(2) */ |
|||
extern TSOCKS_LIBC_DECL(socket, LIBC_SOCKET_RET_TYPE, LIBC_SOCKET_SIG) |
Loading…
Reference in new issue