Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH v2] package bbclass: allow per package PRIVATE_LIBS
@ 2012-01-27 16:50 Koen Kooi
  2012-02-01 15:24 ` Richard Purdie
  0 siblings, 1 reply; 2+ messages in thread
From: Koen Kooi @ 2012-01-27 16:50 UTC (permalink / raw)
  To: openembedded-core; +Cc: Koen Kooi

If a recipe packages multiple versions of shlib (e.g. powervr drivers) we only want the shlib code to pickup $PN, not $PN-foo subpackages.
This keeps backward compatibility with the global PRIVATE_LIBS usage if no per package PRIVATE_LIBS are set for a given package. In other words: this doesn't break the firefox recipe.

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
---
 meta/classes/package.bbclass |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index 45447e3..0322a05 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -1326,8 +1326,8 @@ python package_do_shlibs() {
 
 	needed = {}
 	shlib_provider = {}
-	private_libs = d.getVar('PRIVATE_LIBS', True)
 	for pkg in packages.split():
+		private_libs = d.getVar('PRIVATE_LIBS_' + pkg, True) or d.getVar('PRIVATE_LIBS', True)
 		needs_ldconfig = False
 		bb.debug(2, "calculating shlib provides for %s" % pkg)
 
-- 
1.7.2.5




^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH v2] package bbclass: allow per package PRIVATE_LIBS
  2012-01-27 16:50 [PATCH v2] package bbclass: allow per package PRIVATE_LIBS Koen Kooi
@ 2012-02-01 15:24 ` Richard Purdie
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Purdie @ 2012-02-01 15:24 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer; +Cc: Koen Kooi

On Fri, 2012-01-27 at 17:50 +0100, Koen Kooi wrote:
> If a recipe packages multiple versions of shlib (e.g. powervr drivers) we only want the shlib code to pickup $PN, not $PN-foo subpackages.
> This keeps backward compatibility with the global PRIVATE_LIBS usage if no per package PRIVATE_LIBS are set for a given package. In other words: this doesn't break the firefox recipe.
> 
> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
> ---
>  meta/classes/package.bbclass |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)

Merged to master, thanks.

Richard




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-02-01 15:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-27 16:50 [PATCH v2] package bbclass: allow per package PRIVATE_LIBS Koen Kooi
2012-02-01 15:24 ` Richard Purdie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox