All of lore.kernel.org
 help / color / mirror / Atom feed
From: "André Draszik" <git@andred.net>
To: openembedded-core@lists.openembedded.org
Subject: Re: [PATCH 36/36] package_deb.bbclass: Ignore file paths in RPROVIDES
Date: Wed, 15 Feb 2017 10:36:26 +0000	[thread overview]
Message-ID: <1487154986.2824.6.camel@andred.net> (raw)
In-Reply-To: <5eb1a4810bf745c5932feee2d1b47621353e9689.1486997986.git.alexander.kanavin@linux.intel.com>

On Mon, 2017-02-13 at 17:06 +0200, Alexander Kanavin wrote:
> From: Amarnath Valluri <amarnath.valluri@intel.com>
> 
> Unlike rpm, debian packaging does not allow file paths in 'Provides:'
> field.
> When 'usrmerge' distro feature enabled bash/busybox packages adds
> '/bin/sh' to
> it's RPROVIDES to satisfy build dependencies, this entry should be
> filtered out.

What about opkg - is it OK with PATHs (my blind guess would be no)? Has it
been tested?

Cheers,
Andre'

> 
> Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
> Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
> ---
>  meta/classes/package_deb.bbclass | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/meta/classes/package_deb.bbclass
> b/meta/classes/package_deb.bbclass
> index eb549ca971a..e1bc078d6b6 100644
> --- a/meta/classes/package_deb.bbclass
> +++ b/meta/classes/package_deb.bbclass
> @@ -237,6 +237,10 @@ python do_package_deb () {
>          debian_cmp_remap(rsuggests)
>          # Deliberately drop version information here, not
> wanted/supported by deb
>          rprovides =
> dict.fromkeys(bb.utils.explode_dep_versions2(localdata.getVar("RPROVIDES")
> or ""), [])
> +        # Remove file paths if any from rprovides, debian does not
> support custom providers
> +        for key in list(rprovides.keys()):
> +            if key.startswith('/'):
> +                del rprovides[key]
>          rprovides = collections.OrderedDict(sorted(rprovides.items(),
> key=lambda x: x[0]))
>          debian_cmp_remap(rprovides)
>          rreplaces =
> bb.utils.explode_dep_versions2(localdata.getVar("RREPLACES") or "")
> -- 
> 2.11.0
> 


  reply	other threads:[~2017-02-15 10:36 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
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 [this message]
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=1487154986.2824.6.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 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.