From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dan.rpsys.net (5751f4a1.skybroadband.com [87.81.244.161]) by mail.openembedded.org (Postfix) with ESMTP id 4D17D719B7 for ; Wed, 22 Mar 2017 16:32:23 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by dan.rpsys.net (8.14.4/8.14.4/Debian-4.1ubuntu1) with ESMTP id v2MGW7LE002510; Wed, 22 Mar 2017 16:32:07 GMT Received: from dan.rpsys.net ([127.0.0.1]) by localhost (dan.rpsys.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id QziICBkH7Bjp; Wed, 22 Mar 2017 16:32:07 +0000 (GMT) Received: from hex ([192.168.3.34]) (authenticated bits=0) by dan.rpsys.net (8.14.4/8.14.4/Debian-4.1ubuntu1) with ESMTP id v2MGW1gh002501 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NOT); Wed, 22 Mar 2017 16:32:02 GMT Message-ID: <1490200321.13980.177.camel@linuxfoundation.org> From: Richard Purdie To: "Burton, Ross" Date: Wed, 22 Mar 2017 16:32:01 +0000 In-Reply-To: References: <1490194798.13980.172.camel@linuxfoundation.org> X-Mailer: Evolution 3.18.5.2-0ubuntu3.1 Mime-Version: 1.0 Cc: OE Core mailing list Subject: Re: design question: should layer.conf contain "PREFERRED_VERSION" settings? X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Mar 2017 16:32:25 -0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit On Wed, 2017-03-22 at 15:44 +0000, Burton, Ross wrote: > > On 22 March 2017 at 14:59, Richard Purdie tion.org> wrote: > > What should happen is that the openstack recipe should complain > > loudly > > (error) if anyone tried to build it (or parse it?) with anything > > except > > the versions its known to work with. > > > Is this a good time to bring up versions in DEPENDS? Yes. I'd swear there was a bug for this but I can't find it. I know we made versions able to be added to DEPENDS without parse failures, its just a question of getting bitbake to parse them. > It would be awesome to automatically set PREFERRED_VERSION as > appropriate depending on the constrains in DEPENDS, but I'd be really > happy with errors if the versions specified were not selected. > > So in this case openstack could do DEPENDS=python-something (>4.0) > and bitbake would error out if python-something v3 is being built. I don't think setting PREFERRED_VERSION magically would be good but I do like the rest of the idea, its always been the intent really... Someone needs to file a bug... Cheers, Richard