commit:     40703c4f8379c52c7c5f19d340d2ae76fd522ff5
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Apr 12 04:34:00 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Apr 12 05:58:34 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=40703c4f

autotools.eclass: don't use reserved variable (__)

Closes: https://bugs.gentoo.org/806368
Signed-off-by: Sam James <sam <AT> gentoo.org>

 eclass/autotools.eclass | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/eclass/autotools.eclass b/eclass/autotools.eclass
index 8a44aae417db..30bc0e18fd3a 100644
--- a/eclass/autotools.eclass
+++ b/eclass/autotools.eclass
@@ -13,13 +13,13 @@
 # Note: We require GNU m4, as does autoconf.  So feel free to use any features
 # from the GNU version of m4 without worrying about other variants (i.e. BSD).
 
-if [[ ${__AUTOTOOLS_AUTO_DEPEND+set} == "set" ]] ; then
+if [[ ${_AUTOTOOLS_AUTO_DEPEND+set} == "set" ]] ; then
        # See if we were included already, but someone changed the value
        # of AUTOTOOLS_AUTO_DEPEND on us.  We could reload the entire
        # eclass at that point, but that adds overhead, and it's trivial
        # to re-order inherit in eclasses/ebuilds instead.  #409611
-       if [[ ${__AUTOTOOLS_AUTO_DEPEND} != ${AUTOTOOLS_AUTO_DEPEND} ]] ; then
-               die "AUTOTOOLS_AUTO_DEPEND changed value between inherits; 
please inherit ${ECLASS} first! ${__AUTOTOOLS_AUTO_DEPEND} -> 
${AUTOTOOLS_AUTO_DEPEND}"
+       if [[ ${_AUTOTOOLS_AUTO_DEPEND} != ${AUTOTOOLS_AUTO_DEPEND} ]] ; then
+               die "AUTOTOOLS_AUTO_DEPEND changed value between inherits; 
please inherit ${ECLASS} first! ${_AUTOTOOLS_AUTO_DEPEND} -> 
${AUTOTOOLS_AUTO_DEPEND}"
        fi
 fi
 
@@ -134,7 +134,7 @@ if [[ ${AUTOTOOLS_AUTO_DEPEND} != "no" ]] ; then
                *) BDEPEND=${AUTOTOOLS_DEPEND} ;;
        esac
 fi
-__AUTOTOOLS_AUTO_DEPEND=${AUTOTOOLS_AUTO_DEPEND} # See top of eclass
+_AUTOTOOLS_AUTO_DEPEND=${AUTOTOOLS_AUTO_DEPEND} # See top of eclass
 
 unset _automake_atom _autoconf_atom
 

Reply via email to