From 195bad8675ed185853c113601533a743813ae191 Mon Sep 17 00:00:00 2001 From: Harmen Stoppels Date: Fri, 24 May 2024 13:25:59 +0200 Subject: [PATCH] Prefer libiconv for iconv (#44335) `glibc` and `musl` provide a basic implementation of `iconv` (`iconv`, `iconv_open`, `iconv_close`), but in practice the installation may be missing the character encoding methods to make them usable. On Fedora for example, users need to ```yum install glibc-gconv-extra``` to get the character encodings that `gettext` requires during configure, namely EUC-JP. Users may not have permissions to install the missing parts of glibc. Since Spack can install `libiconv`, it is simpler to use that by default. --- etc/spack/defaults/cray/packages.yaml | 19 ------------------- etc/spack/defaults/linux/packages.yaml | 19 ------------------- 2 files changed, 38 deletions(-) delete mode 100644 etc/spack/defaults/cray/packages.yaml delete mode 100644 etc/spack/defaults/linux/packages.yaml diff --git a/etc/spack/defaults/cray/packages.yaml b/etc/spack/defaults/cray/packages.yaml deleted file mode 100644 index 6b2c5f2c56..0000000000 --- a/etc/spack/defaults/cray/packages.yaml +++ /dev/null @@ -1,19 +0,0 @@ -# ------------------------------------------------------------------------- -# This file controls default concretization preferences for Spack. -# -# Settings here are versioned with Spack and are intended to provide -# sensible defaults out of the box. Spack maintainers should edit this -# file to keep it current. -# -# Users can override these settings by editing the following files. -# -# Per-spack-instance settings (overrides defaults): -# $SPACK_ROOT/etc/spack/packages.yaml -# -# Per-user settings (overrides default and site settings): -# ~/.spack/packages.yaml -# ------------------------------------------------------------------------- -packages: - all: - providers: - iconv: [glibc, musl, libiconv] diff --git a/etc/spack/defaults/linux/packages.yaml b/etc/spack/defaults/linux/packages.yaml deleted file mode 100644 index 6b2c5f2c56..0000000000 --- a/etc/spack/defaults/linux/packages.yaml +++ /dev/null @@ -1,19 +0,0 @@ -# ------------------------------------------------------------------------- -# This file controls default concretization preferences for Spack. -# -# Settings here are versioned with Spack and are intended to provide -# sensible defaults out of the box. Spack maintainers should edit this -# file to keep it current. -# -# Users can override these settings by editing the following files. -# -# Per-spack-instance settings (overrides defaults): -# $SPACK_ROOT/etc/spack/packages.yaml -# -# Per-user settings (overrides default and site settings): -# ~/.spack/packages.yaml -# ------------------------------------------------------------------------- -packages: - all: - providers: - iconv: [glibc, musl, libiconv]