summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Bock <nicolasbock@gentoo.org>2016-10-13 06:23:35 -0600
committerNicolas Bock <nicolasbock@gentoo.org>2016-10-13 06:29:16 -0600
commit8f1eadbaa9a8c06794406723ff90ab4a2be3f812 (patch)
treed82e6cc070aaef86e704309e683eb6247be9fa1b /sci-physics/lammps
parentnet-misc/ndppd: bump (diff)
downloadgentoo-8f1eadbaa9a8c06794406723ff90ab4a2be3f812.tar.gz
gentoo-8f1eadbaa9a8c06794406723ff90ab4a2be3f812.tar.bz2
gentoo-8f1eadbaa9a8c06794406723ff90ab4a2be3f812.zip
sci-physics/lammps: Fix for gcc-6 (Bug 595728)
Added patch written by Peter Levine <plevine457@gmail.com> Package-Manager: portage-2.3.0
Diffstat (limited to 'sci-physics/lammps')
-rw-r--r--sci-physics/lammps/files/gcc-6.patch11
-rw-r--r--sci-physics/lammps/lammps-20160407.ebuild1
2 files changed, 12 insertions, 0 deletions
diff --git a/sci-physics/lammps/files/gcc-6.patch b/sci-physics/lammps/files/gcc-6.patch
new file mode 100644
index 000000000000..ca2bcceeedfa
--- /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 d3fac3072f78..cba4974846ac 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() {