All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kang Kai <Kai.Kang@windriver.com>
To: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Cc: openembedded-core@lists.openembedded.org
Subject: Re: [PATCH 1/1] insane.bbclass: make do_package_qa be a task
Date: Mon, 11 Mar 2013 16:24:48 +0800	[thread overview]
Message-ID: <513D94D0.1000202@windriver.com> (raw)
In-Reply-To: <13d587c67be.2760.0f39ed3bcad52ef2c88c90062b7714dc@gmail.com>

On 2013年03月11日 16:06, Bernhard Reutner-Fischer wrote:
> On 11 March 2013 04:31:17 Kang Kai <kai.kang@windriver.com> wrote:
>> do_package_qa is added to variable PACKAGEFUNCS and run after
>> do_package. packaging tests should not ending up in package.bbclass.
>> Split do_package_qa as a new task after do_package.
>>
>> [YOCTO #3190]
>>
>> Signed-off-by: Kang Kai <kai.kang@windriver.com>
>> ---
>> meta/classes/insane.bbclass | 15 +++++++++++++--
>> 1 files changed, 13 insertions(+), 2 deletions(-)
>>
>> diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass
>> index bd6f120..d7787ac 100644
>> --- a/meta/classes/insane.bbclass
>> +++ b/meta/classes/insane.bbclass
>> @@ -17,9 +17,9 @@
>> # files under exec_prefix
>>
>>
>> -inherit package
>> +#inherit package
>> PACKAGE_DEPENDS += "${QADEPENDS}"
>> -PACKAGEFUNCS += " do_package_qa "
>> +#PACKAGEFUNCS += " do_package_qa "
>
> I'd remove those lines, they are in the history anyway.
>
>>
>> # unsafe-references-in-binaries requires prelink-rtld from
>> # prelink-native, but we don't want this DEPENDS for -native builds
>> @@ -654,6 +654,15 @@ def package_qa_walk(path, warnfuncs, errorfuncs, 
>> skip, package, d):
>> target_os = d.getVar('TARGET_OS', True)
>> target_arch = d.getVar('TARGET_ARCH', True)
>>
>> + pkgfiles = {}
>> + packages = d.getVar('PACKAGES', True).split()
>> + pkgdest = d.getVar('PKGDEST', True)
>> + for pkg in packages:
>> + pkgfiles[pkg] = []
>> + for walkroot, dirs, files in os.walk(pkgdest + "/" + pkg):
>

Hi Bernhard,

> I'd use os.sep above, too.
> I would ACK the patch with these changes, fwiw.

Thanks for your review, and I will update patch.

Regards,
Kai


> Thanks,
>> + for file in files:
>> + pkgfiles[pkg].append(walkroot + os.sep + file)
>> +
>> warnings = []
>> errors = []
>> for path in pkgfiles[package]:
>> @@ -823,6 +832,8 @@ python do_package_qa () {
>> bb.note("DONE with PACKAGE QA")
>> }
>>
>> +addtask package_qa after do_package before do_build
>> +EXPORT_FUNCTIONS do_package_qa
>>
>> python do_qa_staging() {
>> bb.note("QA checking staging")
>> -- 
>> 1.7.5.4
>>
>>
>> _______________________________________________
>> Openembedded-core mailing list
>> Openembedded-core@lists.openembedded.org
>> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>
>
> Sent with AquaMail for Android
> http://www.aqua-mail.com
>
>
>




      reply	other threads:[~2013-03-11  8:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-11  3:31 [RFC PATCH 0/1] Split do_package_qa in insane.bbclass to be a new task Kang Kai
2013-03-11  3:31 ` [PATCH 1/1] insane.bbclass: make do_package_qa be a task Kang Kai
2013-03-11  8:06   ` Bernhard Reutner-Fischer
2013-03-11  8:24     ` Kang Kai [this message]

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=513D94D0.1000202@windriver.com \
    --to=kai.kang@windriver.com \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=rep.dot.nop@gmail.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.