Commit Graph

21 Commits

Author SHA1 Message Date
Fredrik Fornwall
f60f703d55 Drop ndk-patches/sysexits.h (see #1907) 2017-12-05 23:13:26 +01:00
Fredrik Fornwall
b0551fbcce Drop ndk-patches/termios.h.patch (see #1907) 2017-12-05 23:10:44 +01:00
Fredrik Fornwall
634fa70344 Drop ndk-patches/syscall.h.patch (see #1907) 2017-12-05 23:09:24 +01:00
Fredrik Fornwall
1c69b77fe8 Drop no longer needed patch to <sys/user.h> 2017-12-05 18:31:26 +01:00
Fredrik Fornwall
42f03ac881 Remove <spawn.h> completely
Fixes building fish.
2017-11-15 19:35:34 +01:00
Fredrik Fornwall
0c0af59332 Update NDK used to r16
Run scripts/update-docker.sh to update the docker image.
2017-11-15 16:48:35 +01:00
Fredrik Fornwall
c2e4ba89c4 ndk-patches: Fix pwd.h patch 2017-09-17 20:51:35 +02:00
Fredrik Fornwall
b849828d5c ndk-patches: Use bin/login in getpwd() 2017-09-17 15:55:41 +02:00
Fredrik Fornwall
eaa7b49107 Make libintl.h provide inline stubs
Previously libandroid-support contained inline stubs for libintl.h
functions (gettext(), dgettext() and friends).

We now provide inline versions of them in libintl.h directly so
libandroid-support is no longer necessary to get them.
2017-08-17 00:34:44 +02:00
Fredrik Fornwall
8aa86e32b4 Update from NDK version used from r15b to r15c
The docker image has been updated - run scripts/update-docker.sh
2017-08-07 22:53:43 +02:00
its-pointless
7874ff5b5c fixes building cstddef include for g++ 2017-07-16 14:30:46 +02:00
Fredrik Fornwall
a328a50407 ndk-patches: Patch to 'define MB_CUR_MAX 4'
The platform headers has the following macro:

  #define MB_CUR_MAX __ctype_get_mb_cur_max()

where __ctype_get_mb_cur_max() tries to handle UTF-8 encodings.

However, even in Android 7.0 setlocale(LC_ALL, ""), which many
programs do at startup, doesn't work in that it sets the locale
as non-utf8:

  https://android.googlesource.com/platform/bionic/+/nougat-release/libc/bionic/locale.cpp#139

So we just always consider us being in an utf-8 locale.

Also rebuild coreutils to fix #1136.
2017-07-16 12:36:06 +02:00
Fredrik Fornwall
b117bf39f1 ndk-patches: Fix malformed <utmp.h> patch 2017-07-10 09:52:50 +02:00
Fredrik Fornwall
5e29b6bbb4 Make it possible to opt in to _FILE_OFFSET_BITS=64 2017-07-10 00:02:22 +02:00
Fredrik Fornwall
4a4d5b68c3 Avoid ndk patch used only by elfutils 2017-07-09 23:35:21 +02:00
Fredrik Fornwall
993268c308 Drop -D_FILE_OFFSET_BITS=64 support for now
32-bit android uses 32-bit off_t by default. When building with
-D_FILE_OFFSET_BITS=64 with unified headers off_t are promoted
to 64-bit, but there are bugs in the toolchain and spotty support
for it in the platform (not all functions are available until
android-24, and the platform zlib is compiled with 32-bit off_t).

Also, unless every library&program is rebuilt with 64-bit off_t,
including user-built ones, we risk a mismatch between programs and
libraries which can cause serious (but sometimes subtle) runtime
failures.

As -D_FILE_OFFSET_BITS=64 is not that important for most users
(with mariadb requiring it as an exception), we drop the support
for now by patching it away in <sys/cdefs.h>.
2017-07-07 03:52:46 +02:00
Fredrik Fornwall
17e9bc3344 ndk-patches: Use @TERMUX_PREFIX@ 2017-07-07 03:29:49 +02:00
Fredrik Fornwall
4a5fd7241c Fix incorrect struct __sFILE
The __sFILE struct cannot change size when _FILE_OFFSET_BITS=64
is set as it is an API into libc.
2017-07-03 01:27:32 +02:00
Fredrik Fornwall
6f8d07fa94 Remove pty.h from libutil-dev
Instead let ndk-sysroot provide it.
2017-07-02 11:56:40 +02:00
Fredrik Fornwall
ebb3f0f296 Patch stdlib.h to include stdint.h
Fixes graphviz build.
2017-07-01 01:54:44 +02:00
Fredrik Fornwall
ff91813fdb Switch over to building with unified headers 2017-07-01 00:04:02 +02:00