Commit Graph

70 Commits

Author SHA1 Message Date
Henrik Grimler fbc59da08d
ndk-patches: make futimes, lutimes and futimesat visible in sys/time.h
We now have libandroid-utimes which provides these functions, so update header to reflect this.

Normally the android libc only supports these functions for api level
>=26, but we support api level >= 24.

The futimesat function also takes an extra argument compared to bionic
one: int flags, due to that unar expects that type of futimesat
function. We can add another futimesat variant (without flags) when it
is needed.
2024-03-25 21:33:00 +01:00
Chongyun Lee ce4b0f87db
scripts(toolchain): update to ndk-r26b 2023-10-22 20:49:23 +02:00
Tee KOBAYASHI 9c2e9d9ca5 scripts: Bump NDK to r25c 2023-02-02 16:38:20 +05:30
Henrik Grimler 6e9a296e79
ndk-patches: remove stubs for getgrgid_r and getgrgid_r
These could have been removed when we dropped support for api-levels
below 24 (android-7).

Reported in termux/termux-packages#12974.
2022-11-09 23:27:14 +01:00
Henrik Grimler 54b2f89a01
ndk-patches: remove langinfo.h.patch
It is overwritten by the header we carry in ndk-patches/ in
termux_setup_toolchain_xx() anyways.
2022-11-09 23:27:11 +01:00
Chongyun Lee 268452c314 scripts: update to ndk r25b 2022-09-15 00:37:34 +08:00
Henrik Grimler d6ad4c50b5
scripts(toolchain): add possibility to install android NDK 25
Same ndk-patches and termux_step_setup_toolchain can be used as for
NDK 23c it seems.
2022-08-13 12:20:04 +02:00
Henrik Grimler e7f4ad8b6d
scripts: rename termux_step_setup_toolchain to indicate NDK version
And keep ndk-patches in 23c/ subdirectory.  Run
termux_step_setup_toolchain_23c only if TERMUX_NDK_VERSION equals 23c.

This is a step towards having the possibility to use different NDK
versions.  Using a different NDK version than the one termux
officially supports should *really* not be done except for
testing/debug/development reasons, or if it is strictly necessary to
be able to compile a program (for example for packages that need a
fortran compiler, which at the moment is only supported with old
gcc-using NDKs).
2022-08-13 12:19:59 +02:00
Tee KOBAYASHI 2a1524d67c ndk-patches: Don't declare `sem_{open,close,unlink}`
but instead declare `libandroid_sem_{open,close,unlink}` defined in
`libandroid-posix-semaphore`.
2022-03-26 00:02:59 +09:00
Henrik Grimler 3879280345
ndk-patches: remove wait3 patch from sys/wait.h
It was added specifically for busybox, and busybox > 1.33 now
implements its own workaround, so should hopefully be no need for this
patch anymore.
2022-03-01 21:45:47 +01:00
Yaksh Bariya a4a0fa97af glib: don't use hasmntopt 2021-12-31 11:59:00 +02:00
Yaksh Bariya fda92be338 glib: update to 1.70.1 2021-12-12 10:07:41 +05:30
Lucinda May Phipps 344d016a06
fix path in ndk-patches/linux-fcntl.h.patch 2021-11-29 08:19:22 +00:00
Lucinda May Phipps 0bf4b5ed4b
Rename linux-fcntl.h to linux-fcntl.h.patch
oops
2021-11-29 08:08:27 +00:00
Lucy Phipps 369d15f4ef
ndk-patches: disable AT_EACCESS
https://android.googlesource.com/platform/bionic.git/+/refs/tags/ndk-r23b/libc/bionic/faccessat.cpp#50
2021-11-29 07:58:58 +00:00
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 3da018dde1.

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 43850b81cc.
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 775ea81181.
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