Commit Graph

62 Commits

Author SHA1 Message Date
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 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