commit:     8f1eadbaa9a8c06794406723ff90ab4a2be3f812
Author:     Nicolas Bock <nicolasbock <AT> gentoo <DOT> org>
AuthorDate: Thu Oct 13 12:23:35 2016 +0000
Commit:     Nicolas Bock <nicolasbock <AT> gentoo <DOT> org>
CommitDate: Thu Oct 13 12:29:16 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8f1eadba

sci-physics/lammps: Fix for gcc-6 (Bug 595728)

Added patch written by Peter Levine <plevine457 <AT> gmail.com>

Package-Manager: portage-2.3.0

 sci-physics/lammps/files/gcc-6.patch      | 11 +++++++++++
 sci-physics/lammps/lammps-20160407.ebuild |  1 +
 2 files changed, 12 insertions(+)

diff --git a/sci-physics/lammps/files/gcc-6.patch 
b/sci-physics/lammps/files/gcc-6.patch
new file mode 100644
index 00000000..ca2bcce
--- /dev/null
+++ b/sci-physics/lammps/files/gcc-6.patch
@@ -0,0 +1,11 @@
+--- lammps-7Apr16-orig/lib/atc/Vector.h        2014-11-20 11:59:03.000000000 
-0700
++++ lammps-7Apr16/lib/atc/Vector.h     2016-10-13 06:04:44.328977960 -0600
+@@ -119,7 +119,7 @@
+ {
+   DenseVector<T> r(v);
+   r*=(1.0/s); // for integer types this may be worthless
+-  return ;
++  return r;
+ }
+ 
///////////////////////////////////////////////////////////////////////////////
+ //* Operator for Vector-Vector sum

diff --git a/sci-physics/lammps/lammps-20160407.ebuild 
b/sci-physics/lammps/lammps-20160407.ebuild
index d3fac30..cba4974 100644
--- a/sci-physics/lammps/lammps-20160407.ebuild
+++ b/sci-physics/lammps/lammps-20160407.ebuild
@@ -116,6 +116,7 @@ src_prepare() {
        # Patch python.
        epatch "${FILESDIR}/lammps-python3-r2.patch"
        epatch "${FILESDIR}/python-shebang.patch"
+       epatch "${FILESDIR}/gcc-6.patch"
 }
 
 src_compile() {

Reply via email to