From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from 93-97-173-237.zone5.bethere.co.uk ([93.97.173.237] helo=tim.rpsys.net) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1SuV0S-00043A-QA for openembedded-core@lists.openembedded.org; Thu, 26 Jul 2012 22:50:01 +0200 Received: from localhost (localhost [127.0.0.1]) by tim.rpsys.net (8.13.6/8.13.8) with ESMTP id q6QKcUlP026343 for ; Thu, 26 Jul 2012 21:38:30 +0100 Received: from tim.rpsys.net ([127.0.0.1]) by localhost (tim.rpsys.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 25968-10 for ; Thu, 26 Jul 2012 21:38:25 +0100 (BST) Received: from [192.168.3.10] ([192.168.3.10]) (authenticated bits=0) by tim.rpsys.net (8.13.6/8.13.8) with ESMTP id q6QKc7Vq026326 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 26 Jul 2012 21:38:20 +0100 Message-ID: <1343335085.9574.32.camel@ted> From: Richard Purdie To: Patches and discussions about the oe-core layer Date: Thu, 26 Jul 2012 21:38:05 +0100 In-Reply-To: References: <1343328564-3644-1-git-send-email-sgw@linux.intel.com> <1343329086.4470.56.camel@x121e.pbcl.net> X-Mailer: Evolution 3.2.2- Mime-Version: 1.0 X-Virus-Scanned: amavisd-new at rpsys.net Subject: Re: [PATCH] package.bbclass: Let pn be eglibc for eglibc-locale 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, 26 Jul 2012 20:50:01 -0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit On Thu, 2012-07-26 at 13:16 -0700, Khem Raj wrote: > On Thu, Jul 26, 2012 at 11:58 AM, Phil Blundell wrote: > > > > Bletch! There must surely be some way to solve this problem without > > hacking recipe names into package.bbclass. > > Yes making eglibc-locale base package to be non empty. So if we put in > something there that it never turns out to be empty is one way Well, having things depending on eglibc-locale-locale is wrong in many ways :/. eglibc is just the only package we split the locale generation into a separate recipe for. A more generic check in there which would work for multiple libcs would be: if pn.endswith("-locale"): pn = pn[:-7] the other alternative which comes to mind would be so set a variable with the name we want used there, defaulting it to PN. Cheers, Richard