From 886cc632a0a5a0c4df3b7793b497ddbe8925e357 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 25 Jun 2018 23:28:02 -0400 Subject: unpacker.eclass: disable path expansion while parsing SRC_URI #654960 Closes: https://bugs.gentoo.org/654960 --- eclass/unpacker.eclass | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'eclass') diff --git a/eclass/unpacker.eclass b/eclass/unpacker.eclass index 6e9961206469..c2c69dbc7d6b 100644 --- a/eclass/unpacker.eclass +++ b/eclass/unpacker.eclass @@ -433,7 +433,12 @@ unpacker_src_unpack() { unpacker_src_uri_depends() { local uri deps d - [[ $# -eq 0 ]] && set -- ${SRC_URI} + if [[ $# -eq 0 ]] ; then + # Disable path expansion for USE conditionals. #654960 + set -f + set -- ${SRC_URI} + set +f + fi for uri in "$@" ; do case ${uri} in -- cgit v1.2.3