From 0ffbd79bd007d7adfd97900bdd99ebc6cbdec6aa Mon Sep 17 00:00:00 2001 From: Wouter Deconinck Date: Tue, 23 Jun 2020 02:44:44 -0500 Subject: [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 --- .../hepmc3/ba38f14d8f56c16cc4105d98f6d4540c928c6150.patch | 12 ++++++++++++ var/spack/repos/builtin/packages/hepmc3/package.py | 4 ++++ 2 files changed, 16 insertions(+) create mode 100644 var/spack/repos/builtin/packages/hepmc3/ba38f14d8f56c16cc4105d98f6d4540c928c6150.patch 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::epsilon(); ++ return std::less_equal{}(fabs(local - value) , std::numeric_limits::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 = [ -- cgit v1.2.3-70-g09d2