1 |
commit: 9f8c7401d89d6a01d96c811e7e3ca4e84b7b3309 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Oct 23 21:30:55 2017 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Oct 23 21:31:27 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9f8c7401 |
7 |
|
8 |
app-shells/bash-completion: Strip colliding rfkill executable |
9 |
|
10 |
Closes: https://bugs.gentoo.org/635158 |
11 |
|
12 |
...n-9999.ebuild => bash-completion-2.7-r1.ebuild} | 28 ++++++++++------------ |
13 |
.../bash-completion/bash-completion-9999.ebuild | 3 +++ |
14 |
2 files changed, 15 insertions(+), 16 deletions(-) |
15 |
|
16 |
diff --git a/app-shells/bash-completion/bash-completion-9999.ebuild b/app-shells/bash-completion/bash-completion-2.7-r1.ebuild |
17 |
similarity index 81% |
18 |
copy from app-shells/bash-completion/bash-completion-9999.ebuild |
19 |
copy to app-shells/bash-completion/bash-completion-2.7-r1.ebuild |
20 |
index 543a7c362bb..421b7392616 100644 |
21 |
--- a/app-shells/bash-completion/bash-completion-9999.ebuild |
22 |
+++ b/app-shells/bash-completion/bash-completion-2.7-r1.ebuild |
23 |
@@ -4,17 +4,19 @@ |
24 |
EAPI=6 |
25 |
|
26 |
BASHCOMP_P=bashcomp-2.0.2 |
27 |
-EGIT_REPO_URI="https://github.com/scop/bash-completion" |
28 |
-inherit autotools git-r3 versionator |
29 |
+inherit versionator |
30 |
|
31 |
DESCRIPTION="Programmable Completion for bash" |
32 |
HOMEPAGE="https://github.com/scop/bash-completion" |
33 |
-SRC_URI="https://bitbucket.org/mgorny/bashcomp2/downloads/${BASHCOMP_P}.tar.gz" |
34 |
+SRC_URI="https://github.com/scop/bash-completion/releases/download/${PV}/${P}.tar.xz |
35 |
+ https://bitbucket.org/mgorny/bashcomp2/downloads/${BASHCOMP_P}.tar.gz" |
36 |
|
37 |
LICENSE="GPL-2" |
38 |
SLOT="0" |
39 |
-KEYWORDS="" |
40 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris" |
41 |
IUSE="test" |
42 |
+# Multiple test failures, need to investigate the exact problem |
43 |
+RESTRICT="test" |
44 |
|
45 |
RDEPEND=">=app-shells/bash-4.3_p30-r1 |
46 |
sys-apps/miscfiles |
47 |
@@ -45,17 +47,16 @@ STRIP_COMPLETIONS=( |
48 |
|
49 |
# Installed by sys-apps/util-linux-2.28 |
50 |
mount umount mount.linux umount.linux |
51 |
-) |
52 |
|
53 |
-src_unpack() { |
54 |
- git-r3_src_unpack |
55 |
- default |
56 |
-} |
57 |
+ # Installed by sys-apps/util-linux-2.31 |
58 |
+ rfkill |
59 |
+) |
60 |
|
61 |
src_prepare() { |
62 |
eapply "${WORKDIR}/${BASHCOMP_P}/${PN}"-2.1_p*.patch |
63 |
+ # Bug 543100, update bug 601194 |
64 |
+ eapply "${FILESDIR}/${PN}-2.1-escape-characters-r1.patch" |
65 |
eapply_user |
66 |
- eautoreconf |
67 |
} |
68 |
|
69 |
src_test() { |
70 |
@@ -68,13 +69,8 @@ src_test() { |
71 |
tail -f "${T}/dtach-test.log" & |
72 |
local tail_pid=${!} |
73 |
|
74 |
- # override the default expect timeout and buffer size to avoid tests |
75 |
- # failing randomly due to cold cache, busy system or just more output |
76 |
- # than upstream anticipated (they run tests on pristine docker |
77 |
- # installs of binary distros) |
78 |
nonfatal dtach -N "${T}/dtach.sock" \ |
79 |
- bash -c 'emake check RUNTESTFLAGS="OPT_TIMEOUT=300 OPT_BUFFER_SIZE=1000000" \ |
80 |
- &> "${T}"/dtach-test.log; echo ${?} > "${T}"/dtach-test.out' |
81 |
+ bash -c 'emake check &> "${T}"/dtach-test.log; echo ${?} > "${T}"/dtach-test.out' |
82 |
|
83 |
kill "${tail_pid}" |
84 |
[[ -f ${T}/dtach-test.out ]] || die "Unable to run tests" |
85 |
|
86 |
diff --git a/app-shells/bash-completion/bash-completion-9999.ebuild b/app-shells/bash-completion/bash-completion-9999.ebuild |
87 |
index 543a7c362bb..0d8fdec50aa 100644 |
88 |
--- a/app-shells/bash-completion/bash-completion-9999.ebuild |
89 |
+++ b/app-shells/bash-completion/bash-completion-9999.ebuild |
90 |
@@ -45,6 +45,9 @@ STRIP_COMPLETIONS=( |
91 |
|
92 |
# Installed by sys-apps/util-linux-2.28 |
93 |
mount umount mount.linux umount.linux |
94 |
+ |
95 |
+ # Deprecated in favor of sys-apps/util-linux-2.31 |
96 |
+ _rfkill |
97 |
) |
98 |
|
99 |
src_unpack() { |