app-editors/nano: Added USE="minimal" build fix.
authorLars Wendler <polynomial-c@gentoo.org>
Thu, 27 Sep 2018 11:28:33 +0000 (13:28 +0200)
committerLars Wendler <polynomial-c@gentoo.org>
Thu, 27 Sep 2018 11:28:33 +0000 (13:28 +0200)
Closes: https://bugs.gentoo.org/667052
Package-Manager: Portage-2.3.50, Repoman-2.3.11

app-editors/nano/files/nano-3.1-enable_tiny_build_fix.patch [new file with mode: 0644]
app-editors/nano/nano-3.1.ebuild

diff --git a/app-editors/nano/files/nano-3.1-enable_tiny_build_fix.patch b/app-editors/nano/files/nano-3.1-enable_tiny_build_fix.patch
new file mode 100644 (file)
index 0000000..58fe198
--- /dev/null
@@ -0,0 +1,29 @@
+From 368ec04870a366b19f1c5801a6868786547968b0 Mon Sep 17 00:00:00 2001
+From: Benno Schulenberg <bensberg@telfort.nl>
+Date: Wed, 19 Sep 2018 20:36:39 +0200
+Subject: build: fix compilation again when configured with --enable-tiny
+
+Reported-by: Jordi Mallach <jordi@mallach.net>
+---
+ src/nano.c | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/src/nano.c b/src/nano.c
+index ebb1f11..01f92a1 100644
+--- a/src/nano.c
++++ b/src/nano.c
+@@ -1756,7 +1756,10 @@ int do_input(bool allow_funcs)
+       if (shortcut == NULL)
+               pletion_line = NULL;
+       else {
+-              if (ISSET(VIEW_MODE) && shortcut->func != do_toggle_void &&
++              if (ISSET(VIEW_MODE) &&
++#ifndef NANO_TINY
++                                                              shortcut->func != do_toggle_void &&
++#endif
+                                                               !okay_for_view(shortcut)) {
+                       print_view_warning();
+                       return ERR;
+-- 
+cgit v1.0-41-gc330
+
index 7f0d1d7bfbdcb8d97f8b865b1f1bbc054dccee47..a9712a1c464cfd6426f569939bc55f859c170569 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -31,6 +31,10 @@ DEPEND="${RDEPEND}
        virtual/pkgconfig
        static? ( ${LIB_DEPEND} )"
 
+PATCHES=(
+       "${FILESDIR}/${P}-enable_tiny_build_fix.patch"
+)
+
 src_prepare() {
        default
        if [[ ${PV} == "9999" ]] ; then