Commit Graph

37 Commits

Author SHA1 Message Date
Fredrik Fornwall 1827b4e7a4 Define __TERMUX__ and __TERMUX_PREFIX__
By defining __TERMUX__ and __TERMUX_PREFIX__ in <sys/cdefs.h> (which is
basically always included) one can more easily target Termux
specifically, both when cross-compiling packages and when code is built
on-device.
2019-09-19 21:23:43 +02:00
Leonid Plyushch 3fe6041e6d fix pty.h.patch 2019-06-23 22:00:25 +02:00
its-pointless 092cfb4aa6 ndk-20 update 2019-06-23 22:00:25 +02:00
Leonid Plyushch edfed64946 new package: libiconv 2019-05-19 20:05:29 +02:00
Fredrik Fornwall b9c36e8a37 Initial changes for NDK r19 support 2019-02-24 20:39:35 +02:00
Leonid Plyushch d737eea837 ndk-patches: fix stdio.h and ifaddrs.h 2019-02-16 22:10:32 +02:00
Fredrik Fornwall cd11c90c22 Fix langinfo.h mixup 2019-01-25 02:59:32 +01:00
Fredrik Fornwall fbe5ab23a9 iconv.h from libandroid-support to ndk-patches 2019-01-25 02:57:27 +01:00
Fredrik Fornwall c7a830eff0 Fix langinfo.h 2019-01-25 02:11:03 +01:00
Fredrik Fornwall d486f2a083 Remove langinfo.h from libandroid-support
Instead provide langinfo.h with inline implemention of nl_langinfo()
as a system header.

This avoids linking in libandroid-support.so in some places, and
improves compatibility when building code on-device.
2019-01-25 01:58:51 +01:00
Fredrik Fornwall b5219f720c Patch TCSAFLUSH to be TCSANOW 2019-01-16 21:57:15 +01:00
Leonid Plyushch 5a8b31b3a6 ndk-patches: implement getpass() 2018-09-11 00:55:00 +02:00
Vishal Biswas efa8300be1 update ndk to 17 and switch some packages to clang build (#2415)
* 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 43850b81cc.
Already applied on base branch.

* libllvm: use default arm triple
2018-05-27 14:55:20 +02:00
Fredrik Fornwall 1d1a41b0ee Revert "Make cmath patch part of the toolchain (#1149)"
This reverts commit 775ea81181.
2018-01-14 22:17:12 +01:00
Fredrik Fornwall 775ea81181 Make cmath patch part of the toolchain (#1149) 2018-01-14 21:50:44 +01:00
Fredrik Fornwall 9406c22d17 Drop ndk-patches/route.h.patch 2017-12-07 03:35:06 +01:00
Fredrik Fornwall 7de09d9fc7 Drop ndk-patches/sysexits.h (see #1907) 2017-12-05 23:13:26 +01:00
Fredrik Fornwall db6b5bc1d5 Drop ndk-patches/termios.h.patch (see #1907) 2017-12-05 23:10:44 +01:00
Fredrik Fornwall 008c6a053b Drop ndk-patches/syscall.h.patch (see #1907) 2017-12-05 23:09:24 +01:00
Fredrik Fornwall e9fe13f883 Drop no longer needed patch to <sys/user.h> 2017-12-05 18:31:26 +01:00
Fredrik Fornwall 3c8a800092 Remove <spawn.h> completely
Fixes building fish.
2017-11-15 19:35:34 +01:00
Fredrik Fornwall 392b4b6ba5 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 b461954b5c ndk-patches: Fix pwd.h patch 2017-09-17 20:51:35 +02:00
Fredrik Fornwall 8ebeeaa3d4 ndk-patches: Use bin/login in getpwd() 2017-09-17 15:55:41 +02:00
Fredrik Fornwall 50ed335795 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 829516f1a4 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 aa1865fe9a fixes building cstddef include for g++ 2017-07-16 14:30:46 +02:00
Fredrik Fornwall 845a978a46 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 1f8481e363 ndk-patches: Fix malformed <utmp.h> patch 2017-07-10 09:52:50 +02:00
Fredrik Fornwall 4e9a8b45eb Make it possible to opt in to _FILE_OFFSET_BITS=64 2017-07-10 00:02:22 +02:00
Fredrik Fornwall f5404c4ae8 Avoid ndk patch used only by elfutils 2017-07-09 23:35:21 +02:00
Fredrik Fornwall 2173f7301d 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 fd11c5fbfa ndk-patches: Use @TERMUX_PREFIX@ 2017-07-07 03:29:49 +02:00
Fredrik Fornwall bda6056389 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 b833ad7a98 Remove pty.h from libutil-dev
Instead let ndk-sysroot provide it.
2017-07-02 11:56:40 +02:00
Fredrik Fornwall a09f7e7aba Patch stdlib.h to include stdint.h
Fixes graphviz build.
2017-07-01 01:54:44 +02:00
Fredrik Fornwall d3e5452e3e Switch over to building with unified headers 2017-07-01 00:04:02 +02:00