unpacker.eclass: disable path expansion while parsing SRC_URI #654960
authorMike Frysinger <vapier@gentoo.org>
Tue, 26 Jun 2018 03:28:02 +0000 (23:28 -0400)
committerMike Frysinger <vapier@gentoo.org>
Tue, 26 Jun 2018 03:29:37 +0000 (23:29 -0400)
Closes: https://bugs.gentoo.org/654960

eclass/unpacker.eclass

index 6e996120646917a1560f420874d46a4e715208af..c2c69dbc7d6b114218299eaf80813977397d3141 100644 (file)
@@ -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