From: Koen Kooi <k.kooi@student.utwente.nl>
To: openembedded-devel@lists.openembedded.org
Subject: Re: [RFC][PATCH] package.bbclass: export subpackage individual version, if different from main
Date: Sun, 20 Sep 2009 12:51:58 +0200 [thread overview]
Message-ID: <h951gf$in8$1@ger.gmane.org> (raw)
In-Reply-To: <1253428380-27587-1-git-send-email-denis@denix.org>
On 20-09-09 08:33, Denys Dmytriyenko wrote:
> Fixes the wrong versioned runtime dependency for shlib subpackages with
> own versions. Consider this:
>
> PACKAGES = "libfoo libbar"
> PV_libfoo = "1"
> PV_libbar = "2"
> PV = "3"
>
> That will generate libfoo_1 and libbar_2 packages, but version 3 will be
> exported in shlibs database, leading to the following versioned runtime
> dependencies:
>
> RDEPENDS: libfoo (>=3) libbar (>=3)
>
> This fixes the problem.
Normally I'd ask for a use case, but I know what you need it for :)
> Signed-off-by: Denys Dmytriyenko<denis@denix.org>
Acked-by: Koen Kooi <koen@openembedded.org>
>
> ---
> classes/package.bbclass | 6 +++++-
> 1 files changed, 5 insertions(+), 1 deletions(-)
>
> diff --git a/classes/package.bbclass b/classes/package.bbclass
> index 5a9fa50..7a0ba80 100644
> --- a/classes/package.bbclass
> +++ b/classes/package.bbclass
> @@ -652,6 +652,10 @@ python package_do_shlibs() {
> needs_ldconfig = False
> bb.debug(2, "calculating shlib provides for %s" % pkg)
>
> + pkgver = bb.data.getVar('PV_' + pkg, d, 1)
> + if not pkgver:
> + pkgver = ver
> +
> needed[pkg] = []
> sonames = list()
> top = os.path.join(pkgdest, pkg)
> @@ -696,7 +700,7 @@ python package_do_shlibs() {
> fd.close()
> package_stagefile(shlibs_file, d)
> fd = open(shver_file, 'w')
> - fd.write(ver + '\n')
> + fd.write(pkgver + '\n')
> fd.close()
> package_stagefile(shver_file, d)
> if needs_ldconfig and use_ldconfig:
next prev parent reply other threads:[~2009-09-20 10:52 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-20 6:33 [RFC][PATCH] package.bbclass: export subpackage individual version, if different from main Denys Dmytriyenko
2009-09-20 8:40 ` Phil Blundell
2009-09-20 12:29 ` Koen Kooi
2009-09-20 18:49 ` Denys Dmytriyenko
2009-09-22 18:51 ` Denys Dmytriyenko
2009-09-20 10:51 ` Koen Kooi [this message]
2009-09-20 15:13 ` Khem Raj
2009-09-20 18:50 ` Denys Dmytriyenko
2009-09-21 15:10 ` Phil Blundell
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='h951gf$in8$1@ger.gmane.org' \
--to=k.kooi@student.utwente.nl \
--cc=openembedded-devel@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.