From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dan.rpsys.net (5751f4a1.skybroadband.com [87.81.244.161]) by mail.openembedded.org (Postfix) with ESMTP id 232BF60557 for ; Tue, 23 Jun 2015 16:56:28 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by dan.rpsys.net (8.14.4/8.14.4/Debian-4.1ubuntu1) with ESMTP id t5NGuTIK005853; Tue, 23 Jun 2015 17:56:29 +0100 Received: from dan.rpsys.net ([127.0.0.1]) by localhost (dan.rpsys.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id eB98S_HaWznE; Tue, 23 Jun 2015 17:56:29 +0100 (BST) Received: from [192.168.3.10] ([192.168.3.10]) (authenticated bits=0) by dan.rpsys.net (8.14.4/8.14.4/Debian-4.1ubuntu1) with ESMTP id t5NGuGnl005831 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NOT); Tue, 23 Jun 2015 17:56:27 +0100 Message-ID: <1435078576.11489.96.camel@linuxfoundation.org> From: Richard Purdie To: Mike Crowe Date: Tue, 23 Jun 2015 17:56:16 +0100 In-Reply-To: <20150623152501.GA26456@mcrowe.com> References: <1434221081-4286-1-git-send-email-mac@mcrowe.com> <1435072346.2483.417.camel@pbcl.net> <20150623152501.GA26456@mcrowe.com> X-Mailer: Evolution 3.12.10-0ubuntu1~14.10.1 Mime-Version: 1.0 Cc: openembedded-core@lists.openembedded.org Subject: Re: [PATCH] pixbufcache: Ensure that jpeg-native is available for postinst if necessary X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Jun 2015 16:56:29 -0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit On Tue, 2015-06-23 at 16:25 +0100, Mike Crowe wrote: > On Tuesday 23 June 2015 at 16:12:26 +0100, Phil Blundell wrote: > > On Sat, 2015-06-13 at 19:44 +0100, Mike Crowe wrote: > > > diff --git a/meta/classes/pixbufcache.bbclass b/meta/classes/pixbufcache.bbclass > > > index 9e6ecc8..755a654 100644 > > > --- a/meta/classes/pixbufcache.bbclass > > > +++ b/meta/classes/pixbufcache.bbclass > > > @@ -72,6 +72,7 @@ PIXBUFCACHE_SYSROOT_DEPS_class-native = "\ > > > glib-2.0-native:do_populate_sysroot_setscene libffi-native:do_populate_sysroot_setscene \ > > > libpng-native:do_populate_sysroot_setscene zlib-native:do_populate_sysroot_setscene \ > > > harfbuzz-native:do_populate_sysroot_setscene \ > > > + ${@bb.utils.contains('PACKAGECONFIG', 'jpeg', 'jpeg-native:do_populate_sysroot_setscene', '', d)} \ > > > > I'm not sure this is quite right. PACKAGECONFIG at the point this is > > expanded will be the PACKAGECONFIG for whatever recipe is currently > > inheriting pixbufcache.bbclass, whereas I think what you really need > > here is the PACKAGECONFIG that gdk-pixbuf itself was built with. Or, > > er, something. > > The problem I was seeing was with gdk-pixbuf itself so it sounds like I > need to add the dependency only when '${BPN}' == 'gdk-pixbuf' itself. I'll > have a go at that. I'm still not convinced this is the right route to go down. I'd much rather find a way to improve my other patch with the right abstractions, or just accept the ugliness in base.bbclass... Cheers, Richard