public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Lars Wendler" <polynomial-c@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-editors/nano/files/, app-editors/nano/
Date: Thu, 27 Sep 2018 11:28:42 +0000 (UTC)	[thread overview]
Message-ID: <1538047713.d150c22c354afa61f9777c65f075e58e8d6780b4.polynomial-c@gentoo> (raw)

commit:     d150c22c354afa61f9777c65f075e58e8d6780b4
Author:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Thu Sep 27 11:28:33 2018 +0000
Commit:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Thu Sep 27 11:28:33 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d150c22c

app-editors/nano: Added USE="minimal" build fix.

Closes: https://bugs.gentoo.org/667052
Package-Manager: Portage-2.3.50, Repoman-2.3.11

 .../files/nano-3.1-enable_tiny_build_fix.patch     | 29 ++++++++++++++++++++++
 app-editors/nano/nano-3.1.ebuild                   |  6 ++++-
 2 files changed, 34 insertions(+), 1 deletion(-)

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
index 00000000000..58fe1982be9
--- /dev/null
+++ b/app-editors/nano/files/nano-3.1-enable_tiny_build_fix.patch
@@ -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
+

diff --git a/app-editors/nano/nano-3.1.ebuild b/app-editors/nano/nano-3.1.ebuild
index 7f0d1d7bfbd..a9712a1c464 100644
--- a/app-editors/nano/nano-3.1.ebuild
+++ b/app-editors/nano/nano-3.1.ebuild
@@ -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


             reply	other threads:[~2018-09-27 11:28 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-27 11:28 Lars Wendler [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-08-03  2:14 [gentoo-commits] repo/gentoo:master commit in: app-editors/nano/files/, app-editors/nano/ Sam James
2021-12-18 14:14 Lars Wendler
2021-02-24 12:22 Lars Wendler
2019-04-25  8:11 Lars Wendler
2018-10-09 11:50 Lars Wendler
2017-06-25 17:31 Lars Wendler
2017-01-19  4:55 Mike Frysinger
2016-12-29 18:47 Mike Frysinger
2016-02-12 17:39 Mike Frysinger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1538047713.d150c22c354afa61f9777c65f075e58e8d6780b4.polynomial-c@gentoo \
    --to=polynomial-c@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox