1 |
commit: a85bdb42ac21f9adb2ed7b71c6257fbf8a2f60e6 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Sep 2 00:23:06 2017 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Sep 2 00:23:21 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a85bdb42 |
7 |
|
8 |
app-editors/nano: Fixed build with USE="minimal" (bug #629510). |
9 |
|
10 |
Package-Manager: Portage-2.3.8, Repoman-2.3.3 |
11 |
|
12 |
.../files/nano-2.8.7-minimal_compile_fix.patch | 38 ++++++++++++++++++++++ |
13 |
app-editors/nano/nano-2.8.7.ebuild | 6 +++- |
14 |
2 files changed, 43 insertions(+), 1 deletion(-) |
15 |
|
16 |
diff --git a/app-editors/nano/files/nano-2.8.7-minimal_compile_fix.patch b/app-editors/nano/files/nano-2.8.7-minimal_compile_fix.patch |
17 |
new file mode 100644 |
18 |
index 00000000000..ef8d7491016 |
19 |
--- /dev/null |
20 |
+++ b/app-editors/nano/files/nano-2.8.7-minimal_compile_fix.patch |
21 |
@@ -0,0 +1,38 @@ |
22 |
+From 28cfab7580c42a6d6c9c5d787ce736094fd51a0c Mon Sep 17 00:00:00 2001 |
23 |
+From: Benno Schulenberg <bensberg@×××××××.nl> |
24 |
+Date: Tue, 29 Aug 2017 19:28:44 +0200 |
25 |
+Subject: tweaks: fix compilation when configured with --enable-tiny |
26 |
+ |
27 |
+When moving the cursor to the top-left corner, it is not necessary |
28 |
+to compute leftedge because firstcolumn IS the relevant leftedge. |
29 |
+ |
30 |
+Reported-by: Jordi Mallach <jordi@××××××.org> |
31 |
+--- |
32 |
+ src/move.c | 4 ++-- |
33 |
+ 1 file changed, 2 insertions(+), 2 deletions(-) |
34 |
+ |
35 |
+diff --git a/src/move.c b/src/move.c |
36 |
+index d138356..ce276e4 100644 |
37 |
+--- a/src/move.c |
38 |
++++ b/src/move.c |
39 |
+@@ -121,7 +121,7 @@ void do_page_up(void) |
40 |
+ openfile->current = openfile->edittop; |
41 |
+ openfile->current_y = 0; |
42 |
+ |
43 |
+- leftedge = leftedge_for(openfile->firstcolumn, openfile->edittop); |
44 |
++ leftedge = openfile->firstcolumn; |
45 |
+ target_column = 0; |
46 |
+ } else |
47 |
+ get_edge_and_target(&leftedge, &target_column); |
48 |
+@@ -152,7 +152,7 @@ void do_page_down(void) |
49 |
+ openfile->current = openfile->edittop; |
50 |
+ openfile->current_y = 0; |
51 |
+ |
52 |
+- leftedge = leftedge_for(openfile->firstcolumn, openfile->edittop); |
53 |
++ leftedge = openfile->firstcolumn; |
54 |
+ target_column = 0; |
55 |
+ } else |
56 |
+ get_edge_and_target(&leftedge, &target_column); |
57 |
+-- |
58 |
+cgit v1.0-41-gc330 |
59 |
+ |
60 |
|
61 |
diff --git a/app-editors/nano/nano-2.8.7.ebuild b/app-editors/nano/nano-2.8.7.ebuild |
62 |
index 4463df57a3e..49a313cd193 100644 |
63 |
--- a/app-editors/nano/nano-2.8.7.ebuild |
64 |
+++ b/app-editors/nano/nano-2.8.7.ebuild |
65 |
@@ -31,11 +31,15 @@ DEPEND="${RDEPEND} |
66 |
virtual/pkgconfig |
67 |
static? ( ${LIB_DEPEND} )" |
68 |
|
69 |
+PATCHES=( |
70 |
+ "${FILESDIR}/${P}-minimal_compile_fix.patch" #629510 |
71 |
+) |
72 |
+ |
73 |
src_prepare() { |
74 |
+ default |
75 |
if [[ ${PV} == "9999" ]] ; then |
76 |
eautoreconf |
77 |
fi |
78 |
- default |
79 |
} |
80 |
|
81 |
src_configure() { |