From: "André Draszik" <git@andred.net>
To: openembedded-core@lists.openembedded.org
Subject: Re: [PATCH 31/36] image.bbclass: do not uninstall update-alternatives from readonly rootfs
Date: Wed, 15 Feb 2017 10:12:31 +0000 [thread overview]
Message-ID: <1487153551.2824.1.camel@andred.net> (raw)
In-Reply-To: <7f5d277329d262fe7e9723aacba2dc20768380b9.1486997986.git.alexander.kanavin@linux.intel.com>
On Mon, 2017-02-13 at 17:06 +0200, Alexander Kanavin wrote:
> dnf insists that it cannot be done:
>
> Error: package libglib-2.0-0-1:2.50.2-r0.i586 requires /bin/sh, but none
> of the providers can be installed
> - package libdnf1-0.2.3+git0+367545629c-r0.i586 requires libglib-2.0-0
> >= 2.50.2, but none of the providers can be installed
> - package bash-4.3.30-r0.i586 requires update-alternatives-opkg, but
> none of the providers can be installed
> - package busybox-1.24.1-r0.i586 requires update-alternatives-opkg, but
> none of the providers can be installed
> - package dnf-2.0.0+git0+f0093d672d-r0.i586 requires libdnf1, but none
> of the providers can be installed
> - conflicting requests
> - problem with installed package dnf-2.0.0+git0+f0093d672d-r0.i586
Can this change be made dependent on DNF, please?
Update-alternatives once run is not useful on read-only rootfs, and its
database wastes a lot of space (in the target file system) for no benefit.
Cheers,
Andre'
>
> Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
> ---
> meta/classes/image.bbclass | 2 +-
> meta/lib/oeqa/selftest/buildoptions.py | 4 ++--
> 2 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
> index b5a4fb4a337..ca0d0a8c0d1 100644
> --- a/meta/classes/image.bbclass
> +++ b/meta/classes/image.bbclass
> @@ -33,7 +33,7 @@ ROOTFS_BOOTSTRAP_INSTALL = "${@bb.utils.contains("IMAGE_
> FEATURES", "package-mana
>
> # These packages will be removed from a read-only rootfs after all other
> # packages have been installed
> -ROOTFS_RO_UNNEEDED = "update-rc.d base-passwd shadow ${VIRTUAL-
> RUNTIME_update-alternatives} ${ROOTFS_BOOTSTRAP_INSTALL}"
> +ROOTFS_RO_UNNEEDED = "update-rc.d base-passwd shadow
> ${ROOTFS_BOOTSTRAP_INSTALL}"
>
> # packages to install from features
> FEATURE_INSTALL = "${@'
> '.join(oe.packagegroup.required_packages(oe.data.typed_value('IMAGE_FEATUR
> ES', d), d))}"
> diff --git a/meta/lib/oeqa/selftest/buildoptions.py
> b/meta/lib/oeqa/selftest/buildoptions.py
> index d40eb007ded..1801511913b 100644
> --- a/meta/lib/oeqa/selftest/buildoptions.py
> +++ b/meta/lib/oeqa/selftest/buildoptions.py
> @@ -22,12 +22,12 @@ class ImageOptionsTests(oeSelfTest):
> bitbake("core-image-minimal")
> log_data_file = os.path.join(get_bb_var("WORKDIR", "core-image-
> minimal"), "temp/log.do_rootfs")
> log_data_created = ftools.read_file(log_data_file)
> - incremental_created = re.search("NOTE: load old install solution
> for incremental install\nNOTE: old install solution not exist\nNOTE:
> creating new install solution for incremental install(\n.*)*NOTE:
> Installing the following packages:.*packagegroup-core-ssh-openssh",
> log_data_created)
> + incremental_created = re.search("Installing : packagegroup-core-
> ssh-openssh", log_data_created)
> self.remove_config('IMAGE_FEATURES += "ssh-server-openssh"')
> self.assertTrue(incremental_created, msg = "Match failed in:\n%s"
> % log_data_created)
> bitbake("core-image-minimal")
> log_data_removed = ftools.read_file(log_data_file)
> - incremental_removed = re.search("NOTE: load old install solution
> for incremental install\nNOTE: creating new install solution for
> incremental install(\n.*)*NOTE: incremental removed:.*openssh-sshd-.*",
> log_data_removed)
> + incremental_removed = re.search("Erasing : packagegroup-core-
> ssh-openssh", log_data_removed)
> self.assertTrue(incremental_removed, msg = "Match failed in:\n%s"
> % log_data_removed)
>
> @testcase(286)
> --
> 2.11.0
>
next prev parent reply other threads:[~2017-02-15 10:12 UTC|newest]
Thread overview: 53+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-13 15:05 [PATCH 00/36] Replace Smart package manager with DNF package manager Alexander Kanavin
2017-02-13 15:05 ` [PATCH 01/36] gpgme: allow building -native variant Alexander Kanavin
2017-02-13 15:05 ` [PATCH 02/36] package.bbclass: fix locations of debugedit and rpmdeps utilities Alexander Kanavin
2017-02-13 15:05 ` [PATCH 03/36] libsolv: enable rpm support Alexander Kanavin
2017-02-13 15:05 ` [PATCH 04/36] rpmresolve: remove the recipe Alexander Kanavin
2017-02-13 15:05 ` [PATCH 05/36] createrepo-c: add a recipe Alexander Kanavin
2017-02-13 15:05 ` [PATCH 06/36] createrepo: remove the recipe Alexander Kanavin
2017-02-13 15:05 ` [PATCH 07/36] rpm: add a 4.x recipe Alexander Kanavin
2017-02-13 15:05 ` [PATCH 08/36] rpm: remove 5.x recipe Alexander Kanavin
2017-02-13 15:05 ` [PATCH 09/36] python-pygpgme: add a recipe Alexander Kanavin
2017-02-13 15:05 ` [PATCH 10/36] python-iniparse: " Alexander Kanavin
2017-02-13 15:05 ` [PATCH 11/36] python-backports-lzma: " Alexander Kanavin
2017-02-13 15:05 ` [PATCH 12/36] librepo: " Alexander Kanavin
2017-02-13 15:05 ` [PATCH 13/36] libcomps: " Alexander Kanavin
2017-02-13 15:05 ` [PATCH 14/36] libdnf: " Alexander Kanavin
2017-02-13 15:05 ` [PATCH 15/36] dnf: " Alexander Kanavin
2017-02-13 15:05 ` [PATCH 16/36] python-smartpm: remove the recipe Alexander Kanavin
2017-02-13 15:05 ` [PATCH 17/36] db: remove the 6.x recipe Alexander Kanavin
2017-02-13 15:05 ` [PATCH 18/36] package_rpm.bbclass: make architecture-independent .rpm packages "noarch" instead of "all" Alexander Kanavin
2017-02-13 15:05 ` [PATCH 19/36] package_manager.py: improve the API for insert_feed_uris() Alexander Kanavin
2017-02-13 15:05 ` [PATCH 20/36] package_rpm.bbclass: correctly map RRECOMMENDS and RSUGGESTS to rpm tags Alexander Kanavin
2017-02-13 15:05 ` [PATCH 21/36] nativesdk-packagegroup-sdk-host: replace smartpm with dnf Alexander Kanavin
2017-02-13 15:05 ` [PATCH 22/36] package.bbclass: add support for pkg_postinst_ontarget() Alexander Kanavin
2017-02-15 8:17 ` Anders Darander
2017-02-15 9:01 ` Alexander Kanavin
2017-02-15 9:10 ` Anders Darander
2017-02-15 9:19 ` Alexander Kanavin
2017-02-13 15:05 ` [PATCH 23/36] rootfs_rpm.bbclass: migrate image creation to dnf Alexander Kanavin
2017-02-15 11:18 ` André Draszik
2017-02-15 11:44 ` Alexander Kanavin
2017-02-13 15:05 ` [PATCH 24/36] scripts/rpm2cpio.sh: replace 5.x version with 4.x version Alexander Kanavin
2017-02-13 15:05 ` [PATCH 25/36] scripts/oe-setup-rpmrepo: replace createrepo with createrepo_c Alexander Kanavin
2017-02-13 15:05 ` [PATCH 26/36] package_rpm.bbclass: replace createrepo reference " Alexander Kanavin
2017-02-13 15:05 ` [PATCH 27/36] package_rpm.bbclass: prevent rpm from using sysroot paths that it was originally compiled with Alexander Kanavin
2017-02-13 15:05 ` [PATCH 28/36] testimage.bbclass: fix runtime test for rpm, port smart tests to dnf Alexander Kanavin
2017-02-13 15:05 ` [PATCH 29/36] package_rpm.bbclass: instruct rpm to not remove the buildroot directory Alexander Kanavin
2017-02-13 15:06 ` [PATCH 30/36] selftest: do not perform a full build in test_continue Alexander Kanavin
2017-02-13 15:36 ` Burton, Ross
2017-02-13 16:02 ` Alexander Kanavin
2017-02-13 16:03 ` Burton, Ross
2017-02-13 15:06 ` [PATCH 31/36] image.bbclass: do not uninstall update-alternatives from readonly rootfs Alexander Kanavin
2017-02-15 10:12 ` André Draszik [this message]
2017-02-13 15:06 ` [PATCH 32/36] selftest: allow bitbake to fail in test_options_warnqa_errorqa_switch Alexander Kanavin
2017-02-13 15:06 ` [PATCH 33/36] ossp-uuid: remove the recipe Alexander Kanavin
2017-02-13 15:06 ` [PATCH 34/36] byacc: " Alexander Kanavin
2017-02-13 15:06 ` [PATCH 35/36] nativesdk.bbclass: add a /bin/sh RPROVIDES Alexander Kanavin
2017-02-15 10:28 ` André Draszik
2017-02-15 11:38 ` Alexander Kanavin
2017-02-13 15:06 ` [PATCH 36/36] package_deb.bbclass: Ignore file paths in RPROVIDES Alexander Kanavin
2017-02-15 10:36 ` André Draszik
2017-02-15 10:51 ` avalluri
2017-02-15 11:21 ` André Draszik
2017-02-13 16:27 ` [PATCH 00/36] Replace Smart package manager with DNF package manager Alexander Kanavin
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=1487153551.2824.1.camel@andred.net \
--to=git@andred.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox