[PATCH 6/6] sci-physics/geant-data: avoid heredoc in global scope

Sam James <[email protected]> Fri, 10 Jul 2026 17:41:12 +0100
Newsgroups gmane.linux.gentoo.devel
Message-ID <9e5f281a93dac70f221070003cddf022b08d859b.1783701664.git.sam@gentoo.org>
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 <[email protected]>
---
 sci-physics/geant-data/geant-data-4.11.3.ebuild | 4 ++--
 sci-physics/geant-data/geant-data-4.11.4.ebuild | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/sci-physics/geant-data/geant-data-4.11.3.ebuild b/sci-physics/geant-data/geant-data-4.11.3.ebuild
index 8cc5e6fc73d2a..31e5f2c594bfd 100644
--- a/sci-physics/geant-data/geant-data-4.11.3.ebuild
+++ b/sci-physics/geant-data/geant-data-4.11.3.ebuild
@@ -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
diff --git a/sci-physics/geant-data/geant-data-4.11.4.ebuild b/sci-physics/geant-data/geant-data-4.11.4.ebuild
index 1505d4cc15309..cdb959e88c943 100644
--- a/sci-physics/geant-data/geant-data-4.11.4.ebuild
+++ b/sci-physics/geant-data/geant-data-4.11.4.ebuild
@@ -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
-- 
2.55.0