summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2021-10-16 21:39:10 +0200
committerUlrich Müller <ulm@gentoo.org>2021-10-16 21:39:50 +0200
commitce7bd659f16863e234001244e3904c145644e49f (patch)
tree981ac587b4d3c2bee632fc22e0ce0a0cb8705bc1 /app-editors/fe
parentmedia-sound/xmms2: Fix Pod-Parser dependency (diff)
downloadgentoo-ce7bd659f16863e234001244e3904c145644e49f.tar.gz
gentoo-ce7bd659f16863e234001244e3904c145644e49f.tar.bz2
gentoo-ce7bd659f16863e234001244e3904c145644e49f.zip
app-editors/fe: Fix segmentation fault in ncurses lib
Bug: https://bugs.gentoo.org/818415 Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'app-editors/fe')
-rw-r--r--app-editors/fe/fe-2.0-r1.ebuild55
-rw-r--r--app-editors/fe/files/fe-2.0-ncurses.patch32
2 files changed, 87 insertions, 0 deletions
diff --git a/app-editors/fe/fe-2.0-r1.ebuild b/app-editors/fe/fe-2.0-r1.ebuild
new file mode 100644
index 000000000000..45263fd5ce8f
--- /dev/null
+++ b/app-editors/fe/fe-2.0-r1.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools toolchain-funcs
+
+DESCRIPTION="A small and easy to use folding editor"
+HOMEPAGE="http://www.moria.de/~michael/fe/"
+SRC_URI="http://www.moria.de/~michael/fe/${P}.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="sendmail"
+
+RDEPEND="sys-libs/ncurses:0=
+ sendmail? ( virtual/mta )"
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.8-makefile.patch
+ "${FILESDIR}"/${P}-ar.patch
+ "${FILESDIR}"/${P}-ncurses.patch
+)
+
+src_prepare() {
+ mv configure.{in,ac} || die
+ default
+ AT_NOEAUTOHEADER=yes eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(use_enable sendmail) \
+ LIBS="$("$(tc-getPKG_CONFIG)" --libs ncurses)"
+}
+
+src_compile() {
+ emake AR="$(tc-getAR)"
+}
+
+src_install() {
+ emake \
+ prefix="${D}"/usr \
+ datadir="${D}"/usr/share \
+ datarootdir="${D}"/usr/share \
+ MANDIR="${D}"/usr/share/man \
+ install
+
+ dodoc NEWS README
+ docinto html
+ dodoc fe.html
+}
diff --git a/app-editors/fe/files/fe-2.0-ncurses.patch b/app-editors/fe/files/fe-2.0-ncurses.patch
new file mode 100644
index 000000000000..8eef06db6454
--- /dev/null
+++ b/app-editors/fe/files/fe-2.0-ncurses.patch
@@ -0,0 +1,32 @@
+https://bugs.gentoo.org/818415
+
+--- fe-2.0/configure.ac
++++ fe-2.0/configure.ac
+@@ -55,19 +55,6 @@
+ AC_CHECK_FUNCS(strdup)
+ AC_CHECK_FUNCS(strndup)
+
+-AC_CHECK_LIB(ncursesw, get_wch, [have_utf8_ncurses=yes; LIBS="-lncursesw $LIBS"])
+-if test "$have_utf8_ncurses" = yes
+-then
+- AC_DEFINE(HAVE_UTF8_NCURSES)
+- AC_CHECK_HEADERS(ncurses/ncurses.h,have_ncurses_ncurses_h=yes)
+- if test "$have_ncurses_ncurses_h" != yes
+- then
+- AC_CHECK_HEADERS(ncurses.h,have_ncurses_h=yes)
+- fi
+-fi
+-
+-if test "$have_utf8_ncurses" != yes
+-then
+ AC_CHECK_LIB(ncurses, get_wch, [have_utf8_ncurses=yes; LIBS="-lncurses $LIBS"])
+ if test "$have_utf8_ncurses" = yes
+ then
+@@ -78,7 +65,6 @@
+ AC_CHECK_HEADERS(ncurses.h,have_ncurses_h=yes)
+ fi
+ fi
+-fi
+
+ if test "$have_utf8_ncurses" != yes
+ then