1 |
commit: 3df1fcdb8134cbf3c03ed18301323eef84113221 |
2 |
Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jan 10 09:00:12 2019 +0000 |
4 |
Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jan 10 09:00:45 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3df1fcdb |
7 |
|
8 |
app-shells/fish: fix single test failing on 32bit arches |
9 |
|
10 |
Closes: https://bugs.gentoo.org/656246 |
11 |
Package-Manager: Portage-2.3.54, Repoman-2.3.12 |
12 |
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org> |
13 |
|
14 |
.../fish/files/fix-histfile-test-on-ppc.patch | 31 ++++++++++++++++++++++ |
15 |
app-shells/fish/fish-2.7.1.ebuild | 5 ++-- |
16 |
app-shells/fish/fish-3.0.0-r1.ebuild | 4 ++- |
17 |
3 files changed, 37 insertions(+), 3 deletions(-) |
18 |
|
19 |
diff --git a/app-shells/fish/files/fix-histfile-test-on-ppc.patch b/app-shells/fish/files/fix-histfile-test-on-ppc.patch |
20 |
new file mode 100644 |
21 |
index 00000000000..8b9540ffc61 |
22 |
--- /dev/null |
23 |
+++ b/app-shells/fish/files/fix-histfile-test-on-ppc.patch |
24 |
@@ -0,0 +1,31 @@ |
25 |
+From 2c01e67a74ca48ca87e2f11f6239d54c35551e7b Mon Sep 17 00:00:00 2001 |
26 |
+From: David Adam <zanchey@××××××××××××××.au> |
27 |
+Date: Sat, 5 Jan 2019 15:59:25 +0800 |
28 |
+Subject: [PATCH] histfile tests: tweak expect commands to avoid crash on |
29 |
+ 32-bit platforms |
30 |
+ |
31 |
+Rather than killing the process with close, read EOF after sending the |
32 |
+"exit" command and wait for OS cleanup (per the expect examples). |
33 |
+ |
34 |
+Not cleaning up with wait caused expect to crash on all 32-bit platforms |
35 |
+including i586 and armv7l with "alloc: invalid block: 0xbf993ccb: 3d 3b". |
36 |
+ |
37 |
+64-bit platforms were not affected, for reasons that are not clear. |
38 |
+--- |
39 |
+ tests/histfile.expect | 3 ++- |
40 |
+ 1 file changed, 2 insertions(+), 1 deletion(-) |
41 |
+ |
42 |
+diff --git a/tests/histfile.expect b/tests/histfile.expect |
43 |
+index 81ca11276..7ac056235 100644 |
44 |
+--- a/tests/histfile.expect |
45 |
++++ b/tests/histfile.expect |
46 |
+@@ -92,7 +92,8 @@ expect_prompt -re "\r\n$hist_line\r\n" { |
47 |
+ # ============= |
48 |
+ # Start by shutting down the previous shell. |
49 |
+ send "exit\r" |
50 |
+-close $spawn_id |
51 |
++expect eof |
52 |
++wait |
53 |
+ |
54 |
+ # Set the fish_history env var. |
55 |
+ set ::env(fish_history) env |
56 |
|
57 |
diff --git a/app-shells/fish/fish-2.7.1.ebuild b/app-shells/fish/fish-2.7.1.ebuild |
58 |
index b58c91c63b0..2bc49389213 100644 |
59 |
--- a/app-shells/fish/fish-2.7.1.ebuild |
60 |
+++ b/app-shells/fish/fish-2.7.1.ebuild |
61 |
@@ -1,4 +1,4 @@ |
62 |
-# Copyright 1999-2018 Gentoo Foundation |
63 |
+# Copyright 1999-2019 Gentoo Authors |
64 |
# Distributed under the terms of the GNU General Public License v2 |
65 |
|
66 |
EAPI=6 |
67 |
@@ -27,7 +27,8 @@ DEPEND=" |
68 |
test? ( dev-tcltk/expect ) |
69 |
" |
70 |
|
71 |
-PATCHES=( "${FILESDIR}/${P}-fix-printf-o-handling-on-ppc.patch" ) |
72 |
+PATCHES=( "${FILESDIR}/${P}-fix-printf-o-handling-on-ppc.patch" |
73 |
+ "${FILESDIR}/fix-histfile-test-on-ppc.patch" ) |
74 |
|
75 |
S="${WORKDIR}/${MY_P}" |
76 |
|
77 |
|
78 |
diff --git a/app-shells/fish/fish-3.0.0-r1.ebuild b/app-shells/fish/fish-3.0.0-r1.ebuild |
79 |
index e9917b07a6c..8cc9571025c 100644 |
80 |
--- a/app-shells/fish/fish-3.0.0-r1.ebuild |
81 |
+++ b/app-shells/fish/fish-3.0.0-r1.ebuild |
82 |
@@ -1,4 +1,4 @@ |
83 |
-# Copyright 1999-2018 Gentoo Authors |
84 |
+# Copyright 1999-2019 Gentoo Authors |
85 |
# Distributed under the terms of the GNU General Public License v2 |
86 |
|
87 |
EAPI=7 |
88 |
@@ -36,6 +36,8 @@ DEPEND="${RDEPEND} |
89 |
test? ( dev-tcltk/expect ) |
90 |
" |
91 |
|
92 |
+PATCHES=( "${FILESDIR}/fix-histfile-test-on-ppc.patch" ) |
93 |
+ |
94 |
S="${WORKDIR}/${MY_P}" |
95 |
|
96 |
src_prepare() { |