From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.chez-thomas.org (mail.mlbassoc.com [65.100.170.105]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 96501E00346 for ; Tue, 9 Oct 2012 05:36:00 -0700 (PDT) Received: by mail.chez-thomas.org (Postfix, from userid 1998) id 7194AF8123D; Tue, 9 Oct 2012 06:35:59 -0600 (MDT) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on hermes.chez-thomas.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=4.0 tests=ALL_TRUSTED,BAYES_00 autolearn=unavailable version=3.3.2 Received: from [192.168.1.114] (zeus [192.168.1.114]) by mail.chez-thomas.org (Postfix) with ESMTP id AF9C3F811FB; Tue, 9 Oct 2012 06:35:58 -0600 (MDT) Message-ID: <50741A47.1010107@mlbassoc.com> Date: Tue, 09 Oct 2012 06:36:23 -0600 From: Gary Thomas User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120912 Thunderbird/15.0.1 MIME-Version: 1.0 To: Richard Purdie References: <5072FBB8.9060703@mlbassoc.com> <5797264.jLXkT5xyjF@helios> <5073101D.9080204@r-finger.com> <1349728637.15658.127.camel@ted> <50735211.1090100@mlbassoc.com> <1349735995.15658.156.camel@ted> In-Reply-To: <1349735995.15658.156.camel@ted> Cc: poky@yoctoproject.org 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: Tue, 09 Oct 2012 12:36:00 -0000 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 2012-10-08 16:39, Richard Purdie wrote: > On Mon, 2012-10-08 at 16:22 -0600, Gary Thomas wrote: >> On 2012-10-08 14:37, Richard Purdie wrote: >>> On Mon, 2012-10-08 at 18:40 +0100, 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. >>> >>> FWIW, there is the PACKAGE_BEFORE_PN variable for this and other >>> scenarios where you want something just before PN in PACKAGES. >> >> This does sound better, I always like to be explicit, especially when >> the default/background has a possibility of biting me! >> >> So, how would I use that for my case (i.e. what lines do I add/change >> in my recipe to use it)? > > PACKAGE_BEFORE_PN += "${PN}-tools" > FILES_${PN}-tools = "${sbindir}/get_tool \ > ${sbindir}/put_tool \ > /etc/tool.config \ > > > PACKAGE_BEFORE_PN lets you put the package specifically after > -dev/-dbg/-doc/-locale and so on but before PN. I needed to write this as PACKAGES_BEFORE_${PN} += "${PN}-tools" Thanks -- ------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------