All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hemmo Nieminen <hemmo.nieminen@aalto.fi>
To: Poky Project <poky@yoctoproject.org>
Subject: Depending on a specific version of a package
Date: Thu, 3 Nov 2011 13:53:43 +0200	[thread overview]
Message-ID: <20111103115343.GA15780@fcku> (raw)

Hi all,

I was wondering if it was possible to depend on a specific
version of a package? Say, I have the following packages

packageA_1.0.bb

packageB_2.2.bb
packageB_2.3.bb

I then want packageA to depend on packageB-2.2 (say,
packageB-2.3 is not backwards compatible). How could I do this?


I've noticed, that some of the existing recipes in Poky contain
Debian-like dependency definitions like the one below from
meta/recipes-support/gnutls/gnutls.inc. 

DEPENDS = "zlib lzo libtasn1 libgcrypt (>= 1.4.2) libcap"

I expect that this would mean that gnutls depends on version
1.4.2 or higher of package libgcrypt. This would be exactly what
I'm looking for, expect that I haven't been able to get the
desired effect with this. The version information inside the
parentheses seems to be completely ignored. 


I also tried adding a line like

DEPENDS += "packageB-2.2" 

into packageA's recipe, but this made Bitbake to start compiling
both the version I had specified as a dependency and the latest
version of that package and eventually to fail compiling either
one of those. 


Bitbake's manual also suggests using
PREFERRED_VERSION_package-name variable in some .conf file.
However, I'd rather define the version dependency in a recipe
file.


I'm using the latest Poky from Git.

Br,
Hemmo


                 reply	other threads:[~2011-11-03 11:54 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20111103115343.GA15780@fcku \
    --to=hemmo.nieminen@aalto.fi \
    --cc=hemmo.nieminen@iki.fi \
    --cc=poky@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.