From c71a7bf73423825ec6dfc6d1934673462f4840bd Mon Sep 17 00:00:00 2001 From: jmcarcell Date: Thu, 3 Oct 2024 21:22:41 +0200 Subject: [PATCH 01/34] Add missing tags and a cherry pick --- .cherry-pick | 3 ++- packages/ced/package.py | 4 ++++ packages/cedviewer/package.py | 4 ++++ packages/gear/package.py | 5 +++++ packages/ilcutil/package.py | 4 ++++ 5 files changed, 19 insertions(+), 1 deletion(-) diff --git a/.cherry-pick b/.cherry-pick index 2797ea1b..c0f73664 100644 --- a/.cherry-pick +++ b/.cherry-pick @@ -54,7 +54,8 @@ curl -s https://patch-diff.githubusercontent.com/raw/spack/spack/pull/46465.diff git add . git cherry-pick 248a7c0f4894222bfcd0bb76b13a984c92d4c938 -X theirs --no-commit -# Versions for the release, in order DD4hep and podio&edm4hep +# Versions for the release, in order DD4hep and podio&edm4hep and LCIO git cherry-pick 43d1cdb0bd4780bff369dafa681a8a7939313784 -X theirs --no-commit git cherry-pick 5d9c534018593fdef5db1028c60026d26bf4d65b -X theirs --no-commit git cherry-pick be8112e1ff9dea12296bfafb341cc5953e72c415 -X theirs --no-commit +git cherry-pick 1c6b6d0a0819409b75d7a59a90c3daf24fe80fee -X theirs --no-commit diff --git a/packages/ced/package.py b/packages/ced/package.py index ce45b0fe..c1fc20d9 100644 --- a/packages/ced/package.py +++ b/packages/ced/package.py @@ -17,6 +17,10 @@ class Ced(CMakePackage, Ilcsoftpackage): maintainers = ["vvolkl"] version("master", branch="master") + version( + "1.10", + sha256="c3c6540559c00d55bd5981816d39290dbb9b091e34673e301e42934988a74012", + ) version( "1.9.4", sha256="9202eff8d02a35542e368a790d0c3bc81530f618f28f8f57929e29df52bf7634", diff --git a/packages/cedviewer/package.py b/packages/cedviewer/package.py index b8aa48d6..2bdf6a10 100644 --- a/packages/cedviewer/package.py +++ b/packages/cedviewer/package.py @@ -17,6 +17,10 @@ class Cedviewer(CMakePackage, Ilcsoftpackage): maintainers = ["vvolkl"] version("master", branch="master") + version( + "1.20", + sha256="e2b1b50b42be28aa28bbdba99e403e053a1aff7bcd7c76c6b7224768a3d28c68", + ) version( "1.19.1", sha256="aaa5317ae35d11a2850d623667607fc130181ea500a596e3073f744deae0f8b6", diff --git a/packages/gear/package.py b/packages/gear/package.py index a3ef0a98..9458ccae 100644 --- a/packages/gear/package.py +++ b/packages/gear/package.py @@ -16,6 +16,11 @@ class Gear(CMakePackage, Ilcsoftpackage): maintainers = ["vvolkl"] version("master", branch="master") + + version( + "1.9.3", + sha256="c6e9075dc6be63d9e3019ce8c636adfa4be2bffb8120b1d9d054a0830724aaed", + ) version( "1.9.2", sha256="7ea9e13046aef53f12e4071e9937378c93f17fe70f8b673e91bbc3a81385742d", diff --git a/packages/ilcutil/package.py b/packages/ilcutil/package.py index 2cc02b65..3e96b3ba 100644 --- a/packages/ilcutil/package.py +++ b/packages/ilcutil/package.py @@ -16,6 +16,10 @@ class Ilcutil(CMakePackage, Ilcsoftpackage): maintainers = ["vvolkl"] version("master", branch="master") + version( + "1.7.3", + sha256="77ae96bf9b4ceda382a57048a7a6b0ab5e9120ac3f14ffd10441c9e44684f35b", + ) version( "1.7.2", sha256="d909a575cc8be7d52446f58f1cc7be8eb5112a977b01c69c5e0d7c0b5cf8cdfb", From 2c26c9244830659fc972da755bdf536516dfb940 Mon Sep 17 00:00:00 2001 From: jmcarcell Date: Fri, 4 Oct 2024 08:07:59 +0200 Subject: [PATCH 02/34] Fix versions for fetching k4geo --- packages/k4geo/package.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/k4geo/package.py b/packages/k4geo/package.py index 47030d33..b8ac34c7 100644 --- a/packages/k4geo/package.py +++ b/packages/k4geo/package.py @@ -17,15 +17,15 @@ class K4geo(CMakePackage): version("main", branch="main") version( - "0.21", + "0.21.0", sha256="11074495f861d944b741187e8e4dedb4e7f85124f304605f8f8c7dce69dda4fb", ) version( - "0.20", + "0.20.0", sha256="40d5842faa4767cc1b8c19f9b710713ba6a128ecd94fb9682e3afe3145e20511", ) version( - "0.19", + "0.19.0", sha256="6e8101e5991870484988f9fcb0299076a30f9b5f37e4e51141e50dfd30f32314", ) From aa1c5f2b8336410078a1fa99fdf623a53fa162e6 Mon Sep 17 00:00:00 2001 From: jmcarcell Date: Fri, 4 Oct 2024 08:09:12 +0200 Subject: [PATCH 03/34] Fix URL for k4FWCore --- packages/k4fwcore/package.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/k4fwcore/package.py b/packages/k4fwcore/package.py index 8cd62293..14c99a36 100644 --- a/packages/k4fwcore/package.py +++ b/packages/k4fwcore/package.py @@ -5,7 +5,7 @@ class K4fwcore(CMakePackage, Ilcsoftpackage): """Core framework components of the Key4HEP project""" homepage = "https://github.com/key4hep/k4FWCore" - url = "https://github.com/key4hep/k4FWCore/archive/v00-01.tar.gz" + url = "https://github.com/key4hep/k4FWCore/archive/v00-01-00.tar.gz" git = "https://github.com/key4hep/k4FWCore.git" version("main", branch="main") From 78f38fdd0cfb745b08e156118278e03f2c61026c Mon Sep 17 00:00:00 2001 From: jmcarcell Date: Fri, 4 Oct 2024 08:41:37 +0200 Subject: [PATCH 04/34] Add a cherry pick for py-lxml --- .cherry-pick | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.cherry-pick b/.cherry-pick index c0f73664..90ab0e73 100644 --- a/.cherry-pick +++ b/.cherry-pick @@ -54,6 +54,9 @@ curl -s https://patch-diff.githubusercontent.com/raw/spack/spack/pull/46465.diff git add . git cherry-pick 248a7c0f4894222bfcd0bb76b13a984c92d4c938 -X theirs --no-commit +# py-lxml: add version 5.3.0, remove when https://github.com/spack/spack/pull/46771 is merged +git cherry-pick bbb97dfb9b976e588ad63b19cd401788c9d6e5bc -X theirs --no-commit + # Versions for the release, in order DD4hep and podio&edm4hep and LCIO git cherry-pick 43d1cdb0bd4780bff369dafa681a8a7939313784 -X theirs --no-commit git cherry-pick 5d9c534018593fdef5db1028c60026d26bf4d65b -X theirs --no-commit From 5191a5cd61ddf2287556bff38b4ed453b19c507b Mon Sep 17 00:00:00 2001 From: jmcarcell Date: Fri, 4 Oct 2024 08:51:25 +0200 Subject: [PATCH 05/34] Add a cherry pick for cython --- .cherry-pick | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.cherry-pick b/.cherry-pick index 90ab0e73..41784709 100644 --- a/.cherry-pick +++ b/.cherry-pick @@ -54,6 +54,8 @@ curl -s https://patch-diff.githubusercontent.com/raw/spack/spack/pull/46465.diff git add . git cherry-pick 248a7c0f4894222bfcd0bb76b13a984c92d4c938 -X theirs --no-commit +# py-cython: add version 3.0.11, remove when https://github.com/spack/spack/pull/46772 is merged +git cherry-pick fdade80bc6a9ade3b5dd5b22c8545978fd067985 -X theirs --no-commit # py-lxml: add version 5.3.0, remove when https://github.com/spack/spack/pull/46771 is merged git cherry-pick bbb97dfb9b976e588ad63b19cd401788c9d6e5bc -X theirs --no-commit From 9902c499c266a2ccf6cccb1baa9b618d74f5a635 Mon Sep 17 00:00:00 2001 From: jmcarcell Date: Sun, 6 Oct 2024 22:08:40 +0200 Subject: [PATCH 06/34] Add a version for CLDConfig --- packages/cldconfig/package.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/cldconfig/package.py b/packages/cldconfig/package.py index b7f0fcc3..e6abebb0 100644 --- a/packages/cldconfig/package.py +++ b/packages/cldconfig/package.py @@ -11,13 +11,13 @@ class Cldconfig(CMakePackage): homepage = "https://github.com/key4hep/CLDConfig" git = "https://github.com/key4hep/CLDConfig" + url = "https://github.com/key4hep/CLDConfig/archive/refs/tags/r2024-10-06.tar.gz" maintainers = ["jmcarcell"] version("main", branch="main") - # Old tag to make sure there is at least one, can be removed when - # there is another - version("r2024-04-12", tag="r2024-04-12") + version("2024-10-06", sha256="7ded5bc3f63eed6b6806d9581e1b47d7ca14a0c97ef5d61331d4ef88b1d7d643") + version("2024-04-12", sha256="8a15971152391da3b41bbf543316ad6b41949cd3d3c82e334a7a7b86092591da") depends_on("k4geo", type="test") depends_on("dd4hep", type="test") From 3595c640ef6eab141a210516ebaeb19e9094f839 Mon Sep 17 00:00:00 2001 From: jmcarcell Date: Sun, 6 Oct 2024 22:12:59 +0200 Subject: [PATCH 07/34] Fix commit for cython --- .cherry-pick | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.cherry-pick b/.cherry-pick index 41784709..73376b2c 100644 --- a/.cherry-pick +++ b/.cherry-pick @@ -55,7 +55,7 @@ git add . git cherry-pick 248a7c0f4894222bfcd0bb76b13a984c92d4c938 -X theirs --no-commit # py-cython: add version 3.0.11, remove when https://github.com/spack/spack/pull/46772 is merged -git cherry-pick fdade80bc6a9ade3b5dd5b22c8545978fd067985 -X theirs --no-commit +git cherry-pick bb9bbeecad68dcc1e14211fa7940d26df663aaea -X theirs --no-commit # py-lxml: add version 5.3.0, remove when https://github.com/spack/spack/pull/46771 is merged git cherry-pick bbb97dfb9b976e588ad63b19cd401788c9d6e5bc -X theirs --no-commit From 1abb134ab1d54db9b829993051f352625e8153be Mon Sep 17 00:00:00 2001 From: jmcarcell Date: Mon, 7 Oct 2024 08:04:09 +0200 Subject: [PATCH 08/34] Fix version for k4FWCore --- packages/k4fwcore/package.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/k4fwcore/package.py b/packages/k4fwcore/package.py index 14c99a36..e747a634 100644 --- a/packages/k4fwcore/package.py +++ b/packages/k4fwcore/package.py @@ -11,7 +11,7 @@ class K4fwcore(CMakePackage, Ilcsoftpackage): version("main", branch="main") version( - "1.1.0", + "1.1", sha256="31b03daf5f839708113f3452c6626975aa8b070a7cbbb3576b29b86918df13d3", ) From 41d9d04df8acbfd5dbb04c2a30a2eb87680c0ffc Mon Sep 17 00:00:00 2001 From: jmcarcell Date: Mon, 7 Oct 2024 13:59:19 +0200 Subject: [PATCH 09/34] Fix pre-commit --- packages/cldconfig/package.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/packages/cldconfig/package.py b/packages/cldconfig/package.py index e6abebb0..cbb17a7b 100644 --- a/packages/cldconfig/package.py +++ b/packages/cldconfig/package.py @@ -16,8 +16,14 @@ class Cldconfig(CMakePackage): maintainers = ["jmcarcell"] version("main", branch="main") - version("2024-10-06", sha256="7ded5bc3f63eed6b6806d9581e1b47d7ca14a0c97ef5d61331d4ef88b1d7d643") - version("2024-04-12", sha256="8a15971152391da3b41bbf543316ad6b41949cd3d3c82e334a7a7b86092591da") + version( + "2024-10-06", + sha256="7ded5bc3f63eed6b6806d9581e1b47d7ca14a0c97ef5d61331d4ef88b1d7d643", + ) + version( + "2024-04-12", + sha256="8a15971152391da3b41bbf543316ad6b41949cd3d3c82e334a7a7b86092591da", + ) depends_on("k4geo", type="test") depends_on("dd4hep", type="test") From 97f3a1b26dfef4b69a67f42b4c5c86e656ef6f96 Mon Sep 17 00:00:00 2001 From: jmcarcell Date: Mon, 7 Oct 2024 14:05:57 +0200 Subject: [PATCH 10/34] Change dependencies for py-onnx --- .cherry-pick | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.cherry-pick b/.cherry-pick index 73376b2c..747a6eca 100644 --- a/.cherry-pick +++ b/.cherry-pick @@ -42,7 +42,8 @@ curl -s https://patch-diff.githubusercontent.com/raw/spack/spack/pull/46365.diff curl -s https://patch-diff.githubusercontent.com/raw/spack/spack/pull/46372.diff | patch -p1 # py-onnx: add fixes for GCC 14, remove! -curl -s https://patch-diff.githubusercontent.com/raw/spack/spack/pull/46390.diff | patch -p1 +# curl -s https://patch-diff.githubusercontent.com/raw/spack/spack/pull/46390.diff | patch -p1 +git cherry-pick 096ab11961995ac8d69f7b177cbcadf618d3068e -X theirs --no-commit # texlive: add new versions, remove! git cherry-pick 5398b1be15245e1be480c5aa4706f57795208505 -X theirs --no-commit From 733c0bab55a455cd55762b7651c4e23875ab5d24 Mon Sep 17 00:00:00 2001 From: jmcarcell Date: Mon, 7 Oct 2024 14:16:18 +0200 Subject: [PATCH 11/34] Fix sha256 for k4FWCore --- packages/k4fwcore/package.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/k4fwcore/package.py b/packages/k4fwcore/package.py index e747a634..673eac7d 100644 --- a/packages/k4fwcore/package.py +++ b/packages/k4fwcore/package.py @@ -12,7 +12,7 @@ class K4fwcore(CMakePackage, Ilcsoftpackage): version( "1.1", - sha256="31b03daf5f839708113f3452c6626975aa8b070a7cbbb3576b29b86918df13d3", + sha256="63a81e5893571a5e9209e4b6f2fe6d511772675a824cfef105f2df5f18fc6af4", ) version("1.0pre19", tag="v01-00pre19") From e4db9b645cca447ddb9af22f636e897f0fdf1134 Mon Sep 17 00:00:00 2001 From: jmcarcell Date: Mon, 7 Oct 2024 14:19:41 +0200 Subject: [PATCH 12/34] Fix version for k4geo --- packages/k4geo/package.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/k4geo/package.py b/packages/k4geo/package.py index b8ac34c7..5fd65487 100644 --- a/packages/k4geo/package.py +++ b/packages/k4geo/package.py @@ -17,7 +17,7 @@ class K4geo(CMakePackage): version("main", branch="main") version( - "0.21.0", + "0.21", sha256="11074495f861d944b741187e8e4dedb4e7f85124f304605f8f8c7dce69dda4fb", ) version( From 3cbb198885ef5e4f173ed88bd556b9e3b4dfafe8 Mon Sep 17 00:00:00 2001 From: jmcarcell Date: Mon, 7 Oct 2024 15:32:42 +0200 Subject: [PATCH 13/34] Add a cherry pick for madgraph5amc --- .cherry-pick | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.cherry-pick b/.cherry-pick index 747a6eca..441f9db3 100644 --- a/.cherry-pick +++ b/.cherry-pick @@ -60,6 +60,10 @@ git cherry-pick bb9bbeecad68dcc1e14211fa7940d26df663aaea -X theirs --no-commit # py-lxml: add version 5.3.0, remove when https://github.com/spack/spack/pull/46771 is merged git cherry-pick bbb97dfb9b976e588ad63b19cd401788c9d6e5bc -X theirs --no-commit +# madgraph5amc: add v3.5.6, remove when https://github.com/spack/spack/pull/46844 is merged +git cherry-pick 5777576e37ee28d674e2520d3f10b3f651a7680e -X theirs --no-commit + + # Versions for the release, in order DD4hep and podio&edm4hep and LCIO git cherry-pick 43d1cdb0bd4780bff369dafa681a8a7939313784 -X theirs --no-commit git cherry-pick 5d9c534018593fdef5db1028c60026d26bf4d65b -X theirs --no-commit From 3468d9248c2c0a4b0838a62f117c11a73af5093f Mon Sep 17 00:00:00 2001 From: jmcarcell Date: Mon, 7 Oct 2024 16:05:26 +0200 Subject: [PATCH 14/34] Add a cherry pick for py-gevent --- .cherry-pick | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.cherry-pick b/.cherry-pick index 441f9db3..9f28c807 100644 --- a/.cherry-pick +++ b/.cherry-pick @@ -63,6 +63,8 @@ git cherry-pick bbb97dfb9b976e588ad63b19cd401788c9d6e5bc -X theirs --no-commit # madgraph5amc: add v3.5.6, remove when https://github.com/spack/spack/pull/46844 is merged git cherry-pick 5777576e37ee28d674e2520d3f10b3f651a7680e -X theirs --no-commit +py-gevent: add a patch for cython 3.0.10 and 3.0.11, remove when https://github.com/spack/spack/pull/46845 is merged +git cherry-pick 06f21ae4e2499bccaa6c52359bafbb93c161944b -X theirs --no-commit # Versions for the release, in order DD4hep and podio&edm4hep and LCIO git cherry-pick 43d1cdb0bd4780bff369dafa681a8a7939313784 -X theirs --no-commit From 770779c6e4d2f828066e6495ec3a402378251623 Mon Sep 17 00:00:00 2001 From: jmcarcell Date: Mon, 7 Oct 2024 16:09:12 +0200 Subject: [PATCH 15/34] Fix the URL and add v0.1 --- packages/k4generatorsconfig/package.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/k4generatorsconfig/package.py b/packages/k4generatorsconfig/package.py index c1f523f7..3fe5f38c 100644 --- a/packages/k4generatorsconfig/package.py +++ b/packages/k4generatorsconfig/package.py @@ -9,8 +9,7 @@ class K4generatorsconfig(CMakePackage): homepage = "https://github.com/key4hep/k4GeneratorsConfig" git = "https://github.com/key4hep/k4GeneratorsConfig.git" - # To be changed once there is a first version - url = "https://github.com/key4hep/k4GeneratorsConfig.git/archive/v00-16-07.tar.gz" + url = "https://github.com/key4hep/k4GeneratorsConfig/archive/refs/tags/v0.1.tar.gz" generator = "Ninja" @@ -18,6 +17,8 @@ class K4generatorsconfig(CMakePackage): version("main", branch="main") + version("0.1", sha256="0309f25bc4149de8c17a4615146074ece46f6f384a152e0fd05853ec652d9ad4") + depends_on("podio") depends_on("edm4hep") depends_on("hepmc3") From bc43f5e8549f5ac0014cd9cbf0d5490453d2b8e8 Mon Sep 17 00:00:00 2001 From: jmcarcell Date: Mon, 7 Oct 2024 16:12:04 +0200 Subject: [PATCH 16/34] Fix format --- packages/k4generatorsconfig/package.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/k4generatorsconfig/package.py b/packages/k4generatorsconfig/package.py index 3fe5f38c..aad97f05 100644 --- a/packages/k4generatorsconfig/package.py +++ b/packages/k4generatorsconfig/package.py @@ -17,7 +17,9 @@ class K4generatorsconfig(CMakePackage): version("main", branch="main") - version("0.1", sha256="0309f25bc4149de8c17a4615146074ece46f6f384a152e0fd05853ec652d9ad4") + version( + "0.1", sha256="0309f25bc4149de8c17a4615146074ece46f6f384a152e0fd05853ec652d9ad4" + ) depends_on("podio") depends_on("edm4hep") From 4ad90de3ff73ab290259635ba85c4edcb6b8a8d4 Mon Sep 17 00:00:00 2001 From: jmcarcell Date: Mon, 7 Oct 2024 20:16:04 +0200 Subject: [PATCH 17/34] Change comment --- .cherry-pick | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.cherry-pick b/.cherry-pick index 9f28c807..b25aee61 100644 --- a/.cherry-pick +++ b/.cherry-pick @@ -63,7 +63,7 @@ git cherry-pick bbb97dfb9b976e588ad63b19cd401788c9d6e5bc -X theirs --no-commit # madgraph5amc: add v3.5.6, remove when https://github.com/spack/spack/pull/46844 is merged git cherry-pick 5777576e37ee28d674e2520d3f10b3f651a7680e -X theirs --no-commit -py-gevent: add a patch for cython 3.0.10 and 3.0.11, remove when https://github.com/spack/spack/pull/46845 is merged +py-gevent: add a patch for cython 3.0.10 and 3.0.11, remove! git cherry-pick 06f21ae4e2499bccaa6c52359bafbb93c161944b -X theirs --no-commit # Versions for the release, in order DD4hep and podio&edm4hep and LCIO From 716fc16f24f67203e6a21ce6daa39f4a9e9fcc5f Mon Sep 17 00:00:00 2001 From: jmcarcell Date: Mon, 7 Oct 2024 20:19:05 +0200 Subject: [PATCH 18/34] Change comment for madgraph --- .cherry-pick | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.cherry-pick b/.cherry-pick index b25aee61..7a0a7845 100644 --- a/.cherry-pick +++ b/.cherry-pick @@ -60,7 +60,7 @@ git cherry-pick bb9bbeecad68dcc1e14211fa7940d26df663aaea -X theirs --no-commit # py-lxml: add version 5.3.0, remove when https://github.com/spack/spack/pull/46771 is merged git cherry-pick bbb97dfb9b976e588ad63b19cd401788c9d6e5bc -X theirs --no-commit -# madgraph5amc: add v3.5.6, remove when https://github.com/spack/spack/pull/46844 is merged +# madgraph5amc: add v3.5.6, remove! git cherry-pick 5777576e37ee28d674e2520d3f10b3f651a7680e -X theirs --no-commit py-gevent: add a patch for cython 3.0.10 and 3.0.11, remove! From ddc059d10c03189b8264cecb85293db39fb630f8 Mon Sep 17 00:00:00 2001 From: jmcarcell Date: Mon, 7 Oct 2024 20:26:40 +0200 Subject: [PATCH 19/34] Change comments and fix another comment --- .cherry-pick | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.cherry-pick b/.cherry-pick index 7a0a7845..412f0565 100644 --- a/.cherry-pick +++ b/.cherry-pick @@ -11,7 +11,7 @@ git cherry-pick 42c070632bcb0f8333bc029e17a53646d9589d7e -X theirs --no-commit # protobuf in CMAKE_INSTALL_LIBDIR which is lib64 so a symlink is created here git cherry-pick 3ec184fad8582cc501f55e0ea0b0f6b3fb9b70bf -X theirs --no-commit -# add a recent version of madgraph, remove when https://github.com/spack/spack/pull/41128 is merged +# add a recent version of madgraph, remove! curl -s https://patch-diff.githubusercontent.com/raw/spack/spack/pull/41128.diff | patch -p1 # add vdt for CPATH, needed for podio+rntuple @@ -48,7 +48,7 @@ git cherry-pick 096ab11961995ac8d69f7b177cbcadf618d3068e -X theirs --no-commit # texlive: add new versions, remove! git cherry-pick 5398b1be15245e1be480c5aa4706f57795208505 -X theirs --no-commit -# texlive: fix mtxrun, remove when https://github.com/spack/spack/pull/46465 is merged +# texlive: fix mtxrun, remove! curl -s https://patch-diff.githubusercontent.com/raw/spack/spack/pull/46465.diff | patch -p1 # py-onnx: add a patch for the standard, remove after 1.15.0 @@ -63,7 +63,7 @@ git cherry-pick bbb97dfb9b976e588ad63b19cd401788c9d6e5bc -X theirs --no-commit # madgraph5amc: add v3.5.6, remove! git cherry-pick 5777576e37ee28d674e2520d3f10b3f651a7680e -X theirs --no-commit -py-gevent: add a patch for cython 3.0.10 and 3.0.11, remove! +# py-gevent: add a patch for cython 3.0.10 and 3.0.11, remove! git cherry-pick 06f21ae4e2499bccaa6c52359bafbb93c161944b -X theirs --no-commit # Versions for the release, in order DD4hep and podio&edm4hep and LCIO From 10f969078a5ea71b7592aa4bb4d3340b13ca9c57 Mon Sep 17 00:00:00 2001 From: jmcarcell Date: Mon, 7 Oct 2024 20:28:02 +0200 Subject: [PATCH 20/34] Just add the k4geo url for now --- packages/k4geo/package.py | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/k4geo/package.py b/packages/k4geo/package.py index 5fd65487..f9de40a6 100644 --- a/packages/k4geo/package.py +++ b/packages/k4geo/package.py @@ -19,6 +19,7 @@ class K4geo(CMakePackage): version( "0.21", sha256="11074495f861d944b741187e8e4dedb4e7f85124f304605f8f8c7dce69dda4fb", + url="https://github.com/key4hep/k4geo/archive/refs/tags/v00-21.tar.gz", ) version( "0.20.0", From c86f7514dda6f635b25a5c7ef9d2eda1780062ed Mon Sep 17 00:00:00 2001 From: jmcarcell Date: Mon, 7 Oct 2024 20:43:36 +0200 Subject: [PATCH 21/34] Change a few comments --- .cherry-pick | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.cherry-pick b/.cherry-pick index 412f0565..005a52cb 100644 --- a/.cherry-pick +++ b/.cherry-pick @@ -32,10 +32,10 @@ git cherry-pick c8191268c3ea4aca6e870ad40d695e92f94d0e47 -X theirs --no-commit # zziplib: add 0.13.78, remove! git cherry-pick db5538f5f12de8d1599ef4339e2dd1756d1230ad -X theirs --no-commit -# pybind11: fix pkgconfig, remove when https://github.com/spack/spack/pull/46298 is merged +# pybind11: fix pkgconfig, remove! curl -s https://patch-diff.githubusercontent.com/raw/spack/spack/pull/46298.diff | patch -p1 -# gaudi: add patches, remove when https://github.com/spack/spack/pull/46365 is merged +# gaudi: add patches, remove! curl -s https://patch-diff.githubusercontent.com/raw/spack/spack/pull/46365.diff | patch -p1 # py-awkward and py-awkward-cpp: fixes, remove! @@ -53,7 +53,7 @@ curl -s https://patch-diff.githubusercontent.com/raw/spack/spack/pull/46465.diff # py-onnx: add a patch for the standard, remove after 1.15.0 git add . -git cherry-pick 248a7c0f4894222bfcd0bb76b13a984c92d4c938 -X theirs --no-commit +git cherry-pick bbd205543b09139f2f57f21099eb366c9f183d76 -X theirs --no-commit # py-cython: add version 3.0.11, remove when https://github.com/spack/spack/pull/46772 is merged git cherry-pick bb9bbeecad68dcc1e14211fa7940d26df663aaea -X theirs --no-commit From 1ef456057e1331785e2d2892366be6c1ff4bdf3f Mon Sep 17 00:00:00 2001 From: jmcarcell Date: Mon, 7 Oct 2024 20:49:21 +0200 Subject: [PATCH 22/34] Fix sha256 --- packages/k4geo/package.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/k4geo/package.py b/packages/k4geo/package.py index f9de40a6..3962c79f 100644 --- a/packages/k4geo/package.py +++ b/packages/k4geo/package.py @@ -18,7 +18,7 @@ class K4geo(CMakePackage): version("main", branch="main") version( "0.21", - sha256="11074495f861d944b741187e8e4dedb4e7f85124f304605f8f8c7dce69dda4fb", + sha256="0451e532fd22b2b9ea93a71f7036ea6de44386ecb10a84f28bc1d9fd557c6ad1", url="https://github.com/key4hep/k4geo/archive/refs/tags/v00-21.tar.gz", ) version( From f6c975f8ad391e4415fdd7492a2153141595bd2a Mon Sep 17 00:00:00 2001 From: jmcarcell Date: Mon, 7 Oct 2024 20:57:40 +0200 Subject: [PATCH 23/34] Fix url for k4Reco --- packages/k4reco/package.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/k4reco/package.py b/packages/k4reco/package.py index 5e98c568..e78a6a4e 100644 --- a/packages/k4reco/package.py +++ b/packages/k4reco/package.py @@ -5,7 +5,7 @@ class K4reco(CMakePackage, Key4hepPackage): """Reconstruction algorithms using Gaudi in native key4hep""" homepage = "https://github.com/key4hep/k4Reco" - url = "https://github.com/key4hep/k4Reco/archive/v00-01.tar.gz" + url = "https://github.com/key4hep/k4Reco/archive/v00-01-00.tar.gz" git = "https://github.com/key4hep/k4Reco.git" version("main", branch="main") From 33c85f8fbe267bfe9784459b9a183ea3c062d7bf Mon Sep 17 00:00:00 2001 From: jmcarcell Date: Mon, 7 Oct 2024 21:11:59 +0200 Subject: [PATCH 24/34] Fix sha256sum for k4Reco --- packages/k4reco/package.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/k4reco/package.py b/packages/k4reco/package.py index e78a6a4e..4bff01d3 100644 --- a/packages/k4reco/package.py +++ b/packages/k4reco/package.py @@ -12,7 +12,7 @@ class K4reco(CMakePackage, Key4hepPackage): version( "0.1.0", - sha256="93ee8a66aeb31ed501a356a145551f9836fb744e22b435c6577ea5274ece39c6", + sha256="6309de6cb083f1d263c40b99f06b47b774d485dc5361f98dad2f6e111376d69e", ) depends_on("dd4hep") From f3f142c8bb1c36e8d20885b9b15ccc202112c167 Mon Sep 17 00:00:00 2001 From: jmcarcell Date: Mon, 7 Oct 2024 21:24:21 +0200 Subject: [PATCH 25/34] Remove the environment requirement --- scripts/delete-unused.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/delete-unused.sh b/scripts/delete-unused.sh index ce76d29f..2da61517 100755 --- a/scripts/delete-unused.sh +++ b/scripts/delete-unused.sh @@ -1,7 +1,7 @@ # This will delete unused (from example from a previous failed installation) specs that # are no longer in the current installation -spack -e . python -c 'from spack.cmd import uninstall; uninstall.do_uninstall([x for x in spack.store.STORE.db.query_local() if not any(x.satisfies(y) for y in spack.environment.active_environment().all_specs_generator())], False)' +spack python -c 'from spack.cmd import uninstall; uninstall.do_uninstall([x for x in spack.store.STORE.db.query_local() if not any(x.satisfies(y) for y in spack.environment.active_environment().all_specs_generator())], False)' # Same command but only print what would be deleted -# spack -e . python -c 'print([x.name for x in spack.store.STORE.db.query_local() if not any(x.satisfies(y) for y in spack.environment.active_environment().all_specs_generator())])' +# spack python -c 'print([x.name for x in spack.store.STORE.db.query_local() if not any(x.satisfies(y) for y in spack.environment.active_environment().all_specs_generator())])' From 19d525767fdb46d007d9150c68817d25b8571a16 Mon Sep 17 00:00:00 2001 From: jmcarcell Date: Mon, 7 Oct 2024 22:26:32 +0200 Subject: [PATCH 26/34] Change the setup of the environments --- environments/key4hep-common-dbg/packages.yaml | 129 ++++++++++++++++++ environments/key4hep-common-opt/packages.yaml | 129 ++++++++++++++++++ .../key4hep-nightly-dbg/packages.yaml | 126 ----------------- environments/key4hep-nightly-dbg/spack.yaml | 1 + .../key4hep-nightly-opt/packages.yaml | 126 ----------------- environments/key4hep-nightly-opt/spack.yaml | 1 + .../packages.yaml | 0 environments/key4hep-release-dbg/spack.yaml | 15 ++ .../key4hep-release-opt/packages.yaml | 3 + .../spack.yaml | 1 + 10 files changed, 279 insertions(+), 252 deletions(-) create mode 100644 environments/key4hep-common-dbg/packages.yaml create mode 100644 environments/key4hep-common-opt/packages.yaml rename environments/{key4hep-release => key4hep-release-dbg}/packages.yaml (100%) create mode 100644 environments/key4hep-release-dbg/spack.yaml create mode 100644 environments/key4hep-release-opt/packages.yaml rename environments/{key4hep-release => key4hep-release-opt}/spack.yaml (91%) diff --git a/environments/key4hep-common-dbg/packages.yaml b/environments/key4hep-common-dbg/packages.yaml new file mode 100644 index 00000000..66d9a4e2 --- /dev/null +++ b/environments/key4hep-common-dbg/packages.yaml @@ -0,0 +1,129 @@ +packages: + acts: + require: build_type=Debug + aidatt: + require: build_type=Debug + ced: + require: build_type=Debug + cedviewer: + require: build_type=Debug + cepcsw: + require: build_type=Debug + clicperformance: + require: build_type=Debug + conformaltracking: + require: build_type=Debug + dd4hep: + require: build_type=Debug + ddfastshowerml: + require: build_type=Debug + ddkaltest: + require: build_type=Debug + ddmarlinpandora: + require: build_type=Debug + delphes: + require: build_type=Debug + dual-readout: + require: build_type=Debug + edm4hep: + require: build_type=Debug cxxstd=20 + fcalclusterer: + require: build_type=Debug + fccanalyses: + require: build_type=Debug + fccdetectors: + require: build_type=Debug + fccsw: + require: build_type=Debug + forwardtracking: + require: build_type=Debug + gaudi: + require: build_type=Debug + gear: + require: build_type=Debug + ilcutil: + require: build_type=Debug cxxstd=20 + ildperformance: + require: build_type=Debug + key4hep-stack: + require: build_type=Debug + k4clue: + require: build_type=Debug + k4edm4hep2lcioconv: + require: build_type=Debug + k4fwcore: + require: build_type=Debug + k4gaudipandora: + require: build_type=Debug + k4gen: + require: build_type=Debug + k4generatorsconfig: + require: build_type=Debug + k4geo: + require: build_type=Debug + k4marlinwrapper: + require: build_type=Debug + k4projecttemplate: + require: build_type=Debug + k4reccalorimeter: + require: build_type=Debug + k4reco: + require: build_type=Debug + k4rectracker: + require: build_type=Debug + k4simdelphes: + require: build_type=Debug + k4simgeant4: + require: build_type=Debug + kaltest: + require: build_type=Debug + kitrack: + require: build_type=Debug + kitrackmarlin: + require: build_type=Debug + lccd: + require: build_type=Debug + lcfiplus: + require: build_type=Debug + lcio: + require: build_type=Debug cxxstd=20 + lctuple: + require: build_type=Debug + marlin: + require: build_type=Debug + marlindd4hep: + require: build_type=Debug + marlinfastjet: + require: build_type=Debug + marlinkinfit: + require: build_type=Debug + marlinkinfitprocessors: + require: build_type=Debug + marlinmlflavortagging: + require: build_type=Debug + marlinreco: + require: build_type=Debug + marlintrk: + require: build_type=Debug + marlintrkprocessors: + require: build_type=Debug + marlinutil: + require: build_type=Debug + opendatadetector: + require: build_type=Debug + overlay: + require: build_type=Debug + pandoraanalysis: + require: build_type=Debug + physsim: + require: build_type=Debug + podio: + require: build_type=Debug + raida: + require: build_type=Debug + sio: + require: build_type=Debug cxxstd=20 + + whizard: + require: ~fastjet+latex+lcio~lhapdf+openloops+openmp+pythia8+gosam hepmc=3 + diff --git a/environments/key4hep-common-opt/packages.yaml b/environments/key4hep-common-opt/packages.yaml new file mode 100644 index 00000000..d1d97741 --- /dev/null +++ b/environments/key4hep-common-opt/packages.yaml @@ -0,0 +1,129 @@ +packages: + acts: + require: build_type=Release + aidatt: + require: build_type=Release + ced: + require: build_type=Release + cedviewer: + require: build_type=Release + cepcsw: + require: build_type=Release + clicperformance: + require: build_type=Release + conformaltracking: + require: build_type=Release + dd4hep: + require: build_type=Release + ddfastshowerml: + require: build_type=Release + ddkaltest: + require: build_type=Release + ddmarlinpandora: + require: build_type=Release + delphes: + require: build_type=Release + dual-readout: + require: build_type=Release + edm4hep: + require: build_type=Release cxxstd=20 + fcalclusterer: + require: build_type=Release + fccanalyses: + require: build_type=Release + fccdetectors: + require: build_type=Release + fccsw: + require: build_type=Release + forwardtracking: + require: build_type=Release + gaudi: + require: build_type=Release + gear: + require: build_type=Release + ilcutil: + require: build_type=Release cxxstd=20 + ildperformance: + require: build_type=Release + key4hep-stack: + require: build_type=Release + k4clue: + require: build_type=Release + k4edm4hep2lcioconv: + require: build_type=Release + k4fwcore: + require: build_type=Release + k4gaudipandora: + require: build_type=Release + k4gen: + require: build_type=Release + k4generatorsconfig: + require: build_type=Release + k4geo: + require: build_type=Release + k4marlinwrapper: + require: build_type=Release + k4projecttemplate: + require: build_type=Release + k4reccalorimeter: + require: build_type=Release + k4reco: + require: build_type=Release + k4rectracker: + require: build_type=Release + k4simdelphes: + require: build_type=Release + k4simgeant4: + require: build_type=Release + kaltest: + require: build_type=Release + kitrack: + require: build_type=Release + kitrackmarlin: + require: build_type=Release + lccd: + require: build_type=Release + lcfiplus: + require: build_type=Release + lcio: + require: build_type=Release cxxstd=20 + lctuple: + require: build_type=Release + marlin: + require: build_type=Release + marlindd4hep: + require: build_type=Release + marlinfastjet: + require: build_type=Release + marlinkinfit: + require: build_type=Release + marlinkinfitprocessors: + require: build_type=Release + marlinmlflavortagging: + require: build_type=Release + marlinreco: + require: build_type=Release + marlintrk: + require: build_type=Release + marlintrkprocessors: + require: build_type=Release + marlinutil: + require: build_type=Release + opendatadetector: + require: build_type=Release + overlay: + require: build_type=Release + pandoraanalysis: + require: build_type=Release + physsim: + require: build_type=Release + podio: + require: build_type=Release + raida: + require: build_type=Release + sio: + require: build_type=Release cxxstd=20 + + whizard: + require: ~fastjet+latex+lcio~lhapdf+openloops+openmp+pythia8+gosam hepmc=3 + diff --git a/environments/key4hep-nightly-dbg/packages.yaml b/environments/key4hep-nightly-dbg/packages.yaml index 66d9a4e2..efa79a7f 100644 --- a/environments/key4hep-nightly-dbg/packages.yaml +++ b/environments/key4hep-nightly-dbg/packages.yaml @@ -1,129 +1,3 @@ packages: - acts: - require: build_type=Debug - aidatt: - require: build_type=Debug - ced: - require: build_type=Debug - cedviewer: - require: build_type=Debug - cepcsw: - require: build_type=Debug - clicperformance: - require: build_type=Debug - conformaltracking: - require: build_type=Debug - dd4hep: - require: build_type=Debug - ddfastshowerml: - require: build_type=Debug - ddkaltest: - require: build_type=Debug - ddmarlinpandora: - require: build_type=Debug - delphes: - require: build_type=Debug - dual-readout: - require: build_type=Debug - edm4hep: - require: build_type=Debug cxxstd=20 - fcalclusterer: - require: build_type=Debug - fccanalyses: - require: build_type=Debug - fccdetectors: - require: build_type=Debug - fccsw: - require: build_type=Debug - forwardtracking: - require: build_type=Debug - gaudi: - require: build_type=Debug - gear: - require: build_type=Debug - ilcutil: - require: build_type=Debug cxxstd=20 - ildperformance: - require: build_type=Debug - key4hep-stack: - require: build_type=Debug - k4clue: - require: build_type=Debug - k4edm4hep2lcioconv: - require: build_type=Debug - k4fwcore: - require: build_type=Debug - k4gaudipandora: - require: build_type=Debug - k4gen: - require: build_type=Debug - k4generatorsconfig: - require: build_type=Debug - k4geo: - require: build_type=Debug - k4marlinwrapper: - require: build_type=Debug - k4projecttemplate: - require: build_type=Debug - k4reccalorimeter: - require: build_type=Debug - k4reco: - require: build_type=Debug - k4rectracker: - require: build_type=Debug - k4simdelphes: - require: build_type=Debug - k4simgeant4: - require: build_type=Debug - kaltest: - require: build_type=Debug - kitrack: - require: build_type=Debug - kitrackmarlin: - require: build_type=Debug - lccd: - require: build_type=Debug - lcfiplus: - require: build_type=Debug - lcio: - require: build_type=Debug cxxstd=20 - lctuple: - require: build_type=Debug - marlin: - require: build_type=Debug - marlindd4hep: - require: build_type=Debug - marlinfastjet: - require: build_type=Debug - marlinkinfit: - require: build_type=Debug - marlinkinfitprocessors: - require: build_type=Debug - marlinmlflavortagging: - require: build_type=Debug - marlinreco: - require: build_type=Debug - marlintrk: - require: build_type=Debug - marlintrkprocessors: - require: build_type=Debug - marlinutil: - require: build_type=Debug - opendatadetector: - require: build_type=Debug - overlay: - require: build_type=Debug - pandoraanalysis: - require: build_type=Debug - physsim: - require: build_type=Debug - podio: - require: build_type=Debug - raida: - require: build_type=Debug - sio: - require: build_type=Debug cxxstd=20 - whizard: require: ~fastjet+latex+lcio~lhapdf+openloops+openmp+pythia8+gosam hepmc=3 - diff --git a/environments/key4hep-nightly-dbg/spack.yaml b/environments/key4hep-nightly-dbg/spack.yaml index 9507cf06..1ef1554e 100644 --- a/environments/key4hep-nightly-dbg/spack.yaml +++ b/environments/key4hep-nightly-dbg/spack.yaml @@ -5,6 +5,7 @@ spack: # Put packages before the common packages so that it doesn't get overwritten # See https://github.com/spack/spack/blob/master/lib/spack/docs/environments.rst?plain=1#L528 - ./packages.yaml + - ../key4hep-common-dbg/packages.yaml - ../key4hep-common/packages.yaml - ../key4hep-common/compilers.yaml - ../key4hep-nightly-share/packages.yaml diff --git a/environments/key4hep-nightly-opt/packages.yaml b/environments/key4hep-nightly-opt/packages.yaml index d1d97741..efa79a7f 100644 --- a/environments/key4hep-nightly-opt/packages.yaml +++ b/environments/key4hep-nightly-opt/packages.yaml @@ -1,129 +1,3 @@ packages: - acts: - require: build_type=Release - aidatt: - require: build_type=Release - ced: - require: build_type=Release - cedviewer: - require: build_type=Release - cepcsw: - require: build_type=Release - clicperformance: - require: build_type=Release - conformaltracking: - require: build_type=Release - dd4hep: - require: build_type=Release - ddfastshowerml: - require: build_type=Release - ddkaltest: - require: build_type=Release - ddmarlinpandora: - require: build_type=Release - delphes: - require: build_type=Release - dual-readout: - require: build_type=Release - edm4hep: - require: build_type=Release cxxstd=20 - fcalclusterer: - require: build_type=Release - fccanalyses: - require: build_type=Release - fccdetectors: - require: build_type=Release - fccsw: - require: build_type=Release - forwardtracking: - require: build_type=Release - gaudi: - require: build_type=Release - gear: - require: build_type=Release - ilcutil: - require: build_type=Release cxxstd=20 - ildperformance: - require: build_type=Release - key4hep-stack: - require: build_type=Release - k4clue: - require: build_type=Release - k4edm4hep2lcioconv: - require: build_type=Release - k4fwcore: - require: build_type=Release - k4gaudipandora: - require: build_type=Release - k4gen: - require: build_type=Release - k4generatorsconfig: - require: build_type=Release - k4geo: - require: build_type=Release - k4marlinwrapper: - require: build_type=Release - k4projecttemplate: - require: build_type=Release - k4reccalorimeter: - require: build_type=Release - k4reco: - require: build_type=Release - k4rectracker: - require: build_type=Release - k4simdelphes: - require: build_type=Release - k4simgeant4: - require: build_type=Release - kaltest: - require: build_type=Release - kitrack: - require: build_type=Release - kitrackmarlin: - require: build_type=Release - lccd: - require: build_type=Release - lcfiplus: - require: build_type=Release - lcio: - require: build_type=Release cxxstd=20 - lctuple: - require: build_type=Release - marlin: - require: build_type=Release - marlindd4hep: - require: build_type=Release - marlinfastjet: - require: build_type=Release - marlinkinfit: - require: build_type=Release - marlinkinfitprocessors: - require: build_type=Release - marlinmlflavortagging: - require: build_type=Release - marlinreco: - require: build_type=Release - marlintrk: - require: build_type=Release - marlintrkprocessors: - require: build_type=Release - marlinutil: - require: build_type=Release - opendatadetector: - require: build_type=Release - overlay: - require: build_type=Release - pandoraanalysis: - require: build_type=Release - physsim: - require: build_type=Release - podio: - require: build_type=Release - raida: - require: build_type=Release - sio: - require: build_type=Release cxxstd=20 - whizard: require: ~fastjet+latex+lcio~lhapdf+openloops+openmp+pythia8+gosam hepmc=3 - diff --git a/environments/key4hep-nightly-opt/spack.yaml b/environments/key4hep-nightly-opt/spack.yaml index 9507cf06..ed2ef2db 100644 --- a/environments/key4hep-nightly-opt/spack.yaml +++ b/environments/key4hep-nightly-opt/spack.yaml @@ -5,6 +5,7 @@ spack: # Put packages before the common packages so that it doesn't get overwritten # See https://github.com/spack/spack/blob/master/lib/spack/docs/environments.rst?plain=1#L528 - ./packages.yaml + - ../key4hep-common-opt/packages.yaml - ../key4hep-common/packages.yaml - ../key4hep-common/compilers.yaml - ../key4hep-nightly-share/packages.yaml diff --git a/environments/key4hep-release/packages.yaml b/environments/key4hep-release-dbg/packages.yaml similarity index 100% rename from environments/key4hep-release/packages.yaml rename to environments/key4hep-release-dbg/packages.yaml diff --git a/environments/key4hep-release-dbg/spack.yaml b/environments/key4hep-release-dbg/spack.yaml new file mode 100644 index 00000000..884cd090 --- /dev/null +++ b/environments/key4hep-release-dbg/spack.yaml @@ -0,0 +1,15 @@ +spack: + view: false + include: + - ../key4hep-common/config-release.yaml + # Put packages before the common packages so that it doesn't get overwritten + # See https://github.com/spack/spack/blob/master/lib/spack/docs/environments.rst?plain=1#L528 + - ./packages.yaml + - ../key4hep-common-dbg/packages.yaml + - ../key4hep-common/packages.yaml + - ../key4hep-common/compilers.yaml + - ../key4hep-release-share/packages.yaml + repos: + - ../.. + specs: + - key4hep-stack+devtools \ No newline at end of file diff --git a/environments/key4hep-release-opt/packages.yaml b/environments/key4hep-release-opt/packages.yaml new file mode 100644 index 00000000..d178f5aa --- /dev/null +++ b/environments/key4hep-release-opt/packages.yaml @@ -0,0 +1,3 @@ +packages: + whizard: + require: ~fastjet~latex+lcio~lhapdf+openloops+openmp+pythia8+gosam hepmc=3 diff --git a/environments/key4hep-release/spack.yaml b/environments/key4hep-release-opt/spack.yaml similarity index 91% rename from environments/key4hep-release/spack.yaml rename to environments/key4hep-release-opt/spack.yaml index e71e740b..ec8eeb8e 100644 --- a/environments/key4hep-release/spack.yaml +++ b/environments/key4hep-release-opt/spack.yaml @@ -5,6 +5,7 @@ spack: # Put packages before the common packages so that it doesn't get overwritten # See https://github.com/spack/spack/blob/master/lib/spack/docs/environments.rst?plain=1#L528 - ./packages.yaml + - ../key4hep-common-opt/packages.yaml - ../key4hep-common/packages.yaml - ../key4hep-common/compilers.yaml - ../key4hep-release-share/packages.yaml From f1703b5afe16fc3ba684eca0e26316c7c720fe1f Mon Sep 17 00:00:00 2001 From: jmcarcell Date: Tue, 8 Oct 2024 08:19:12 +0200 Subject: [PATCH 27/34] Bring back the old fix for py-onnx --- .cherry-pick | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.cherry-pick b/.cherry-pick index 005a52cb..94e2fa0f 100644 --- a/.cherry-pick +++ b/.cherry-pick @@ -53,7 +53,7 @@ curl -s https://patch-diff.githubusercontent.com/raw/spack/spack/pull/46465.diff # py-onnx: add a patch for the standard, remove after 1.15.0 git add . -git cherry-pick bbd205543b09139f2f57f21099eb366c9f183d76 -X theirs --no-commit +git cherry-pick 248a7c0f4894222bfcd0bb76b13a984c92d4c938 -X theirs --no-commit # py-cython: add version 3.0.11, remove when https://github.com/spack/spack/pull/46772 is merged git cherry-pick bb9bbeecad68dcc1e14211fa7940d26df663aaea -X theirs --no-commit From c6056b2592cd29b4bdc01d20734386e7b0248546 Mon Sep 17 00:00:00 2001 From: jmcarcell Date: Tue, 8 Oct 2024 09:19:49 +0200 Subject: [PATCH 28/34] Remove whizard from common-opt --- environments/key4hep-common-opt/packages.yaml | 3 --- 1 file changed, 3 deletions(-) diff --git a/environments/key4hep-common-opt/packages.yaml b/environments/key4hep-common-opt/packages.yaml index d1d97741..31f5aa39 100644 --- a/environments/key4hep-common-opt/packages.yaml +++ b/environments/key4hep-common-opt/packages.yaml @@ -124,6 +124,3 @@ packages: sio: require: build_type=Release cxxstd=20 - whizard: - require: ~fastjet+latex+lcio~lhapdf+openloops+openmp+pythia8+gosam hepmc=3 - From aa5fbf091fd7e9485727936a6cc1d9ae07b553cc Mon Sep 17 00:00:00 2001 From: jmcarcell Date: Tue, 8 Oct 2024 09:22:08 +0200 Subject: [PATCH 29/34] Remove whizard from common-dbg --- environments/key4hep-common-dbg/packages.yaml | 3 --- 1 file changed, 3 deletions(-) diff --git a/environments/key4hep-common-dbg/packages.yaml b/environments/key4hep-common-dbg/packages.yaml index 66d9a4e2..820ebef8 100644 --- a/environments/key4hep-common-dbg/packages.yaml +++ b/environments/key4hep-common-dbg/packages.yaml @@ -124,6 +124,3 @@ packages: sio: require: build_type=Debug cxxstd=20 - whizard: - require: ~fastjet+latex+lcio~lhapdf+openloops+openmp+pythia8+gosam hepmc=3 - From 7181e7b324a806d2d7c55e0ab29482e64451fd67 Mon Sep 17 00:00:00 2001 From: jmcarcell Date: Tue, 8 Oct 2024 09:46:05 +0200 Subject: [PATCH 30/34] Add an argument for only merging --- scripts/fetch_nightly_versions.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/fetch_nightly_versions.py b/scripts/fetch_nightly_versions.py index b8422003..c62dfec0 100755 --- a/scripts/fetch_nightly_versions.py +++ b/scripts/fetch_nightly_versions.py @@ -68,6 +68,11 @@ def get_latest_commit( "--extra-path", help="path to a yaml file with spack packages", ) + parser.add_argument( + "--only-merge", + help="only merge the packages.yaml files", + action="store_true", + ) # parser.add_argument( # "--spack", # help="path to the spack.yaml in the nightly environment", @@ -164,6 +169,8 @@ def get_latest_commit( ("raida", "ilcsoft/raida"), ("sio", "ilcsoft/sio"), ]: + if args.only_merge: + break gitlab = False if package == "opendatadetector": gitlab = "https://gitlab.cern.ch/api/v4/projects/%s/repository/commits" From 8b6a1a391ab4ac078214e71aae08cc12d5fd8340 Mon Sep 17 00:00:00 2001 From: jmcarcell Date: Tue, 8 Oct 2024 14:11:06 +0200 Subject: [PATCH 31/34] Update the setup script for releases for supporting multiple compilers --- scripts/cvmfs/setup-releases.sh | 37 +++++++++++++++++++-------------- 1 file changed, 21 insertions(+), 16 deletions(-) diff --git a/scripts/cvmfs/setup-releases.sh b/scripts/cvmfs/setup-releases.sh index cbe4209f..296e8363 100644 --- a/scripts/cvmfs/setup-releases.sh +++ b/scripts/cvmfs/setup-releases.sh @@ -40,8 +40,9 @@ function list_releases() { usage return 1 fi - find /cvmfs/sw.hsf.org/key4hep/releases/ -maxdepth 2 -type d -name "*$name*$build_type*" | + find /cvmfs/sw.hsf.org/key4hep/releases/ -maxdepth 2 -type d -name "*$name*$compiler*$build_type*" | \awk -F/ '{print $(NF-1)}' | sort + unset compiler } function list_packages() { @@ -79,29 +80,32 @@ function list_packages() { fi folders+=(/cvmfs/sw.hsf.org/key4hep/releases/$rel/*$name*-*$build_type*) - declare -a package_versions - package_versions=() + declare -A package_versions for folder in "${folders[@]}"; do for package in $(ls $folder); do package_name=$(basename "$package") version_string=$(ls $folder/$package_name -t | head -n 1) package_version=$(echo "$version_string" | awk '{if ($NF ~ /develop/) {split($NF,arr,"_"); printf "%s", arr[1]} else {split($(NF),arr,"-"); printf "%s", arr[1]; for (i=2; i Date: Tue, 8 Oct 2024 14:15:28 +0200 Subject: [PATCH 32/34] Fix commit hash for py-cython --- .cherry-pick | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.cherry-pick b/.cherry-pick index 94e2fa0f..950b767a 100644 --- a/.cherry-pick +++ b/.cherry-pick @@ -56,7 +56,7 @@ git add . git cherry-pick 248a7c0f4894222bfcd0bb76b13a984c92d4c938 -X theirs --no-commit # py-cython: add version 3.0.11, remove when https://github.com/spack/spack/pull/46772 is merged -git cherry-pick bb9bbeecad68dcc1e14211fa7940d26df663aaea -X theirs --no-commit +git cherry-pick 072d308c0b4b53c0d0528ee3a7e59de110133968 -X theirs --no-commit # py-lxml: add version 5.3.0, remove when https://github.com/spack/spack/pull/46771 is merged git cherry-pick bbb97dfb9b976e588ad63b19cd401788c9d6e5bc -X theirs --no-commit From 767e473a9faca91ca5f2e9c080f8517d1fc201ae Mon Sep 17 00:00:00 2001 From: jmcarcell Date: Tue, 8 Oct 2024 14:21:17 +0200 Subject: [PATCH 33/34] Fix commit for py-lxml --- .cherry-pick | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.cherry-pick b/.cherry-pick index 950b767a..24359c39 100644 --- a/.cherry-pick +++ b/.cherry-pick @@ -58,7 +58,7 @@ git cherry-pick 248a7c0f4894222bfcd0bb76b13a984c92d4c938 -X theirs --no-commit # py-cython: add version 3.0.11, remove when https://github.com/spack/spack/pull/46772 is merged git cherry-pick 072d308c0b4b53c0d0528ee3a7e59de110133968 -X theirs --no-commit # py-lxml: add version 5.3.0, remove when https://github.com/spack/spack/pull/46771 is merged -git cherry-pick bbb97dfb9b976e588ad63b19cd401788c9d6e5bc -X theirs --no-commit +git cherry-pick 94ef87d013b3ea9627c1aa850b8929dbe217bf20 -X theirs --no-commit # madgraph5amc: add v3.5.6, remove! git cherry-pick 5777576e37ee28d674e2520d3f10b3f651a7680e -X theirs --no-commit From ec4212dacd8631e7e6c67b5cb851465800439271 Mon Sep 17 00:00:00 2001 From: jmcarcell Date: Tue, 8 Oct 2024 14:27:32 +0200 Subject: [PATCH 34/34] Fix release env --- .github/workflows/concretize.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/concretize.yaml b/.github/workflows/concretize.yaml index 423b5629..4c0482ee 100644 --- a/.github/workflows/concretize.yaml +++ b/.github/workflows/concretize.yaml @@ -49,7 +49,7 @@ jobs: source /key4hep-spack/.cherry-pick if [ "${{ matrix.build_type }}" = "release" ]; then - env=key4hep-release + env=key4hep-release-opt elif [ "${{ matrix.build_type }}" = "nightly" ]; then env=key4hep-nightly-opt pip3 install pyyaml