From d8664e3d89869a451b13ba0354bccd7dcf9fda6c Mon Sep 17 00:00:00 2001 From: its-pointless Date: Tue, 13 Mar 2018 10:28:02 +1100 Subject: [PATCH] compile using clang --- packages/indent/build.sh | 7 ++++++- packages/indent/lexi.c.patch | 20 ++++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 packages/indent/lexi.c.patch diff --git a/packages/indent/build.sh b/packages/indent/build.sh index 70acba57c..25288d84a 100644 --- a/packages/indent/build.sh +++ b/packages/indent/build.sh @@ -6,4 +6,9 @@ TERMUX_PKG_SHA256=aaff60ce4d255efb985f0eb78cca4d1ad766c6e051666073050656b6753a08 TERMUX_PKG_DEPENDS="libandroid-support" TERMUX_PKG_BUILD_IN_SRC=yes TERMUX_PKG_HOSTBUILD=true -TERMUX_PKG_CLANG=no +termux_step_post_extract_package() { + # this should detect if we are running inside termux docker image + if [ $HOME = "/home/builder" ] && [ "grep docker /proc/1/cgroup > /dev/null" ]; then + sudo apt install texi2html + fi +} diff --git a/packages/indent/lexi.c.patch b/packages/indent/lexi.c.patch new file mode 100644 index 000000000..f30cf0d9b --- /dev/null +++ b/packages/indent/lexi.c.patch @@ -0,0 +1,20 @@ +--- ../cache/indent-2.2.11/src/lexi.c 2009-11-11 19:36:32.000000000 +0000 ++++ ./src/lexi.c 2018-03-12 23:14:07.881637140 +0000 +@@ -199,7 +199,7 @@ + + /* Include code generated by gperf */ + #ifdef __GNUC__ +-__inline ++static __inline + #endif + templ_ty *is_reserved (const char *str, unsigned int len); + +@@ -213,7 +213,7 @@ + #undef MAX_WORD_LENGTH + + #ifdef __GNUC__ +-__inline ++static __inline + #endif + templ_ty *is_reserved_cc (register const char *str, register unsigned int len); +