From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Nathan Rossi <nathan.rossi@xilinx.com>
Cc: openembedded-core@lists.openembedded.org
Subject: Re: [PATCH] ptest.bblass: Fix package QA issues when disabled
Date: Wed, 08 Jan 2014 12:58:09 +0000 [thread overview]
Message-ID: <1389185889.6899.96.camel@ted> (raw)
In-Reply-To: <d7cb4e9a-2926-44a2-b789-a31612162a44@TX2EHSMHS014.ehs.local>
On Wed, 2014-01-08 at 17:05 +1000, Nathan Rossi wrote:
> When the ptest distro feature is disabled, a ptest directory is still
> created in the install phase, This directory is not cleaned up or
> consumed by any package and will throw a QA error, e.g.
>
> ERROR: QA Issue: glib-2.0: Files/directories were installed but not
> shipped
> /usr/lib/glib-2.0/ptest
> ERROR: QA run found fatal errors. Please consider fixing them.
> ERROR: Function failed: do_package_qa
>
> This is caused by the do_install_ptest_base[cleandirs] task flag which
> is not setup to be conditional on ptest being enabled. This patch
> changes the task flag to emit the cleandirs path only when the ptest
> distro feature is enabled.
>
> Signed-off-by: Nathan Rossi <nathan.rossi@xilinx.com>
> ---
> meta/classes/ptest.bbclass | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/classes/ptest.bbclass b/meta/classes/ptest.bbclass
> index ec10f80..3450085 100644
> --- a/meta/classes/ptest.bbclass
> +++ b/meta/classes/ptest.bbclass
> @@ -49,7 +49,7 @@ do_install_ptest_base() {
> fi
> }
>
> -do_install_ptest_base[cleandirs] = "${D}${PTEST_PATH}"
> +do_install_ptest_base[cleandirs] = "${@['', '${D}${PTEST_PATH}'][(d.getVar('PTEST_ENABLED', True) or '') == '1']}"
>
> addtask configure_ptest_base after do_configure before do_compile
> addtask compile_ptest_base after do_compile before do_install
How about we use the new add/deltask api to conditionally add these
tasks only when ptest is enabled?
The number of conditionals in there is getting silly...
Cheers,
Richard
next prev parent reply other threads:[~2014-01-08 12:58 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-08 7:05 [PATCH] ptest.bblass: Fix package QA issues when disabled Nathan Rossi
2014-01-08 12:58 ` Richard Purdie [this message]
2014-01-09 3:54 ` Nathan Rossi
2014-01-09 11:40 ` Richard Purdie
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=1389185889.6899.96.camel@ted \
--to=richard.purdie@linuxfoundation.org \
--cc=nathan.rossi@xilinx.com \
--cc=openembedded-core@lists.openembedded.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