From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from r-finger.com (r-finger.com [178.79.160.5]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 6C578E0027E for ; Mon, 8 Oct 2012 11:56:49 -0700 (PDT) Received: from [192.168.0.2] (host81-153-117-118.range81-153.btcentralplus.com [81.153.117.118]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by r-finger.com (Postfix) with ESMTPSA id B9FBF99A4 for ; Mon, 8 Oct 2012 19:56:48 +0100 (BST) Message-ID: <507321EF.7070009@r-finger.com> Date: Mon, 08 Oct 2012 19:56:47 +0100 From: Tomas Frydrych User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.5) Gecko/20120624 Icedove/10.0.5 MIME-Version: 1.0 CC: poky@yoctoproject.org References: <5072FBB8.9060703@mlbassoc.com> <5797264.jLXkT5xyjF@helios> <5073101D.9080204@r-finger.com> <4966710.FLmFsZHAgP@helios> In-Reply-To: <4966710.FLmFsZHAgP@helios> Subject: Re: Files missing from package X-BeenThere: poky@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Poky build system developer discussion & patch submission for meta-yocto List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Oct 2012 18:56:49 -0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 08/10/12 19:22, Paul Eggleton wrote: > On Monday 08 October 2012 18:40:45 Tomas Frydrych wrote: >> On 08/10/12 17:24, Paul Eggleton wrote: >>> Since ${sysconfdir} is /etc by default and ${sysconfdir} is in the default >>> value of FILES_${PN}, and your additional package is appended to PACKAGES, >>> I suspect you'll find the file is being picked up by the main package >>> first. You need to use =+ instead of += so that the some-tool-tools >>> package is prepended to PACKAGES and thus gets the file before the main >>> package. >> >> Probably worth noting that using =+ with PACKAGES can have some >> undesirable side effects. For example, if the recipe in question >> generates packages dynamically, e.g., for plugins, the first package in >> the PACKAGES list will be considered the 'main' package, and the dynamic >> packages will RDEPEND on it. If you modify PACKAGES in such a recipe >> using the =+, this will result in broken dependency chain without any >> obvious signs something is not right. I think it's much better to >> explicitly specify what should go into the main package than using =+ to >> work around the unsuitable main package default. > > If we're using just the first item in PACKAGES for anything anywhere then that > is wrong and we should fix it. I would be surprised if we were still doing that Denzil does, http://git.yoctoproject.org/cgit.cgi/poky/tree/meta/classes/package.bbclass?h=denzil#n110 Tomas