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/, sci-mathematics/petsc/files/
Date: Wed, 24 Jun 2015 09:52:01
Message-Id: 1435081036.a5ec25be61777284cc15c42d6574b33388932ee9.jlec@gentoo
1 commit: a5ec25be61777284cc15c42d6574b33388932ee9
2 Author: Matthias Maier <tamiko <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jun 23 17:37:16 2015 +0000
4 Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
5 CommitDate: Tue Jun 23 17:37:16 2015 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=a5ec25be
7
8 version bump
9
10 Package-Manager: portage-2.2.18
11
12 sci-mathematics/petsc/ChangeLog | 8 ++++++++
13 ...able-rpath.patch => petsc-3.6.0-disable-rpath.patch} | 9 +++++----
14 .../petsc/files/petsc-3.6.0-fix_sandbox_violation.patch | 15 +++++++++++++++
15 .../petsc/{petsc-3.5.1.ebuild => petsc-3.6.0.ebuild} | 17 ++++++++++-------
16 4 files changed, 38 insertions(+), 11 deletions(-)
17
18 diff --git a/sci-mathematics/petsc/ChangeLog b/sci-mathematics/petsc/ChangeLog
19 index a29efad..858b694 100644
20 --- a/sci-mathematics/petsc/ChangeLog
21 +++ b/sci-mathematics/petsc/ChangeLog
22 @@ -2,6 +2,14 @@
23 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
24 # $Header: $
25
26 +*petsc-3.6.0 (23 Jun 2015)
27 +
28 + 23 Jun 2015; Matthias Maier <tamiko@g.o>
29 + +files/petsc-3.6.0-disable-rpath.patch,
30 + +files/petsc-3.6.0-fix_sandbox_violation.patch, +petsc-3.6.0.ebuild,
31 + -files/petsc-3.5.1-disable-rpath.patch, -petsc-3.5.1.ebuild:
32 + version bump
33 +
34 *petsc-3.5.3 (13 Mar 2015)
35
36 13 Mar 2015; Matthias Maier <tamiko@g.o>
37
38 diff --git a/sci-mathematics/petsc/files/petsc-3.5.1-disable-rpath.patch b/sci-mathematics/petsc/files/petsc-3.6.0-disable-rpath.patch
39 similarity index 65%
40 rename from sci-mathematics/petsc/files/petsc-3.5.1-disable-rpath.patch
41 rename to sci-mathematics/petsc/files/petsc-3.6.0-disable-rpath.patch
42 index 0ccf45d..88a7db5 100644
43 --- a/sci-mathematics/petsc/files/petsc-3.5.1-disable-rpath.patch
44 +++ b/sci-mathematics/petsc/files/petsc-3.6.0-disable-rpath.patch
45 @@ -1,6 +1,7 @@
46 ---- config/BuildSystem/config/setCompilers.py 2013-10-08 19:45:00.581513389 +0200
47 -+++ config/BuildSystem/config/setCompilers.py 2013-05-13 23:35:20.000000000 +0200
48 -@@ -1303,12 +1303,7 @@
49 +diff --git a/config/BuildSystem/config/setCompilers.py b/config/BuildSystem/config/setCompilers.py
50 +--- a/config/BuildSystem/config/setCompilers.py
51 ++++ b/config/BuildSystem/config/setCompilers.py
52 +@@ -1326,12 +1326,7 @@ class Configure(config.base.Configure):
53 for language in languages:
54 flag = '-L'
55 self.pushLanguage(language)
56 @@ -8,7 +9,7 @@
57 - if not Configure.isDarwin():
58 - testFlags = ['-Wl,-rpath,', '-R','-rpath ' , '-Wl,-R,']
59 - else:
60 -- testFlags = []
61 +- testFlags = ['-Wl,-rpath,']
62 - # test '-R' before '-Wl,-rpath' for SUN compilers [as cc on linux accepts -Wl,-rpath, but f90 & CC do not.
63 + testFlags = []
64 if self.isSun(self.framework.getCompiler()):
65
66 diff --git a/sci-mathematics/petsc/files/petsc-3.6.0-fix_sandbox_violation.patch b/sci-mathematics/petsc/files/petsc-3.6.0-fix_sandbox_violation.patch
67 new file mode 100644
68 index 0000000..7510631
69 --- /dev/null
70 +++ b/sci-mathematics/petsc/files/petsc-3.6.0-fix_sandbox_violation.patch
71 @@ -0,0 +1,15 @@
72 +--- config/PETSc/options/installDir.py.orig 2015-06-23 18:11:25.054911894 +0200
73 ++++ config/PETSc/options/installDir.py 2015-06-23 18:11:44.100289841 +0200
74 +@@ -38,12 +38,6 @@
75 + self.installSudoMessage = ''
76 + if self.framework.argDB['prefix']:
77 + self.dir = self.framework.argDB['prefix']
78 +- try:
79 +- os.makedirs(os.path.join(self.dir,'PETScTestDirectory'))
80 +- os.rmdir(os.path.join(self.dir,'PETScTestDirectory'))
81 +- except:
82 +- self.installSudoMessage = 'You do not have write permissions to the --prefix directory '+self.dir+'\nYou will be prompted for the sudo password for any external package installs'
83 +- self.installSudo = 'sudo '
84 + else:
85 + self.dir = os.path.abspath(os.path.join(self.petscdir.dir, self.arch.arch))
86 + self.confDir = os.path.abspath(os.path.join(self.petscdir.dir, self.arch.arch))
87
88 diff --git a/sci-mathematics/petsc/petsc-3.5.1.ebuild b/sci-mathematics/petsc/petsc-3.6.0.ebuild
89 similarity index 94%
90 rename from sci-mathematics/petsc/petsc-3.5.1.ebuild
91 rename to sci-mathematics/petsc/petsc-3.6.0.ebuild
92 index 3d01eee..6c96de3 100644
93 --- a/sci-mathematics/petsc/petsc-3.5.1.ebuild
94 +++ b/sci-mathematics/petsc/petsc-3.6.0.ebuild
95 @@ -1,4 +1,4 @@
96 -# Copyright 1999-2014 Gentoo Foundation
97 +# Copyright 1999-2015 Gentoo Foundation
98 # Distributed under the terms of the GNU General Public License v2
99 # $Header: $
100
101 @@ -69,7 +69,10 @@ MAKEOPTS="${MAKEOPTS} -j1"
102 S="${WORKDIR}/${MY_P}"
103
104 src_prepare() {
105 - epatch "${FILESDIR}"/${P%_*}-disable-rpath.patch
106 + epatch \
107 + "${FILESDIR}"/${P%_*}-disable-rpath.patch \
108 + "${FILESDIR}"/${P%_*}-fix_sandbox_violation.patch
109 +
110 sed -i -e 's%/usr/bin/env python%/usr/bin/env python2%' configure || die
111 }
112
113 @@ -192,18 +195,18 @@ src_install() {
114 doins ${PETSC_ARCH}/include/*
115 if use fortran; then
116 insinto /usr/include/${PN}/finclude
117 - doins -r include/finclude/*
118 + doins -r include/${PN}/finclude/*
119 fi
120 if ! use mpi ; then
121 insinto /usr/include/${PN}/mpiuni
122 doins include/mpiuni/*.h
123 fi
124 insinto /usr/include/${PN}/conf
125 - doins conf/{variables,rules,test}
126 + doins lib/${PN}/conf/{variables,rules,test}
127 insinto /usr/include/${PN}/${PETSC_ARCH}/conf
128 - doins ${PETSC_ARCH}/conf/{petscrules,petscvariables,RDict.db}
129 - insinto /usr/include/${PN}/petsc-private
130 - doins include/petsc-private/*.h
131 + doins ${PETSC_ARCH}/lib/${PN}/conf/{petscrules,petscvariables,RDict.db}
132 + insinto /usr/include/${PN}/private
133 + doins include/${PN}/private/*.h
134
135 # fix configuration files: replace "${S}" by installed location
136 sed -i \