From c5b227d14ccba8a691e1ec0331d4eb2ba40c1c95 Mon Sep 17 00:00:00 2001 From: Massimiliano Culpo Date: Mon, 14 Apr 2025 09:39:54 +0200 Subject: [PATCH] iconv: add a strong preference on libiconv by default (#50020) This strong preference fixes a sporadic issue when concretizing environments with `unify:when_possible`. In the first round of concretization, it is almost certain that glibc is installed, and that spec might provide iconv. In later rounds using that as a provider might be preferred, as it leads to less nodes to be "built". To avoid duplication by default, prefer libiconv in a stronger way than default preferences. Signed-off-by: Massimiliano Culpo --- etc/spack/defaults/packages.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/etc/spack/defaults/packages.yaml b/etc/spack/defaults/packages.yaml index f23d55ffb9f..f340cdfeafc 100644 --- a/etc/spack/defaults/packages.yaml +++ b/etc/spack/defaults/packages.yaml @@ -92,6 +92,8 @@ packages: buildable: false hpcx-mpi: buildable: false + iconv: + prefer: [libiconv] mpt: buildable: false spectrum-mpi: