chiark / gitweb /
ndk-patches: Fix malformed <utmp.h> patch
authorFredrik Fornwall <fredrik@fornwall.net>
Mon, 10 Jul 2017 07:52:50 +0000 (09:52 +0200)
committerFredrik Fornwall <fredrik@fornwall.net>
Mon, 10 Jul 2017 07:52:50 +0000 (09:52 +0200)
build-package.sh
ndk-patches/utmp.h.patch

index f160ab9267af7726a84b174c13ae9fc13ca864b0..2dd20085af2b45a4eb412c7c1f72bfa94fd930a5 100755 (executable)
@@ -446,7 +446,7 @@ termux_step_setup_toolchain() {
        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+="-v7"
+       TERMUX_STANDALONE_TOOLCHAIN+="-v8"
 
        # We put this after system PATH to avoid picking up toolchain stripped python
        export PATH=$PATH:$TERMUX_STANDALONE_TOOLCHAIN/bin
index 60e6ab3741231eff422950765c61dfde3a430dc6..3c335e724a4a96b6097446b5df4bdc922b0ae882 100644 (file)
@@ -2,17 +2,17 @@ In Termux login_tty() is implemented in the libutil package to support android-2
 
 diff -u -r /home/fornwall/lib/android-ndk/sysroot/usr/include/utmp.h ./usr/include/utmp.h
 --- /home/fornwall/lib/android-ndk/sysroot/usr/include/utmp.h  2017-06-20 17:41:56.000000000 +0200
-+++ ./usr/include/utmp.h       2017-07-02 11:42:29.724986159 +0200
-@@ -102,11 +102,6 @@
++++ ./usr/include/utmp.h       2017-07-10 09:47:42.422659110 +0200
+@@ -101,11 +101,7 @@
+ struct utmp* getutent(void);
  void endutent(void);
  
+-
 -#if __ANDROID_API__ >= 23
 -int login_tty(int) __INTRODUCED_IN(23);
 -#endif /* __ANDROID_API__ >= 23 */
 -
--
--__END_DECLS
 +int login_tty(int);
  
- #endif /* _UTMP_H_ */
+ __END_DECLS