Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-editors/nano/files/, app-editors/nano/
Date: Thu, 27 Sep 2018 11:28:48
Message-Id: 1538047713.d150c22c354afa61f9777c65f075e58e8d6780b4.polynomial-c@gentoo
1 commit: d150c22c354afa61f9777c65f075e58e8d6780b4
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 27 11:28:33 2018 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 27 11:28:33 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d150c22c
7
8 app-editors/nano: Added USE="minimal" build fix.
9
10 Closes: https://bugs.gentoo.org/667052
11 Package-Manager: Portage-2.3.50, Repoman-2.3.11
12
13 .../files/nano-3.1-enable_tiny_build_fix.patch | 29 ++++++++++++++++++++++
14 app-editors/nano/nano-3.1.ebuild | 6 ++++-
15 2 files changed, 34 insertions(+), 1 deletion(-)
16
17 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
18 new file mode 100644
19 index 00000000000..58fe1982be9
20 --- /dev/null
21 +++ b/app-editors/nano/files/nano-3.1-enable_tiny_build_fix.patch
22 @@ -0,0 +1,29 @@
23 +From 368ec04870a366b19f1c5801a6868786547968b0 Mon Sep 17 00:00:00 2001
24 +From: Benno Schulenberg <bensberg@×××××××.nl>
25 +Date: Wed, 19 Sep 2018 20:36:39 +0200
26 +Subject: build: fix compilation again when configured with --enable-tiny
27 +
28 +Reported-by: Jordi Mallach <jordi@×××××××.net>
29 +---
30 + src/nano.c | 5 ++++-
31 + 1 file changed, 4 insertions(+), 1 deletion(-)
32 +
33 +diff --git a/src/nano.c b/src/nano.c
34 +index ebb1f11..01f92a1 100644
35 +--- a/src/nano.c
36 ++++ b/src/nano.c
37 +@@ -1756,7 +1756,10 @@ int do_input(bool allow_funcs)
38 + if (shortcut == NULL)
39 + pletion_line = NULL;
40 + else {
41 +- if (ISSET(VIEW_MODE) && shortcut->func != do_toggle_void &&
42 ++ if (ISSET(VIEW_MODE) &&
43 ++#ifndef NANO_TINY
44 ++ shortcut->func != do_toggle_void &&
45 ++#endif
46 + !okay_for_view(shortcut)) {
47 + print_view_warning();
48 + return ERR;
49 +--
50 +cgit v1.0-41-gc330
51 +
52
53 diff --git a/app-editors/nano/nano-3.1.ebuild b/app-editors/nano/nano-3.1.ebuild
54 index 7f0d1d7bfbd..a9712a1c464 100644
55 --- a/app-editors/nano/nano-3.1.ebuild
56 +++ b/app-editors/nano/nano-3.1.ebuild
57 @@ -1,4 +1,4 @@
58 -# Copyright 1999-2018 Gentoo Foundation
59 +# Copyright 1999-2018 Gentoo Authors
60 # Distributed under the terms of the GNU General Public License v2
61
62 EAPI=7
63 @@ -31,6 +31,10 @@ DEPEND="${RDEPEND}
64 virtual/pkgconfig
65 static? ( ${LIB_DEPEND} )"
66
67 +PATCHES=(
68 + "${FILESDIR}/${P}-enable_tiny_build_fix.patch"
69 +)
70 +
71 src_prepare() {
72 default
73 if [[ ${PV} == "9999" ]] ; then