Commit Graph

55 Commits

Author SHA1 Message Date
xtkoba 7c228b846e
ndk-patches: Add IFTODT and DTTOIF to dirent.h (#8041)
ndk-patches: Add IFTODT and DTTOIF to dirent.h
2021-11-23 10:12:17 +01:00
Henrik Grimler a84e862365 ndk-patches: remove TCAFLUSH case from bits/termios_inlines.h
To fix error:

In file included from /termux-build/_cache/android-r23-api-24-v0/bin/../sysroot/usr/include/termios.h:154:
In file included from /termux-build/_cache/android-r23-api-24-v0/bin/../sysroot/usr/include/android/legacy_termios_inlines.h:43:
/termux-build/_cache/android-r23-api-24-v0/bin/../sysroot/usr/include/bits/termios_inlines.h:120:10: error: duplicate case value '0'
    case TCSAFLUSH: cmd = TCSETSF; break;
         ^
/termux-build/_cache/android-r23-api-24-v0/bin/../sysroot/usr/include/asm-generic/termbits.h:194:19: note: expanded from macro 'TCSAFLUSH'
                  ^
/termux-build/_cache/android-r23-api-24-v0/bin/../sysroot/usr/include/bits/termios_inlines.h:118:10: note: previous case defined here
    case TCSANOW: cmd = TCSETS; break;
         ^
/termux-build/_cache/android-r23-api-24-v0/bin/../sysroot/usr/include/asm-generic/termbits.h:191:17: note: expanded from macro 'TCSANOW'
                ^
2021-10-22 23:05:45 +02:00
Henrik Grimler a465f14c90 Update to use android-ndk r23 2021-10-22 23:05:45 +02:00
Henrik Grimler 54975d7db5 ndk-headers: fix paths in utmp.h
And bump toolchain and ndk-sysroot. Also update patch offsets while we
are at it.
2021-05-07 08:28:05 +02:00
Leonid Pliushch 9e65428d02 fix ndk-patches/paths.h.patch 2020-07-11 00:51:47 +03:00
Leonid Pliushch c9d9116d17 ndk-patches: fix _PATH_DEFPATH 2020-07-11 00:24:56 +03:00
Henrik Grimler 3e4b2343cd ndk-patches: fix paths.h patch 2020-07-09 18:23:33 +02:00
its-pointless ab9407425b forgot paths 2020-07-09 13:51:35 +02:00
its-pointless 43f5eb9281 r21 cross over in progress 2020-07-09 13:51:35 +02:00
Leonid Pliushch f853ea3db0 ndk-patches: remove /bin/applets from PATH
We no longer rely on Busybox applets.
2020-07-09 00:56:42 +03:00
Leonid Pliushch 50e8678156 ndk-patches: do not hide _FILE_OFFSET_BITS=64 2019-12-29 20:56:22 +02:00
Leonid Pliushch 978358cfa3 Merge pull request #4639 from buttaface/headers
ndk-patches: use upstream ifaddrs.h and remove old syslog.h polyfills
2019-12-29 20:35:46 +02:00
Leonid Pliushch 520dbc6847 ndk-patches: avoid free()'ing pointer which is still in use 2019-12-13 21:50:50 +02:00
Butta 60e9d47df0 ndk-patches: use upstream ifaddrs.h and remove old syslog.h polyfills 2019-12-08 19:57:10 +05:30
Fredrik Fornwall 937b78d0c4 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:34:04 +02:00
Leonid Pliushch ffbacf92a0 Revert "NDK fixes for GCC and C++ (#4139)"
This reverts commit 3da018dde122ae90ff82e9733c096e3c75331fe1.

I can't accept this NDK headers modification due since it introduces
issues for certain programs for unknown reason.
2019-09-08 20:54:08 +03:00
easyaspi314 (Devin) fd0eaee91d NDK fixes for GCC and C++ (#4139) 2019-09-06 01:21:03 +03:00
its-pointless 5eada22838 ndk-20 update 2019-06-19 20:26:31 +03:00
Leonid Pliushch 9dda444a87 new package: libiconv 2019-05-05 21:29:36 +02:00
Leonid Pliushch 57b77ff692 update ndk-patches to prevent creation of *.orig files in ./sysroot/usr/include 2019-03-20 15:37:12 +02:00
Fredrik Fornwall 45237e957e Remove NDK patch no longer necessary 2019-03-20 00:26:55 +01:00
Fredrik Fornwall 65a89c0780 Remove NDK patch no longer necessary 2019-03-20 00:26:18 +01:00
Fredrik Fornwall e520dfbe12 Initial changes for NDK r19 support 2019-02-24 20:39:35 +02:00
Leonid Pliushch 11d73631d2 ndk-patches: fix stdio.h and ifaddrs.h 2019-02-16 22:10:32 +02:00
Fredrik Fornwall c6c58ab326 Fix langinfo.h mixup 2019-01-25 02:59:32 +01:00
Fredrik Fornwall 873f60cbb5 iconv.h from libandroid-support to ndk-patches 2019-01-25 02:57:27 +01:00
Fredrik Fornwall 933390b075 Fix langinfo.h 2019-01-25 02:11:03 +01:00
Fredrik Fornwall 3ab4c8f8e0 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 25f0145357 Patch TCSAFLUSH to be TCSANOW 2019-01-16 21:57:15 +01:00
Leonid Pliushch f86640f821 ndk-patches: implement getpass() 2018-09-11 00:55:00 +02:00
Vishal Biswas 160d3aeb06 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 43850b81ccf60033c25cb13dfd326c1b0528773a.
Already applied on base branch.

* libllvm: use default arm triple
2018-05-27 14:55:20 +02:00
Fredrik Fornwall 235a574d24 Revert "Make cmath patch part of the toolchain (#1149)"
This reverts commit 775ea81181bd15905613f1fd7124d0a1f95a5b69.
2018-01-14 22:17:12 +01:00
Fredrik Fornwall 05a0b20d98 Make cmath patch part of the toolchain (#1149) 2018-01-14 21:50:44 +01:00
Fredrik Fornwall 9c4da6ce9b Drop ndk-patches/route.h.patch 2017-12-07 03:35:06 +01:00
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