scripts/bootstrap.sh: Expand virtual/os-headers fallback
authorMatt Turner <mattst88@gentoo.org>
Sun, 29 Mar 2020 17:20:24 +0000 (10:20 -0700)
committerMatt Turner <mattst88@gentoo.org>
Sun, 29 Mar 2020 17:44:39 +0000 (10:44 -0700)
Unlikely that this fallback will ever be hit, but might as well prepare.

Signed-off-by: Matt Turner <mattst88@gentoo.org>
scripts/bootstrap.sh

index bfe81ac51ddfb5823e6fe0a026b267144fd8bf92..e0dae52f02de057c23dd2d4790b41d398132c5db 100755 (executable)
@@ -292,7 +292,7 @@ if [[ ${USE_NPTL} = "1" ]] ; then
        # Should we build with nptl only?
        [[ ${USE_NPTLONLY} = "1" ]] && ALLOWED_USE="${ALLOWED_USE} nptlonly"
 fi
-[[ -z ${myOS_HEADERS} ]] && myOS_HEADERS="virtual/os-headers"
+[[ -z ${myOS_HEADERS} ]] && myOS_HEADERS="$(portageq expand_virtual / virtual/os-headers)"
 
 einfo "Using baselayout : ${myBASELAYOUT}"
 einfo "Using portage    : ${myPORTAGE}"