Gentoo Archives: gentoo-commits

From: Nicolas Bock <nicolasbock@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-physics/lammps/, sci-physics/lammps/files/
Date: Thu, 13 Oct 2016 12:30:33
Message-Id: 1476361756.8f1eadbaa9a8c06794406723ff90ab4a2be3f812.nicolasbock@gentoo
1 commit: 8f1eadbaa9a8c06794406723ff90ab4a2be3f812
2 Author: Nicolas Bock <nicolasbock <AT> gentoo <DOT> org>
3 AuthorDate: Thu Oct 13 12:23:35 2016 +0000
4 Commit: Nicolas Bock <nicolasbock <AT> gentoo <DOT> org>
5 CommitDate: Thu Oct 13 12:29:16 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8f1eadba
7
8 sci-physics/lammps: Fix for gcc-6 (Bug 595728)
9
10 Added patch written by Peter Levine <plevine457 <AT> gmail.com>
11
12 Package-Manager: portage-2.3.0
13
14 sci-physics/lammps/files/gcc-6.patch | 11 +++++++++++
15 sci-physics/lammps/lammps-20160407.ebuild | 1 +
16 2 files changed, 12 insertions(+)
17
18 diff --git a/sci-physics/lammps/files/gcc-6.patch b/sci-physics/lammps/files/gcc-6.patch
19 new file mode 100644
20 index 00000000..ca2bcce
21 --- /dev/null
22 +++ b/sci-physics/lammps/files/gcc-6.patch
23 @@ -0,0 +1,11 @@
24 +--- lammps-7Apr16-orig/lib/atc/Vector.h 2014-11-20 11:59:03.000000000 -0700
25 ++++ lammps-7Apr16/lib/atc/Vector.h 2016-10-13 06:04:44.328977960 -0600
26 +@@ -119,7 +119,7 @@
27 + {
28 + DenseVector<T> r(v);
29 + r*=(1.0/s); // for integer types this may be worthless
30 +- return ;
31 ++ return r;
32 + }
33 + ///////////////////////////////////////////////////////////////////////////////
34 + //* Operator for Vector-Vector sum
35
36 diff --git a/sci-physics/lammps/lammps-20160407.ebuild b/sci-physics/lammps/lammps-20160407.ebuild
37 index d3fac30..cba4974 100644
38 --- a/sci-physics/lammps/lammps-20160407.ebuild
39 +++ b/sci-physics/lammps/lammps-20160407.ebuild
40 @@ -116,6 +116,7 @@ src_prepare() {
41 # Patch python.
42 epatch "${FILESDIR}/lammps-python3-r2.patch"
43 epatch "${FILESDIR}/python-shebang.patch"
44 + epatch "${FILESDIR}/gcc-6.patch"
45 }
46
47 src_compile() {