From 7832f53e7d3f421a9961ece8fd9252cc6387bf71 Mon Sep 17 00:00:00 2001 From: Nicolas Bock Date: Tue, 8 Sep 2015 06:04:24 -0600 Subject: [PATCH] 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(-) create mode 100644 sci-physics/lammps/files/lammps-python3-r1.patch 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 000000000000..2dc2bd744fa9 --- /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 1a244c83975e..5400e87baefb 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" } -- 2.26.2