From: Robert Yang <liezhi.yang@windriver.com>
To: Patches and discussions about the oe-core layer
<openembedded-core@lists.openembedded.org>,
Koen Kooi <koen@dominion.thruhere.net>
Cc: Zhenfeng.Zhao@windriver.com
Subject: Re: [PATCH 2/2] rootfs_rpm.bbclass: save rpmlib rather than remove it
Date: Tue, 15 May 2012 09:20:20 +0800 [thread overview]
Message-ID: <4FB1AF54.1010905@windriver.com> (raw)
In-Reply-To: <50E29635-2A3A-4D94-8826-EBF3846E3638@dominion.thruhere.net>
On 05/14/2012 05:44 PM, Koen Kooi wrote:
> Op 14 mei 2012, om 10:11 heeft Robert Yang het volgende geschreven:
>
>> The rpmlib was removed when core-image-minimal,
>
> Please replace 'core-image-minimal' with something like:
>
> images that add "remove_packaging_data_files ; " to ROOTFS_POSTPROCESS_COMMAND
>
> That points out the actual problem instead of having to guess what core-image-minimal is doing 'wrong' to need this patch.
>
Thanks, I've updated the commit message and pushed to:
git://git.pokylinux.org/poky-contrib robert/inc_rpm
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=robert/inc_rpm
The current message is:
The rpmlib was removed when images that add
"remove_packaging_data_files" to ROOTFS_POSTPROCESS_COMMAND, which would
make the increment rpm image generation doesn't work in the second
build, since list_installed_packages would get incorrect value in the
second build, move the rpmlib to ${T} rather than remove it, and move it
back when INC_RPM_IMAGE_GEN =1.
// Robert
>
>> which would make the
>> increment rpm image generation doesn't work in the second build, since
>> list_installed_packages would get incorrect value in the second build,
>> move the rpmlib to ${T} rather than remove it, and move it back when
>> INC_RPM_IMAGE_GEN =1.
>>
>> [YOCTO #2440]
>>
>> Signed-off-by: Robert Yang<liezhi.yang@windriver.com>
>> ---
>> meta/classes/image.bbclass | 6 ++++++
>> meta/classes/rootfs_rpm.bbclass | 6 +++++-
>> 2 files changed, 11 insertions(+), 1 deletions(-)
>>
>> diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
>> index 4610731..b5fca32 100644
>> --- a/meta/classes/image.bbclass
>> +++ b/meta/classes/image.bbclass
>> @@ -142,6 +142,12 @@ fakeroot do_rootfs () {
>> # When use the rpm incremental image generation, don't remove the rootfs
>> if [ "${INC_RPM_IMAGE_GEN}" != "1" -o "${IMAGE_PKGTYPE}" != "rpm" ]; then
>> rm -rf ${IMAGE_ROOTFS}
>> + elif [ -d ${T}/saved_rpmlib/var/lib/rpm ]; then
>> + # Move the rpmlib back
>> + if [ ! -d ${IMAGE_ROOTFS}/var/lib/rpm ]; then
>> + mkdir -p ${IMAGE_ROOTFS}/var/lib/
>> + mv ${T}/saved_rpmlib/var/lib/rpm ${IMAGE_ROOTFS}/var/lib/
>> + fi
>> fi
>> rm -rf ${MULTILIB_TEMP_ROOTFS}
>> mkdir -p ${IMAGE_ROOTFS}
>> diff --git a/meta/classes/rootfs_rpm.bbclass b/meta/classes/rootfs_rpm.bbclass
>> index 9039b21..fbc46c0 100644
>> --- a/meta/classes/rootfs_rpm.bbclass
>> +++ b/meta/classes/rootfs_rpm.bbclass
>> @@ -154,7 +154,11 @@ EOF
>> }
>>
>> remove_packaging_data_files() {
>> - rm -rf ${IMAGE_ROOTFS}${rpmlibdir}
>> + # Save the rpmlib for increment rpm image generation
>> + t="${T}/saved_rpmlib/var/lib"
>> + rm -fr $t
>> + mkdir -p $t
>> + mv ${IMAGE_ROOTFS}${rpmlibdir} $t
>> rm -rf ${IMAGE_ROOTFS}${opkglibdir}
>> }
>>
>> --
>> 1.7.1
>>
>>
>> _______________________________________________
>> Openembedded-core mailing list
>> Openembedded-core@lists.openembedded.org
>> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>
next prev parent reply other threads:[~2012-05-15 1:30 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-14 8:11 [PATCH 0/2] V2 Fix incremental rpm image generation Robert Yang
2012-05-14 8:11 ` [PATCH 1/2] package_rpm.bbclass: " Robert Yang
2012-05-14 8:11 ` [PATCH 2/2] rootfs_rpm.bbclass: save rpmlib rather than remove it Robert Yang
2012-05-14 9:44 ` Koen Kooi
2012-05-15 1:20 ` Robert Yang [this message]
2012-06-11 17:37 ` Flanagan, Elizabeth
2012-05-24 17:48 ` [PATCH 0/2] V2 Fix incremental rpm image generation Saul Wold
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=4FB1AF54.1010905@windriver.com \
--to=liezhi.yang@windriver.com \
--cc=Zhenfeng.Zhao@windriver.com \
--cc=koen@dominion.thruhere.net \
--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 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.