commit:     83f06a22d04e760b1509b8dd042fae4a26c1562a
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Wed Mar  6 11:13:55 2019 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Wed Mar  6 11:16:18 2019 +0000
URL:        https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=83f06a22

scripts/bootstrap-prefix: allow usage of pre-set USE-flags

in bootstrap_setup, record requested USE-flags in make.conf such that
for example we can fairly cleanly and painless bootstrap a USE=libressl
prefix.

Verified with i386-pc-solaris2.11/20190305

Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 scripts/bootstrap-prefix.sh | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/scripts/bootstrap-prefix.sh b/scripts/bootstrap-prefix.sh
index 1520bee986..6b76007f86 100755
--- a/scripts/bootstrap-prefix.sh
+++ b/scripts/bootstrap-prefix.sh
@@ -357,8 +357,10 @@ bootstrap_setup() {
                                echo "# Avoid problems due to 
case-insensitivity, bug #524236"
                                echo 'FEATURES="${FEATURES} 
case-insensitive-fs"'
                        fi
-                       [[ -n $PORTDIR_OVERLAY ]] && \
+                       [[ -n ${PORTDIR_OVERLAY} ]] && \
                                echo "PORTDIR_OVERLAY=\"\${PORTDIR_OVERLAY} 
${PORTDIR_OVERLAY}\""
+                       [[ -n ${MAKE_CONF_ADDITIONAL_USE} ]] &&
+                               echo "USE=\"\${USE} 
${MAKE_CONF_ADDITIONAL_USE}\""
                        [[ ${OFFLINE_MODE} ]] && \
                                echo 'FETCHCOMMAND="bash -c \"echo I need 
\${FILE} from \${URI} in \${DISTDIR}; read\""'
                } > "${ROOT}"/etc/portage/make.conf

Reply via email to