From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Jian Liu <jian.liu@windriver.com>
Cc: openembedded-core@lists.openembedded.org
Subject: Re: [PATCH] sdk.py: fix conflicts of packages
Date: Tue, 01 Sep 2015 22:11:53 +0100 [thread overview]
Message-ID: <1441141913.24871.17.camel@linuxfoundation.org> (raw)
In-Reply-To: <1440491341-29988-1-git-send-email-jian.liu@windriver.com>
On Tue, 2015-08-25 at 16:29 +0800, Jian Liu wrote:
> If packages are conveyed to smart to install at the same time,
> conflicts will not happen.
> Try to install packages into sdk image at the same time.
Doesn't smart have an issue where if one package fails to install for
some reason, others listed in the same command won't be attempted? Did
you test that?
Cheers,
Richard
> This patch is not so perfect. For example,
> IMAGE_INSTALL += "lib32-ncurses"
> IMAGE_INSTALL += "ncurses-dev"
> ncurses-dev and lib32-ncurses-dev will have conflicts during packages installation.
>
> Signed-off-by: Jian Liu <jian.liu@windriver.com>
> ---
> sdk.py | 45 +++++++++++++++++++++++++++++++++------------
> 1 file changed, 33 insertions(+), 12 deletions(-)
>
> diff --git a/meta/lib/oe/sdk.py b/meta/lib/oe/sdk.py
> index c57a441..7b43a29 100644
> --- a/meta/lib/oe/sdk.py
> +++ b/meta/lib/oe/sdk.py
> @@ -107,10 +107,17 @@ class RpmSdk(Sdk):
> pm.dump_all_available_pkgs()
> pm.update()
>
> - for pkg_type in self.install_order:
> - if pkg_type in pkgs_to_install:
> - pm.install(pkgs_to_install[pkg_type],
> - [False, True][pkg_type == Manifest.PKG_TYPE_ATTEMPT_ONLY])
> + pkgs = []
> + pkgs_attempt = []
> + for pkg_type in pkgs_to_install:
> + if pkg_type == Manifest.PKG_TYPE_ATTEMPT_ONLY:
> + pkgs_attempt += pkgs_to_install[pkg_type]
> + else:
> + pkgs += pkgs_to_install[pkg_type]
> +
> + pm.install(pkgs)
> +
> + pm.install(pkgs_attempt, True)
>
> def _populate(self):
> bb.note("Installing TARGET packages")
> @@ -184,10 +191,17 @@ class OpkgSdk(Sdk):
>
> pm.update()
>
> - for pkg_type in self.install_order:
> - if pkg_type in pkgs_to_install:
> - pm.install(pkgs_to_install[pkg_type],
> - [False, True][pkg_type == Manifest.PKG_TYPE_ATTEMPT_ONLY])
> + pkgs = []
> + pkgs_attempt = []
> + for pkg_type in pkgs_to_install:
> + if pkg_type == Manifest.PKG_TYPE_ATTEMPT_ONLY:
> + pkgs_attempt += pkgs_to_install[pkg_type]
> + else:
> + pkgs += pkgs_to_install[pkg_type]
> +
> + pm.install(pkgs)
> +
> + pm.install(pkgs_attempt, True)
>
> def _populate(self):
> bb.note("Installing TARGET packages")
> @@ -260,10 +274,17 @@ class DpkgSdk(Sdk):
> pm.write_index()
> pm.update()
>
> - for pkg_type in self.install_order:
> - if pkg_type in pkgs_to_install:
> - pm.install(pkgs_to_install[pkg_type],
> - [False, True][pkg_type == Manifest.PKG_TYPE_ATTEMPT_ONLY])
> + pkgs = []
> + pkgs_attempt = []
> + for pkg_type in pkgs_to_install:
> + if pkg_type == Manifest.PKG_TYPE_ATTEMPT_ONLY:
> + pkgs_attempt += pkgs_to_install[pkg_type]
> + else:
> + pkgs += pkgs_to_install[pkg_type]
> +
> + pm.install(pkgs)
> +
> + pm.install(pkgs_attempt, True)
>
> def _populate(self):
> bb.note("Installing TARGET packages")
next prev parent reply other threads:[~2015-09-01 21:12 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-25 8:29 [PATCH] sdk.py: fix conflicts of packages Jian Liu
2015-09-01 21:11 ` Richard Purdie [this message]
2015-09-01 21:29 ` Mark Hatle
2015-09-01 21:51 ` Mark Hatle
-- strict thread matches above, loose matches on Subject: below --
2015-11-11 8:07 Jian Liu
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=1441141913.24871.17.camel@linuxfoundation.org \
--to=richard.purdie@linuxfoundation.org \
--cc=jian.liu@windriver.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