All of lore.kernel.org
 help / color / mirror / Atom feed
From: Francesco Del Degan <f.deldegan@endian.com>
To: yocto@yoctoproject.org
Subject: Re: Package specific version dependencies
Date: Tue, 13 Aug 2013 10:28:39 +0200	[thread overview]
Message-ID: <87r4dy2dvs.fsf@endian.com> (raw)
In-Reply-To: 5200F116.2010108@windriver.com

Mark Hatle <mark.hatle@windriver.com> writes:

> On 8/6/13 4:07 AM, Paul Eggleton wrote:
>> Hi Francesco,
>>
>> On Tuesday 06 August 2013 09:55:06 Francesco Del Degan wrote:
>>> Playing with RDEPENDS variable i'm facing the needs to
>>> specify a dependency based on specific version of a package
>>> (greather than, in my specific case).
>>>
>>> The underlying package managers supports declaring dependencies
>>> including version relationships, for example:
>>>
>>> Rpm:  Requires: package_xxx >= 1.0.27
>>> Deb:  Depends: libc6 (>= 2.2.1)
>>> Okpg: Depends: xfree (>= 6.0), glib2
>>>
>>> Is this feature just missing in yocto or it's explicitly denied
>>> for some reason?
>>
>> This should work, in fact we use it (with =) in conjunction with EXTENDPKGV
>> when we want to force packages from the same recipe to upgrade in lock-step.
>
> The format for RDEPENDS is slightly different from all three.
>
> dep (= ver)
> dep (< ver)
> dep (> ver)
> dep (<= ver)
> dep (>= ver)
>
> (For those familiar with deb style, >> and << is not supported by the
> oe-core dependency set.  This is to avoid confusion as > and < are a
> lot more obvious.)
>
> The items above are then mapped into their respective format depending
> on the package manager you have selected.
>
> Note:  The version dependency items are not evaluated by bitbake, it
> only pays attention to the package name when determining build
> dependencies.  You would also need to specify (in your distribution or
> local .conf file) a PREFERRED_VERSION_dep = "ver" to ensure the right
> version is built.

Got it! Thank you for explanation.

Francesco



      reply	other threads:[~2013-08-13  8:28 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-06  7:55 Package specific version dependencies Francesco Del Degan
2013-08-06  9:07 ` Paul Eggleton
2013-08-06  9:28   ` Francesco Del Degan
2013-08-06 12:50   ` Mark Hatle
2013-08-13  8:28     ` Francesco Del Degan [this message]

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=87r4dy2dvs.fsf@endian.com \
    --to=f.deldegan@endian.com \
    --cc=yocto@yoctoproject.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.