From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga09.intel.com ([134.134.136.24]) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1QozHZ-0003UT-Pt for openembedded-core@lists.openembedded.org; Thu, 04 Aug 2011 16:52:22 +0200 Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP; 04 Aug 2011 07:47:57 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.67,316,1309762800"; d="scan'208";a="34412256" Received: from unknown (HELO [10.255.14.76]) ([10.255.14.76]) by orsmga002.jf.intel.com with ESMTP; 04 Aug 2011 07:47:57 -0700 Message-ID: <4E3AB11D.7050003@linux.intel.com> Date: Thu, 04 Aug 2011 07:47:57 -0700 From: Saul Wold User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc13 Lightning/1.0b3pre Thunderbird/3.1.10 MIME-Version: 1.0 To: Patches and discussions about the oe-core layer References: <1312196922-20019-1-git-send-email-koen@dominion.thruhere.net> In-Reply-To: <1312196922-20019-1-git-send-email-koen@dominion.thruhere.net> Cc: Koen Kooi , Koen Kooi Subject: Re: [PATCH] gtk-icon-cache bbclass: only add runtime dependencies on hicolor-icon-theme when installing icons X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Patches and discussions about the oe-core layer List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Aug 2011 14:52:22 -0000 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 08/01/2011 04:08 AM, Koen Kooi wrote: > Tested with gnome-icon-theme and libsoup recipes on angstrom. > > Signed-off-by: Koen Kooi > --- > meta/classes/gtk-icon-cache.bbclass | 8 ++++++-- > 1 files changed, 6 insertions(+), 2 deletions(-) > > diff --git a/meta/classes/gtk-icon-cache.bbclass b/meta/classes/gtk-icon-cache.bbclass > index dcabaf5..d9b5d1b 100644 > --- a/meta/classes/gtk-icon-cache.bbclass > +++ b/meta/classes/gtk-icon-cache.bbclass > @@ -1,5 +1,4 @@ > FILES_${PN} += "${datadir}/icons/hicolor" > -RDEPENDS += "hicolor-icon-theme" > > # This could run on the host as icon cache files are architecture independent, > # but there is no gtk-update-icon-cache built natively. > @@ -34,7 +33,12 @@ python populate_packages_append () { > icon_dir = '%s/%s/%s/icons' % (pkgdest, pkg, bb.data.getVar('datadir', d, 1)) > if not os.path.exists(icon_dir): > continue > - > + > + bb.note("adding hicolor-icon-theme dependency to %s" % pkg) > + rdepends = bb.data.getVar('RDEPENDS', d, 1) > + rdepends += "hicolor-icon-theme" > + bb.data.setVar('RDEPENDS', rdepends, d) > + > bb.note("adding gtk-icon-cache postinst and postrm scripts to %s" % pkg) > > postinst = bb.data.getVar('pkg_postinst_%s' % pkg, d, 1) or bb.data.getVar('pkg_postinst', d, 1) Merged into OE-Core Thanks Sau!