commit: 7832f53e7d3f421a9961ece8fd9252cc6387bf71
Author: Nicolas Bock <nicolasbock <AT> gentoo <DOT> org>
AuthorDate: Tue Sep 8 12:04:24 2015 +0000
Commit: Nicolas Bock <nicolasbock <AT> gentoo <DOT> org>
CommitDate: Tue Sep 8 12:04:24 2015 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7832f53e
sci-physics/lammps: Fix broken python3 patch.
Package-Manager: portage-2.2.20.1
sci-physics/lammps/files/lammps-python3-r1.patch | 11 +++++++++++
sci-physics/lammps/lammps-20150904.ebuild | 2 +-
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/sci-physics/lammps/files/lammps-python3-r1.patch
b/sci-physics/lammps/files/lammps-python3-r1.patch
new file mode 100644
index 0000000..2dc2bd7
--- /dev/null
+++ b/sci-physics/lammps/files/lammps-python3-r1.patch
@@ -0,0 +1,11 @@
+--- lammps-4Sep15-orig/python/lammps.py 2015-09-02 14:41:38.000000000
-0600
++++ lammps-4Sep15/python/lammps.py 2015-09-08 05:59:16.000000000 -0600
+@@ -33,7 +33,7 @@
+ except:
+ type,value,tb = sys.exc_info()
+ traceback.print_exception(type,value,tb)
+- raise OSError,"Could not load LAMMPS dynamic library from %s" % modpath
++ raise OSError("Could not load LAMMPS dynamic library from %s" % modpath)
+
+ # if no ptr provided, create an instance of LAMMPS
+ # don't know how to pass an MPI communicator from PyPar
diff --git a/sci-physics/lammps/lammps-20150904.ebuild
b/sci-physics/lammps/lammps-20150904.ebuild
index 1a244c8..5400e87 100644
--- a/sci-physics/lammps/lammps-20150904.ebuild
+++ b/sci-physics/lammps/lammps-20150904.ebuild
@@ -167,7 +167,7 @@ src_prepare() {
tools/Makefile || die
# Patch python.
- epatch "${FILESDIR}/lammps-python3.patch"
+ epatch "${FILESDIR}/lammps-python3-r1.patch"
epatch "${FILESDIR}/python-shebang.patch"
}