1 |
commit: 87fb055e1198f9f343c3f2991154f323d7187e60 |
2 |
Author: Sven Eden <yamakuzure <AT> gmx <DOT> net> |
3 |
AuthorDate: Fri May 6 15:40:09 2016 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat May 7 22:31:48 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=87fb055e |
7 |
|
8 |
sci-misc/boinc: Fix VSYSCALL check for boinc-7.2.42 |
9 |
|
10 |
Gentoo-Bug: 578750 |
11 |
|
12 |
The configuration options were misunderstood. |
13 |
|
14 |
- CONFIG_X86_VSYSCALL_EMULATION only enables a dmesg message if any |
15 |
legacy application tries to use any vsyscall. If disabled, these |
16 |
applications simply segfault with no output in dmesg. |
17 |
- To make the old calls available, either |
18 |
CONFIG_LEGACY_VSYSCALL_NATIVE or CONFIG_LEGACY_VSYSCALL_EMULATE |
19 |
must be used. |
20 |
|
21 |
Therefore the ebuild was reverted to check against the |
22 |
CONFIG_LEGACY_VSYSCALL_NONE option, and warns the user if this is |
23 |
set. |
24 |
|
25 |
Package-Manager: portage-2.2.28 |
26 |
|
27 |
...inc-7.2.42-r1.ebuild => boinc-7.2.42-r2.ebuild} | 34 +++++++++------------- |
28 |
1 file changed, 13 insertions(+), 21 deletions(-) |
29 |
|
30 |
diff --git a/sci-misc/boinc/boinc-7.2.42-r1.ebuild b/sci-misc/boinc/boinc-7.2.42-r2.ebuild |
31 |
similarity index 78% |
32 |
rename from sci-misc/boinc/boinc-7.2.42-r1.ebuild |
33 |
rename to sci-misc/boinc/boinc-7.2.42-r2.ebuild |
34 |
index ae58b2d..a7c9d06 100644 |
35 |
--- a/sci-misc/boinc/boinc-7.2.42-r1.ebuild |
36 |
+++ b/sci-misc/boinc/boinc-7.2.42-r2.ebuild |
37 |
@@ -50,32 +50,24 @@ DEPEND="${RDEPEND} |
38 |
S="${WORKDIR}/${PN}-client_release-${MY_PV}-${PV}" |
39 |
|
40 |
pkg_setup() { |
41 |
+ # Bug 578750 |
42 |
if use kernel_linux; then |
43 |
linux-info_pkg_setup |
44 |
if ! linux_config_exists; then |
45 |
ewarn "Can't check the linux kernel configuration." |
46 |
ewarn "You might be missing vsyscall support." |
47 |
- else |
48 |
- if kernel_is -ge 4 4 \ |
49 |
- && linux_chkconfig_present LEGACY_VSYSCALL_NONE \ |
50 |
- && ! linux_chkconfig_present X86_VSYSCALL_EMULATION; then |
51 |
- ewarn "You do have neither x86 vsyscall emulation" |
52 |
- ewarn "nor legacy vsyscall support enabled." |
53 |
- ewarn "This will prevent some boinc projects from running." |
54 |
- ewarn "Please enable vsyscall emulation:" |
55 |
- ewarn " CONFIG_X86_VSYSCALL_EMULATION=y" |
56 |
- ewarn "in /usr/src/linux/.config, to be found at" |
57 |
- ewarn " Processor type and features --->" |
58 |
- ewarn " [*] Enable vsyscall emulation" |
59 |
- ewarn "or set" |
60 |
- ewarn " CONFIG_LEGACY_VSYSCALL_EMULATE=y" |
61 |
- ewarn "in /usr/src/linux/.config, to be found at" |
62 |
- ewarn " Processor type and features --->" |
63 |
- ewarn " vsyscall table for legacy applications (None) --->" |
64 |
- ewarn " (X) Emulate" |
65 |
- ewarn "Alternatively, you can enable CONFIG_LEGACY_VSYSCALL_NATIVE." |
66 |
- ewarn "However, this has security implications and is not recommended." |
67 |
- fi |
68 |
+ elif kernel_is -ge 4 4 \ |
69 |
+ && linux_chkconfig_present LEGACY_VSYSCALL_NONE; then |
70 |
+ ewarn "You do not have vsyscall emulation enabled." |
71 |
+ ewarn "This will prevent some boinc projects from running." |
72 |
+ ewarn "Please enable vsyscall emulation:" |
73 |
+ ewarn " CONFIG_LEGACY_VSYSCALL_EMULATE=y" |
74 |
+ ewarn "in /usr/src/linux/.config, to be found at" |
75 |
+ ewarn " Processor type and features --->" |
76 |
+ ewarn " vsyscall table for legacy applications (None) --->" |
77 |
+ ewarn " (X) Emulate" |
78 |
+ ewarn "Alternatively, you can enable CONFIG_LEGACY_VSYSCALL_NATIVE." |
79 |
+ ewarn "However, this has security implications and is not recommended." |
80 |
fi |
81 |
fi |
82 |
} |