From 6120715ae09fb228e52715cffc0a6d68e0552211 Mon Sep 17 00:00:00 2001 From: Iain Nicol Date: Sat, 14 Nov 2015 20:17:03 +0000 Subject: [PATCH] zile: add disabled package My hope was to use zile given that Emacs is segfaulting. The good news is that zile builds. The bad news is that zile also segfaults. According to gdb, the crash is somewhere in GC_realloc. --- disabled-packages/zile/build.sh | 13 +++++++++++++ disabled-packages/zile/help2man.patch | 19 +++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100755 disabled-packages/zile/build.sh create mode 100644 disabled-packages/zile/help2man.patch diff --git a/disabled-packages/zile/build.sh b/disabled-packages/zile/build.sh new file mode 100755 index 000000000..f253564b5 --- /dev/null +++ b/disabled-packages/zile/build.sh @@ -0,0 +1,13 @@ +TERMUX_PKG_HOMEPAGE=https://www.gnu.org/software/zile/ +TERMUX_PKG_DESCRIPTION="Lightweight clone of the Emacs text editor" +TERMUX_PKG_VERSION=2.4.11 +TERMUX_PKG_SRCURL=https://ftp.gnu.org/gnu/zile/zile-${TERMUX_PKG_VERSION}.tar.gz +TERMUX_PKG_DEPENDS="libgc, ncurses" + +# Host build for man pages generated by help2man, see patch: +TERMUX_PKG_HOSTBUILD=yes +TERMUX_PKG_BUILD_IN_SRC=yes +termux_step_pre_configure () { + # Required because patch modifies a Makefile.am. + autoreconf +} diff --git a/disabled-packages/zile/help2man.patch b/disabled-packages/zile/help2man.patch new file mode 100644 index 000000000..e9d78fa3f --- /dev/null +++ b/disabled-packages/zile/help2man.patch @@ -0,0 +1,19 @@ +Use man pages generated by help2man in the host build. + +diff -u -r ../zile-2.4.11/doc/Makefile.am ./doc/Makefile.am +--- ../zile-2.4.11/doc/Makefile.am 2014-02-24 21:42:16.000000000 +0000 ++++ ./doc/Makefile.am 2015-11-14 19:40:13.163834200 +0000 +@@ -27,11 +27,8 @@ + EXTRA_DIST += doc/man-extras doc/zile.1.in + man_MANS = doc/zile.1 + +-doc/zile.1: $(srcdir)/doc/zile.1.in doc/Makefile.am config.status +- @test -d doc || mkdir doc +- rm -f $@ $@.tmp +- $(edit) $(abs_srcdir)/doc/zile.1.in >$@.tmp +- mv $@.tmp $@ ++doc/zile.1: ++ cp $(top_srcdir)/../host-build/$@ $@ + + $(srcdir)/doc/zile.1.in: doc/man-extras build-aux/zile-help2man-wrapper configure.ac $(builddir)/src/zile$(EXEEXT) + @test -d doc || mkdir doc