spack/var/spack/repos/builtin/packages/thepeg/thepeg-1.9.0.patch
iarspider ed7d485b58
New packages: thepeg, herwig++ (2.x) (#17443)
* New packages: Rivet, Herwig++ 2

* Add patches for thepeg

* Flake-8

* Update package.py

* Delete thepeg-2.1.6.patch

* Delete thepeg-2.1.5.patch

* Delete thepeg-2.1.3.patch

* Delete thepeg-2.2.0.patch
2020-07-10 08:25:21 -05:00

35 lines
1.0 KiB
Diff

--- PDF/LHAPDF.cc 2013-10-26 01:48:12.000000000 +0200
+++ PDF/LHAPDF.cc 2013-12-05 17:23:13.000000000 +0100
@@ -33,6 +33,7 @@
#include "config.h"
#include "ThePEG/Persistency/PersistentOStream.h"
#include "ThePEG/Persistency/PersistentIStream.h"
+#include "stdlib.h"
#ifdef ThePEG_HAS_FPU_CONTROL
#include <fpu_control.h>
@@ -228,7 +229,12 @@
std::string LHAPDF::getIndexPath() {
// macro is passed in from -D compile flag
- return std::string(LHAPDF_PKGDATADIR) + "/PDFsets.index";
+ char const* tmp = getenv( "LHAPATH" );
+ if ( tmp != NULL ) {
+ return std::string(getenv("LHAPATH")) + "/../PDFsets.index";
+ } else {
+ return std::string(LHAPDF_PKGDATADIR) + "/PDFsets.index";
+ };
}
bool LHAPDF::openLHAIndex(ifstream & is) {
--- ACDC/ACDCGen.h.orig 2014-04-02 16:20:59.000000000 +0200
+++ ACDC/ACDCGen.h 2014-04-02 16:22:40.000000000 +0200
@@ -13,6 +13,7 @@
#include "ACDCTraits.h"
#include "ACDCGenCell.h"
#include "ThePEG/Utilities/Exception.h"
+#include <algorithm>
namespace ACDCGenerator {