diff --git a/herwig7.spec b/herwig7.spec index 597a5a8ac52..f6d2cff8e1c 100644 --- a/herwig7.spec +++ b/herwig7.spec @@ -16,9 +16,12 @@ Requires: openloops BuildRequires: autotools +Patch0: herwig_Matchbox_mg_py3 + %prep %setup -q -n Herwig-%{realversion} +%patch0 -p1 # Regenerate build scripts autoreconf -fiv diff --git a/herwig_Matchbox_mg_py3.patch b/herwig_Matchbox_mg_py3.patch new file mode 100644 index 00000000000..320e2f8f3d3 --- /dev/null +++ b/herwig_Matchbox_mg_py3.patch @@ -0,0 +1,11 @@ +--- Herwig-7.2.2/MatrixElement/Matchbox/External/MadGraph/mg2herwig.in 2021-07-21 03:10:26.000000001 +0200 ++++ mg2herwig_patched 2021-07-21 13:33:43.000000001 +0200 +@@ -224,7 +224,7 @@ + sys.stderr.write("*** MadGraph build failed, check logfile for details ***") + exit(1) + +-os.system("python "+options.madgraph+"/mg5_aMC proc.dat") ++os.system("python3 "+options.madgraph+"/mg5_aMC proc.dat") + + +