From: Martin Jansa <martin.jansa@gmail.com>
To: Laurentiu Palcu <laurentiu.palcu@intel.com>
Cc: openembedded-core@lists.openembedded.org
Subject: Re: [PATCH 1/1] image.bbclass: leave metadata in place if a PM is installed in the image
Date: Thu, 5 Sep 2013 10:15:16 +0200 [thread overview]
Message-ID: <20130905081516.GI11500@jama> (raw)
In-Reply-To: <728bbce2f20eefd81accfbbe48c6f5f4e85aabb2.1378366233.git.laurentiu.palcu@intel.com>
[-- Attachment #1: Type: text/plain, Size: 1974 bytes --]
On Thu, Sep 05, 2013 at 10:31:10AM +0300, Laurentiu Palcu wrote:
> If IMAGE_FEATURES does not contain 'package-management' but the user
> manually installs a package manager (opkg/dpkg/rpm) using
> CORE_IMAGE_EXTRA_INSTALL (for example), then do not remove update-rc.d,
> base-passwd and package metadata because these will be needed by the
> package manager to function correcly.
>
> [YOCTO #4484]
>
> Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
> ---
> meta/classes/image.bbclass | 7 ++++++-
> 1 file changed, 6 insertions(+), 1 deletion(-)
>
> diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
> index 84f638c..e1a7367 100644
> --- a/meta/classes/image.bbclass
> +++ b/meta/classes/image.bbclass
> @@ -498,7 +498,12 @@ rootfs_install_complementary() {
> }
>
> rootfs_uninstall_unneeded () {
> - if ${@base_contains("IMAGE_FEATURES", "package-management", "false", "true", d)}; then
> + rpm_installed=${@base_contains("PACKAGE_INSTALL", "rpm", "true", "false", d)}
> + opkg_installed=${@base_contains("PACKAGE_INSTALL", "opkg", "true", "false", d)}
> + dpkg_installed=${@base_contains("PACKAGE_INSTALL", "dpkg", "true", "false", d)}
> +
> + if ${@base_contains("IMAGE_FEATURES", "package-management", "false", "true", d)} &&\
is this first condition still needed? Do we have some case where
package-management is enabled without rpm/opkg/dpkg installed?
> + ! $rpm_installed && ! $opkg_installed && ! $dpkg_installed; then
> if [ -z "$(delayed_postinsts)" ]; then
> # All packages were successfully configured.
> # update-rc.d, base-passwd, run-postinsts are no further use, remove them now
> --
> 1.7.9.5
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]
next prev parent reply other threads:[~2013-09-05 8:13 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-05 7:31 [PATCH 0/1] image.bbclass: leave metadata in place if a PM is installed in the image Laurentiu Palcu
2013-09-05 7:31 ` [PATCH 1/1] " Laurentiu Palcu
2013-09-05 8:15 ` Martin Jansa [this message]
2013-09-05 8:57 ` Laurentiu Palcu
2013-09-05 10:43 ` Phil Blundell
2013-09-05 11:11 ` Laurentiu Palcu
2013-09-05 11:37 ` Phil Blundell
2013-09-05 11:40 ` Phil Blundell
2013-09-05 11:59 ` Laurentiu Palcu
2013-09-05 12:07 ` Phil Blundell
2013-09-05 12:19 ` Paul Eggleton
2013-09-05 12:29 ` Phil Blundell
2013-09-05 12:53 ` Paul Eggleton
2013-09-05 13:14 ` Laurentiu Palcu
2013-09-05 13:24 ` Phil Blundell
2013-09-05 13:25 ` Laurentiu Palcu
2013-09-05 12:42 ` ChenQi
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=20130905081516.GI11500@jama \
--to=martin.jansa@gmail.com \
--cc=laurentiu.palcu@intel.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