From 4e62116f217fbb0caef16a93418e8c71f7dbd48b Mon Sep 17 00:00:00 2001 From: Sam James Date: Sun, 12 Jul 2026 20:37:54 +0100 Subject: [PATCH] sci-ml/ollama: avoid heredoc in global scope A heredoc may cause the use of a temporary file with < EAPI 9 and even then still with >= EAPI 9 if the input is large. This becomes a problem if sandboxing is applied to metadata generation. Signed-off-by: Sam James --- sci-ml/ollama/ollama-0.18.0.ebuild | 2 +- sci-ml/ollama/ollama-0.20.3.ebuild | 2 +- sci-ml/ollama/ollama-0.21.2.ebuild | 2 +- sci-ml/ollama/ollama-9999.ebuild | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sci-ml/ollama/ollama-0.18.0.ebuild b/sci-ml/ollama/ollama-0.18.0.ebuild index 570f846d64..35176fe57b 100644 --- a/sci-ml/ollama/ollama-0.18.0.ebuild +++ b/sci-ml/ollama/ollama-0.18.0.ebuild @@ -53,7 +53,7 @@ declare -rgA CPU_FEATURES=( ) add_cpu_features_use() { for flag in "${!CPU_FEATURES[@]}"; do - IFS=$';' read -r arch use <<< "${CPU_FEATURES[${flag}]}" + IFS=$';' read -rd '' arch use < <(printf %s "${CPU_FEATURES[${flag}]}") IUSE+=" cpu_flags_${arch}_${use:-${flag,,}}" done } diff --git a/sci-ml/ollama/ollama-0.20.3.ebuild b/sci-ml/ollama/ollama-0.20.3.ebuild index 0cb7b8bcf1..0d3867bc92 100644 --- a/sci-ml/ollama/ollama-0.20.3.ebuild +++ b/sci-ml/ollama/ollama-0.20.3.ebuild @@ -53,7 +53,7 @@ declare -rgA CPU_FEATURES=( ) add_cpu_features_use() { for flag in "${!CPU_FEATURES[@]}"; do - IFS=$';' read -r arch use <<< "${CPU_FEATURES[${flag}]}" + IFS=$';' read -rd '' arch use < <(printf %s "${CPU_FEATURES[${flag}]}") IUSE+=" cpu_flags_${arch}_${use:-${flag,,}}" done } diff --git a/sci-ml/ollama/ollama-0.21.2.ebuild b/sci-ml/ollama/ollama-0.21.2.ebuild index 1ebf6f9472..7623be9d49 100644 --- a/sci-ml/ollama/ollama-0.21.2.ebuild +++ b/sci-ml/ollama/ollama-0.21.2.ebuild @@ -53,7 +53,7 @@ declare -rgA CPU_FEATURES=( ) add_cpu_features_use() { for flag in "${!CPU_FEATURES[@]}"; do - IFS=$';' read -r arch use <<< "${CPU_FEATURES[${flag}]}" + IFS=$';' read -rd '' arch use < <(printf %s "${CPU_FEATURES[${flag}]}") IUSE+=" cpu_flags_${arch}_${use:-${flag,,}}" done } diff --git a/sci-ml/ollama/ollama-9999.ebuild b/sci-ml/ollama/ollama-9999.ebuild index 965eb534c0..0f21454036 100644 --- a/sci-ml/ollama/ollama-9999.ebuild +++ b/sci-ml/ollama/ollama-9999.ebuild @@ -53,7 +53,7 @@ declare -rgA CPU_FEATURES=( ) add_cpu_features_use() { for flag in "${!CPU_FEATURES[@]}"; do - IFS=$';' read -r arch use <<< "${CPU_FEATURES[${flag}]}" + IFS=$';' read -rd '' arch use < <(printf %s "${CPU_FEATURES[${flag}]}") IUSE+=" cpu_flags_${arch}_${use:-${flag,,}}" done }