From: Robert Yang <liezhi.yang@windriver.com>
To: "Burton, Ross" <ross.burton@intel.com>
Cc: OE-core <openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH 0/5 V2] refactor the archiver*.bbclass
Date: Tue, 25 Feb 2014 21:05:12 +0800 [thread overview]
Message-ID: <530C9508.8040102@windriver.com> (raw)
In-Reply-To: <CAJTo0LYcmGFV6kW0+fHO8mhP0anPkxFG4_zJfC5PQ1iOwU3zow@mail.gmail.com>
On 02/25/2014 08:40 PM, Burton, Ross wrote:
> Hi,
>
> One point: enabling the archiver causes the stamps for various steps
> to change (fetch, configure, package: wherever it hooks) which means a
> full rebuild. Can the archiver hide itself from the stamps so this
> doesn't happen?
>
> This appears to be some of the work required:
>
> +do_configure[vardepsexclude] += "do_deploy_archives"
> +do_patch[vardepsexclude] += "do_create_diff_gz"
> +do_unpack[vardepsexclude] += "do_ar_unpacked"
>
Thanks, sounds reasonable, I will update it.
// Robert
> But I'm still getting a stamp change in do_package that I haven't
> chased down yet.
>
> Ross
>
> On 24 February 2014 15:56, Robert Yang <liezhi.yang@windriver.com> wrote:
>> === V2:
>> * Fix the warning between different machines which is reported by Martin
>> * Fix the error when the archiver.bbclass is not inherited but
>> ARCHIVER_MODE[type] = "srpm" is set, reported by Ross.
>> * Fix the archiving for gcc staff which uses the shared source according
>> to the recently changes of prefuncs and postfuncs in bitbake, so it only
>> works well with bitbake's up to date master branch, if we want to backport it,
>> we also need backport the pre/postfuncs related patches.
>>
>> === V1:
>> * The archive*.bbclass didn't work, and there were a few problems, for
>> example:
>> 1) There were a few duplicated code
>> 2) There was no src_dir.org (or orig), but the diff command still use
>> it, and it is not easy to fix this issue if we don't change a lot
>> of the code.
>> 3) It didn't archive the source for the native or gcc
>> 4) The work flow is not very well
>> 5) The "subprocess.call('fakeroot cp xxxx'" should be removed
>> 6) And others ...
>>
>> * So that we have to refactor it, the benefits are:
>> 1) Fix the problems and make it work well.
>> 2) Reduce more than 400 lines in total.
>> 3) Make it easy to use.
>>
>> // Robert
>>
>> The following changes since commit 0e5cfef90ff762b33da6dc301dfc9cb3947c8a02:
>>
>> runqemu: enforce right CPU type for qemux86/x86-64 (2014-02-13 17:48:47 +0000)
>>
>> are available in the git repository at:
>>
>> git://git.openembedded.org/openembedded-core-contrib rbt/archiver
>> http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=rbt/archiver
>>
>> Robert Yang (5):
>> classes/archive*.bbclass: remove archive-*-source.bbclass
>> archiver.bbclass: refactor it
>> package_rpm.bbclass: archive the source to srpm package
>> archiver.bbclass: move a few code to copyleft_compliance.bbclass
>> local.conf.sample.extended: update for the archiver
>>
>> meta/classes/archive-configured-source.bbclass | 65 ---
>> meta/classes/archive-original-source.bbclass | 65 ---
>> meta/classes/archive-patched-source.bbclass | 65 ---
>> meta/classes/archiver.bbclass | 735 ++++++++-----------------
>> meta/classes/copyleft_compliance.bbclass | 55 +-
>> meta/classes/package_rpm.bbclass | 31 +-
>> meta/conf/local.conf.sample.extended | 72 +--
>> 7 files changed, 327 insertions(+), 761 deletions(-)
>> delete mode 100644 meta/classes/archive-configured-source.bbclass
>> delete mode 100644 meta/classes/archive-original-source.bbclass
>> delete mode 100644 meta/classes/archive-patched-source.bbclass
>>
>> --
>> 1.8.3.1
>>
>
>
next prev parent reply other threads:[~2014-02-25 13:05 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-24 15:56 [PATCH 0/5 V2] refactor the archiver*.bbclass Robert Yang
2014-02-24 15:56 ` [PATCH 1/5] classes/archive*.bbclass: remove archive-*-source.bbclass Robert Yang
2014-02-24 15:56 ` [PATCH 2/5] archiver.bbclass: refactor it Robert Yang
2014-02-25 12:38 ` Burton, Ross
2014-02-25 13:04 ` Robert Yang
2014-02-24 15:56 ` [PATCH 3/5] package_rpm.bbclass: archive the source to srpm package Robert Yang
2014-02-24 15:56 ` [PATCH 4/5] archiver.bbclass: move a few code to copyleft_compliance.bbclass Robert Yang
2014-02-24 15:56 ` [PATCH 5/5] local.conf.sample.extended: update for the archiver Robert Yang
2014-02-25 12:40 ` [PATCH 0/5 V2] refactor the archiver*.bbclass Burton, Ross
2014-02-25 13:05 ` Robert Yang [this message]
2014-02-27 13:05 ` Burton, Ross
2014-03-04 1:27 ` Robert Yang
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=530C9508.8040102@windriver.com \
--to=liezhi.yang@windriver.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=ross.burton@intel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox