mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user