From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id A6D0B1384B4 for ; Sun, 6 Dec 2015 18:58:27 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B47D521C0FE; Sun, 6 Dec 2015 18:58:05 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 83ED621C0EB for ; Sun, 6 Dec 2015 18:58:04 +0000 (UTC) Received: from localhost.localdomain (d202-251.icpnet.pl [109.173.202.251]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mgorny) by smtp.gentoo.org (Postfix) with ESMTPSA id 9C5A7340634; Sun, 6 Dec 2015 18:58:02 +0000 (UTC) From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= To: gentoo-dev@lists.gentoo.org Cc: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Subject: [gentoo-dev] [PATCH 1/9] multilib-build.eclass: Mark eclass-generated variables read-only Date: Sun, 6 Dec 2015 19:57:46 +0100 Message-Id: <1449428274-20439-2-git-send-email-mgorny@gentoo.org> X-Mailer: git-send-email 2.6.3 In-Reply-To: <1449428274-20439-1-git-send-email-mgorny@gentoo.org> References: <1449428274-20439-1-git-send-email-mgorny@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Archives-Salt: f56708c0-cf28-480d-8290-77b419ea5146 X-Archives-Hash: b2205121a055bcdf50f448da925adf78 --- eclass/multilib-build.eclass | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/eclass/multilib-build.eclass b/eclass/multilib-build.eclass index ca0fd544..dd03553 100644 --- a/eclass/multilib-build.eclass +++ b/eclass/multilib-build.eclass @@ -37,7 +37,7 @@ inherit multibuild multilib # Please contact multilib before modifying this list. This way we can # ensure that every *preliminary* work is done and the multilib can be # extended safely. -_MULTILIB_FLAGS=( +declare -g -r _MULTILIB_FLAGS=( abi_x86_32:x86,x86_fbsd,x86_freebsd,x86_linux,x86_macos,x86_solaris abi_x86_64:amd64,amd64_fbsd,x64_freebsd,amd64_linux,x64_macos,x64_solaris abi_x86_x32:x32 @@ -123,7 +123,7 @@ _multilib_build_set_globals() { local usedeps=${flags[@]/%/(-)?} IUSE=${flags[*]} - MULTILIB_USEDEP=${usedeps// /,} + declare -g -r MULTILIB_USEDEP=${usedeps// /,} } _multilib_build_set_globals @@ -196,9 +196,10 @@ _multilib_multibuild_wrapper() { debug-print-function ${FUNCNAME} "${@}" local ABI=${MULTIBUILD_VARIANT#*.} - local MULTILIB_ABI_FLAG=${MULTIBUILD_VARIANT%.*} + local -r MULTILIB_ABI_FLAG=${MULTIBUILD_VARIANT%.*} multilib_toolchain_setup "${ABI}" + readonly ABI "${@}" } -- 2.6.3