From: Mark Hatle <mark.hatle@windriver.com>
To: <Qi.Chen@windriver.com>, <openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH 1/1] rootfs_rpm.bbclass: make complementary packages not attempt-only
Date: Tue, 17 Dec 2013 08:22:27 -0600 [thread overview]
Message-ID: <52B05E23.4010402@windriver.com> (raw)
In-Reply-To: <e2ef71afaed27a2ea2d295132b725fe687da7b62.1387270422.git.Qi.Chen@windriver.com>
On 12/17/13, 2:54 AM, Qi.Chen@windriver.com wrote:
> From: Chen Qi <Qi.Chen@windriver.com>
>
> Installing complementary packages should not be attempt-only, otherwise,
> errors would be hidden. For example, if we enable ptest distro feature,
> and we add 'ptest-pkgs' to IMAGE_FEATRUES, then building a minimal image
> would succeed without reporting any error. However, the systemd-ptest
> is not installed because of lack of the perl package.
Actually that was intentional under the original system design. Any of the
complementary packages were just that, complementary and not required for the
system to function properly.
If dependencies, installation issues, etc caused problems, we could happily skip
them and continue on. There are places (fairly few these days) where the
complementary packages are known to introduce a failure, if not ignored.
This happens primarily when the complementary set introduces a package that has
a conflict (RCONFLICT or a file level conflict) with something installed in the
required set.
--Mark
> Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
> ---
> meta/classes/rootfs_rpm.bbclass | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/meta/classes/rootfs_rpm.bbclass b/meta/classes/rootfs_rpm.bbclass
> index 1a0c225..9a88330 100644
> --- a/meta/classes/rootfs_rpm.bbclass
> +++ b/meta/classes/rootfs_rpm.bbclass
> @@ -170,8 +170,8 @@ rpm_setup_smart_target_config() {
>
> rootfs_install_packages() {
> # Note - we expect the variables not set here to already have been set
> - export INSTALL_PACKAGES_RPM=""
> - export INSTALL_PACKAGES_ATTEMPTONLY_RPM="`cat $1`"
> + export INSTALL_PACKAGES_RPM="`cat $1`"
> + export INSTALL_PACKAGES_ATTEMPTONLY_RPM=""
> export INSTALL_PROVIDENAME_RPM=""
> export INSTALL_TASK_RPM="rootfs_install_packages"
> export INSTALL_COMPLEMENTARY_RPM="1"
>
next prev parent reply other threads:[~2013-12-17 14:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-17 8:54 [PATCH 0/1] rootfs_rpm.bbclass: make complementary packages not attempt-only Qi.Chen
2013-12-17 8:54 ` [PATCH 1/1] " Qi.Chen
2013-12-17 14:22 ` Mark Hatle [this message]
2013-12-18 1:51 ` 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=52B05E23.4010402@windriver.com \
--to=mark.hatle@windriver.com \
--cc=Qi.Chen@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