From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [206.46.173.5] (helo=vms173005pub.verizon.net) by linuxtogo.org with esmtp (Exim 4.69) (envelope-from ) id 1M68A2-000546-CN for openembedded-devel@lists.openembedded.org; Mon, 18 May 2009 21:06:06 +0200 Received: from gandalf.denix.org ([71.127.60.148]) by vms173005.mailsrvcs.net (Sun Java(tm) System Messaging Server 6.3-7.04 (built Sep 26 2008; 32bit)) with ESMTPA id <0KJU00GPDSPFUH01@vms173005.mailsrvcs.net> for openembedded-devel@lists.openembedded.org; Mon, 18 May 2009 13:58:32 -0500 (CDT) Received: by gandalf.denix.org (Postfix, from userid 1000) id EF72814AF5F; Mon, 18 May 2009 14:58:26 -0400 (EDT) Date: Mon, 18 May 2009 14:58:26 -0400 From: Denys Dmytriyenko To: openembedded-devel@lists.openembedded.org Message-id: <20090518185826.GD19357@denix.org> References: <1242247998-30548-1-git-send-email-clarson@mvista.com> <20090513212546.GF32320@denix.org> <20090518154833.GC19357@denix.org> <4A11A22B.7000206@mvista.com> MIME-version: 1.0 In-reply-to: <4A11A22B.7000206@mvista.com> User-Agent: Mutt/1.5.16 (2007-06-09) Subject: Re: [PATCH] bitbake.conf, freeze.inc: Add version lockdown implementation and use it by default. X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: openembedded-devel@lists.openembedded.org List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 May 2009 19:06:06 -0000 Content-type: text/plain; charset=us-ascii Content-disposition: inline On Mon, May 18, 2009 at 11:00:11AM -0700, Christopher Larson wrote: > Denys Dmytriyenko wrote: >> On Wed, May 13, 2009 at 05:25:46PM -0400, Denys Dmytriyenko wrote: >> >>> On Wed, May 13, 2009 at 01:53:18PM -0700, Chris Larson wrote: >>> >>>> For each recipe which completes a task successfully, this emits the >>>> current >>>> version into ${TMPDIR}/versions.conf as a PREFERRED_VERSION line. >>>> ${TMPDIR}/versions.conf and conf/versions.conf are automatically >>>> included, >>>> in that order, in subsequent builds, to provide more deterinistic builds >>>> by >>>> default, and to let the user make the lockdown persist via a simple cp >>>> command. >>>> >>>> Assuming that the latest ncurses in the recipes is 5.7, and that 5.7 is >>>> preferred over 5.3 by default given any distro version preferences, if >>>> they >>>> exist, the following are examples of its behavior: >>>> >>>> $ rm -rf tmp >>>> $ bitbake ncurses-5.3 >>>> $ bitbake -c clean ncurses >>>> $ bitbake ncurses # builds ncurses 5.3 >>>> >>>> $ cp tmp/versions.conf conf/ >>>> $ rm -rf tmp >>>> $ bitbake ncurses # builds ncurses 5.3 >>>> >>> Very nice! Let me try it here... >>> >>> >>>> Signed-off-by: Chris Larson >>>> >> >> Chris, >> >> Will you be sending an updated version of the patch, which handles TMPDIR >> overwritten in local.conf, as we discussed last week? Thanks. > Yep, I'm going to make the thing opt-in rather than default, since > apparently not everyone wants it as default behavior, and change it to use > ?= assignments, and leave it at that. Hmm, I'm using the updated version of freeze.inc with weak assignments and there seems to be an issue with picking the correct version. Or maybe I'm doing something wrong... I have a customized u-boot recipe, based on 1.3.4, which sets PV as "1.3.4" and PR as "myX.Y.Z". Having 2 revisions of the above recipe with X.Y.Z = "2.0.0" and "2.1.0", by default BitBake picks the correct one with higher PR - i.e. "1.3.4-my2.1.0". Then when freeze.inc sets PREFERRED_VERSION to "1.3.4", it starts picking the lowest version, i.e. "1.3.4-my2.0.0". What gives? Any ideas? -- Denys