X-Git-Url: https://git.distorted.org.uk/~mdw/termux-packages/blobdiff_plain/4851726f9d49528afff5a443d5d13db180068959..4a624be31ab3c0ee329d68a29637dcda91f0ea4a:/build-package.sh diff --git a/build-package.sh b/build-package.sh index 5cd4fdc3..aa0726be 100755 --- a/build-package.sh +++ b/build-package.sh @@ -254,8 +254,8 @@ termux_step_setup_variables() { : "${TERMUX_ANDROID_HOME:="/data/data/com.termux/files/home"}" : "${TERMUX_DEBUG:=""}" : "${TERMUX_PKG_API_LEVEL:="21"}" - : "${TERMUX_ANDROID_BUILD_TOOLS_VERSION:="26.0.1"}" - : "${TERMUX_NDK_VERSION:="15.2"}" + : "${TERMUX_ANDROID_BUILD_TOOLS_VERSION:="27.0.1"}" + : "${TERMUX_NDK_VERSION:="16"}" if [ "x86_64" = "$TERMUX_ARCH" ] || [ "aarch64" = "$TERMUX_ARCH" ]; then TERMUX_ARCH_BITS=64 @@ -364,7 +364,7 @@ termux_step_start_build() { TERMUX_STANDALONE_TOOLCHAIN="$TERMUX_TOPDIR/_lib/${TERMUX_NDK_VERSION}-${TERMUX_ARCH}-${TERMUX_PKG_API_LEVEL}" # Bump the below version if a change is made in toolchain setup to ensure # that everyone gets an updated toolchain: - TERMUX_STANDALONE_TOOLCHAIN+="-v14" + TERMUX_STANDALONE_TOOLCHAIN+="-v2" if [ -n "${TERMUX_PKG_BLACKLISTED_ARCHES:=""}" ] && [ "$TERMUX_PKG_BLACKLISTED_ARCHES" != "${TERMUX_PKG_BLACKLISTED_ARCHES/$TERMUX_ARCH/}" ]; then echo "Skipping building $TERMUX_PKG_NAME for arch $TERMUX_ARCH" @@ -668,8 +668,11 @@ termux_step_setup_toolchain() { cp "$TERMUX_SCRIPTDIR"/ndk-patches/{elf.h,sysexits.h,ifaddrs.h,libintl.h} usr/include # Remove from the NDK in favour of that from the libandroid-shmem. - # Also remove as it doesn't work for non-root. - rm usr/include/sys/{shm.h,sem.h} + # Remove as it doesn't work for non-root. + # Remove as we currently provide it from libandroid-support. + # Remove as we currently provide it from libandroid-glob. + # Remove as it's only for future (later than android-27). + rm usr/include/sys/{shm.h,sem.h} usr/include/{iconv.h,glob.h,spawn.h} sed -i "s/define __ANDROID_API__ __ANDROID_API_FUTURE__/define __ANDROID_API__ $TERMUX_PKG_API_LEVEL/" \ usr/include/android/api-level.h