From: Jeremy Huddleston Date: Thu, 13 Jan 2005 00:04:39 +0000 (+0000) Subject: Enforce USE=multilib. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=507df221b74357ccd235c44614ceeb73147a958f;p=gentoo.git Enforce USE=multilib. --- diff --git a/profiles/default-linux/amd64/2005.0/profile.bashrc b/profiles/default-linux/amd64/2005.0/profile.bashrc index d40d27333fb4..7e0a27c5f21e 100644 --- a/profiles/default-linux/amd64/2005.0/profile.bashrc +++ b/profiles/default-linux/amd64/2005.0/profile.bashrc @@ -9,3 +9,22 @@ fi export CFLAGS_amd64 export CFLAGS_x86 + +hack_use_ml() { + local x + save_IFS + unset IFS + for x in ${USE}; do + if [ "${x}" = "multilib" ]; then + restore_IFS + return 0 + fi + done + restore_IFS + return 1 +} + +if ! hack_use_ml; then + eerror "The 2005.0 profile requires that you have USE=multilib enabled." + exit 1 +fi