From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-portage-dev@lists.gentoo.org
Cc: "Ulrich Müller" <ulm@gentoo.org>
Subject: Re: [gentoo-portage-dev] [PATCH v2 1/2] Revert "Revert "Generate a QA Notice when EXPORT_FUNCTIONS is called before inherit""
Date: Fri, 03 Sep 2021 13:34:37 +0200 [thread overview]
Message-ID: <5a4ccf630c0ed5d9c61ff7eaf897c309393138e4.camel@gentoo.org> (raw)
In-Reply-To: <20210830062209.6422-1-ulm@gentoo.org>
On Mon, 2021-08-30 at 08:22 +0200, Ulrich Müller wrote:
> Reinstate the QA notice, because Portage behavior deviates from PMS,
> and breakage of eclasses with Pkgcore has been observed recently.
>
> This reverts commit f44d32550861cb25c209ef61dcd7ae1aa230da1f.
>
> Bug: https://bugs.gentoo.org/399039
> Signed-off-by: Ulrich Müller <ulm@gentoo.org>
> ---
> bin/ebuild.sh | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/bin/ebuild.sh b/bin/ebuild.sh
> index 5916bedfc..1bca2c965 100755
> --- a/bin/ebuild.sh
> +++ b/bin/ebuild.sh
> @@ -243,6 +243,14 @@ inherit() {
> ECLASS_DEPTH=$(($ECLASS_DEPTH + 1))
> if [[ ${ECLASS_DEPTH} -gt 1 ]]; then
> debug-print "*** Multiple Inheritence (Level: ${ECLASS_DEPTH})"
> +
> + # Since ECLASS_DEPTH > 1, the following variables are locals from the
> + # previous inherit call in the call stack.
> + if [[ -n ${ECLASS} && -n ${!__export_funcs_var} ]] ; then
> + eqawarn "QA Notice: EXPORT_FUNCTIONS is called before inherit in ${ECLASS}.eclass."
> + eqawarn "For compatibility with <=portage-2.1.6.7, only call EXPORT_FUNCTIONS"
> + eqawarn "after inherit(s)."
> + fi
> fi
>
> local -x ECLASS
Merged both.
--
Best regards,
Michał Górny
next prev parent reply other threads:[~2021-09-03 11:34 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-29 20:06 [gentoo-portage-dev] [PATCH 1/2] Revert "Revert "Generate a QA Notice when EXPORT_FUNCTIONS is called before inherit"" Ulrich Müller
2021-08-29 20:06 ` [gentoo-portage-dev] [PATCH 2/2] ebuild.sh: Update QA notice in inherit() Ulrich Müller
2021-08-29 21:27 ` Michał Górny
2021-08-29 22:47 ` Ulrich Mueller
2021-08-30 5:42 ` Michał Górny
2021-08-30 6:22 ` [gentoo-portage-dev] [PATCH v2 1/2] Revert "Revert "Generate a QA Notice when EXPORT_FUNCTIONS is called before inherit"" Ulrich Müller
2021-09-03 11:34 ` Michał Górny [this message]
2021-08-30 6:22 ` [gentoo-portage-dev] [PATCH v2 2/2] ebuild.sh: Update QA notice in inherit() Ulrich Müller
2021-08-29 20:16 ` [gentoo-portage-dev] [PATCH 1/2] Revert "Revert "Generate a QA Notice when EXPORT_FUNCTIONS is called before inherit"" Sam James
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5a4ccf630c0ed5d9c61ff7eaf897c309393138e4.camel@gentoo.org \
--to=mgorny@gentoo.org \
--cc=gentoo-portage-dev@lists.gentoo.org \
--cc=ulm@gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox