summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWouter Deconinck <wdconinc@gmail.com>2020-06-23 02:44:44 -0500
committerGitHub <noreply@github.com>2020-06-23 09:44:44 +0200
commit0ffbd79bd007d7adfd97900bdd99ebc6cbdec6aa (patch)
treee06a32bd9e6f2d07ee5c734be3161c37cddc0630
parent36e603c7d6189c63caffc4e4b011f1491d543473 (diff)
downloadspack-0ffbd79bd007d7adfd97900bdd99ebc6cbdec6aa.tar.gz
spack-0ffbd79bd007d7adfd97900bdd99ebc6cbdec6aa.tar.bz2
spack-0ffbd79bd007d7adfd97900bdd99ebc6cbdec6aa.tar.xz
spack-0ffbd79bd007d7adfd97900bdd99ebc6cbdec6aa.zip
[hepmc3] gcc@9.3.0 patch for @3.1.2:3.2.1, conflicts for earlier @:3.1.1 (#17182)
See https://gitlab.cern.ch/hepmc/HepMC3/-/commit/ba38f14d8f56c16cc4105d98f6d4540c928c6150, which is included in master and released as of hepmc3@3.2.2
-rw-r--r--var/spack/repos/builtin/packages/hepmc3/ba38f14d8f56c16cc4105d98f6d4540c928c6150.patch12
-rw-r--r--var/spack/repos/builtin/packages/hepmc3/package.py4
2 files changed, 16 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/hepmc3/ba38f14d8f56c16cc4105d98f6d4540c928c6150.patch b/var/spack/repos/builtin/packages/hepmc3/ba38f14d8f56c16cc4105d98f6d4540c928c6150.patch
new file mode 100644
index 0000000000..b09058104f
--- /dev/null
+++ b/var/spack/repos/builtin/packages/hepmc3/ba38f14d8f56c16cc4105d98f6d4540c928c6150.patch
@@ -0,0 +1,12 @@
+diff --git a/search/include/HepMC3/Feature.h b/search/include/HepMC3/Feature.h
+index 0bd4f92b059d315c4a17ab03d49ba5b20af75d8e..e7717516a99c5c3d2553be2aca21378fb1ae7977 100644
+--- a/search/include/HepMC3/Feature.h
++++ b/search/include/HepMC3/Feature.h
+@@ -293,7 +293,7 @@ public:
+ EvaluatorPtr functor = m_internal;
+ return [value, functor](ConstGenParticlePtr input)->bool{
+ Feature_type local = (*functor)(input);
+- return fabs(local - value) <= ((fabs(local) < fabs(value))? fabs(value) : fabs(local)) * std::numeric_limits<Feature_type>::epsilon();
++ return std::less_equal<Feature_type>{}(fabs(local - value) , std::numeric_limits<Feature_type>::epsilon());
+ };
+ }
diff --git a/var/spack/repos/builtin/packages/hepmc3/package.py b/var/spack/repos/builtin/packages/hepmc3/package.py
index 95cc401457..361d3826f5 100644
--- a/var/spack/repos/builtin/packages/hepmc3/package.py
+++ b/var/spack/repos/builtin/packages/hepmc3/package.py
@@ -16,6 +16,7 @@ class Hepmc3(CMakePackage):
maintainers = ['vvolkl']
+ version('3.2.2', sha256='0e8cb4f78f804e38f7d29875db66f65e4c77896749d723548cc70fb7965e2d41')
version('3.2.1', sha256='6e4e4bb5708af105d4bf74efc2745e6efe704e942d46a8042f7dcae37a4739fe')
version('3.2.0', sha256='f132387763d170f25a7cc9f0bd586b83373c09acf0c3daa5504063ba460f89fc')
version('3.1.2', sha256='4133074b3928252877982f3d4b4c6c750bb7a324eb6c7bb2afc6fa256da3ecc7')
@@ -32,6 +33,9 @@ class Hepmc3(CMakePackage):
depends_on('root', when='+rootio')
depends_on('python', when="+python")
+ conflicts('%gcc@9.3.0', when="@:3.1.1")
+ patch('ba38f14d8f56c16cc4105d98f6d4540c928c6150.patch', when="@3.1.2:3.2.1 %gcc@9.3.0")
+
def cmake_args(self):
spec = self.spec
args = [