Gentoo Archives: gentoo-commits

From: Justin Lecher <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-mathematics/petsc/
Date: Wed, 24 Jun 2015 09:52:02
Message-Id: 1435082618.8b2c35ac92ac6644a09d897c1616ed3753396bff.jlec@gentoo
1 commit: 8b2c35ac92ac6644a09d897c1616ed3753396bff
2 Author: Matthias Maier <tamiko <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jun 23 18:03:38 2015 +0000
4 Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
5 CommitDate: Tue Jun 23 18:03:38 2015 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=8b2c35ac
7
8 sci-mathematics/petsc: Avoid a sandbox violation, bug #548498
9
10 Package-Manager: portage-2.2.18
11
12 sci-mathematics/petsc/ChangeLog | 4 ++++
13 sci-mathematics/petsc/petsc-3.5.3.ebuild | 7 +++++++
14 sci-mathematics/petsc/petsc-3.6.0.ebuild | 7 +++++++
15 3 files changed, 18 insertions(+)
16
17 diff --git a/sci-mathematics/petsc/ChangeLog b/sci-mathematics/petsc/ChangeLog
18 index 858b694..1f8dcbb 100644
19 --- a/sci-mathematics/petsc/ChangeLog
20 +++ b/sci-mathematics/petsc/ChangeLog
21 @@ -2,6 +2,10 @@
22 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
23 # $Header: $
24
25 + 23 Jun 2015; Matthias Maier <tamiko@g.o> petsc-3.5.3.ebuild,
26 + petsc-3.6.0.ebuild:
27 + sci-mathematics/petsc: Avoid a sandbox violation, bug #548498
28 +
29 *petsc-3.6.0 (23 Jun 2015)
30
31 23 Jun 2015; Matthias Maier <tamiko@g.o>
32
33 diff --git a/sci-mathematics/petsc/petsc-3.5.3.ebuild b/sci-mathematics/petsc/petsc-3.5.3.ebuild
34 index 09e5bfb..c7f0269 100644
35 --- a/sci-mathematics/petsc/petsc-3.5.3.ebuild
36 +++ b/sci-mathematics/petsc/petsc-3.5.3.ebuild
37 @@ -74,6 +74,13 @@ src_prepare() {
38 }
39
40 src_configure() {
41 + # bug 548498
42 + # PETSc runs mpi processes during configure that result in a sandbox
43 + # violation by trying to open /proc/mtrr rw. This is not easy to
44 + # mitigate because it happens in libpciaccess.so called by libhwloc.so,
45 + # which is used by libmpi.so.
46 + addpredict /proc/mtrr
47 +
48 # petsc uses --with-blah=1 and --with-blah=0 to en/disable options
49 petsc_enable() {
50 use "$1" && echo "--with-${2:-$1}=1" || echo "--with-${2:-$1}=0"
51
52 diff --git a/sci-mathematics/petsc/petsc-3.6.0.ebuild b/sci-mathematics/petsc/petsc-3.6.0.ebuild
53 index 6c96de3..d7ee394 100644
54 --- a/sci-mathematics/petsc/petsc-3.6.0.ebuild
55 +++ b/sci-mathematics/petsc/petsc-3.6.0.ebuild
56 @@ -77,6 +77,13 @@ src_prepare() {
57 }
58
59 src_configure() {
60 + # bug 548498
61 + # PETSc runs mpi processes during configure that result in a sandbox
62 + # violation by trying to open /proc/mtrr rw. This is not easy to
63 + # mitigate because it happens in libpciaccess.so called by libhwloc.so,
64 + # which is used by libmpi.so.
65 + addpredict /proc/mtrr
66 +
67 # petsc uses --with-blah=1 and --with-blah=0 to en/disable options
68 petsc_enable() {
69 use "$1" && echo "--with-${2:-$1}=1" || echo "--with-${2:-$1}=0"