sci-physics/geant-data: 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.

Closes: https://bugs.gentoo.org/978943
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2026-07-10 17:24:37 +01:00
parent b93b996489
commit 690c4a1c4c
2 changed files with 4 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2025 Gentoo Authors
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -35,7 +35,7 @@ DATASETS=(
)
for DATASET in ${!DATASETS[@]}; do
read FILENAME VERSION ENVVAR <<< "${DATASETS[$DATASET]}"
read -rd '' FILENAME VERSION ENVVAR < <(printf %s "${DATASETS[$DATASET]}")
SRC_URI+="${SRC_DATA}/${FILENAME}.${VERSION}.tar.gz "
done
unset DATASET FILENAME VERSION ENVVAR

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2025 Gentoo Authors
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -35,7 +35,7 @@ DATASETS=(
)
for DATASET in ${!DATASETS[@]}; do
read FILENAME VERSION ENVVAR <<< "${DATASETS[$DATASET]}"
read -rd '' FILENAME VERSION ENVVAR < <(printf %s "${DATASETS[$DATASET]}")
SRC_URI+="${SRC_DATA}/${FILENAME}.${VERSION}.tar.gz "
done
unset DATASET FILENAME VERSION ENVVAR