[yocto] PREFERRED_VERSION for native package

Khem Raj raj.khem at gmail.com
Tue Jan 19 10:57:52 PST 2016


> On Jan 19, 2016, at 8:13 AM, Vuille, Martin (Martin) <vmartin at avaya.com> wrote:
> 
> OK, found the problem.
> 
> To achieve my objective, the right approach is to add “AGPL-3.0” to INCOMPATIBLE_LICENSE.
> This causes the build to fall back to the older version of db.
> 
> However, I figured this out after finding the following line in poky/meta/conf/distro/include/default-versions.inc:
> 
>                 PREFERRED_VERSION_db-native = ${@incompatible_license_contains('AGPL-3.0', '5.%', '6.%', d)}
> 
> Is it correct that this is an absolute assignment rather than a conditional one? I think my
> PREFERRED_VERSION_db-native assignment would’ve worked if it hadn’t been overridden
> by this one.

its a distro policy based upon licensing if weak assignment is used then the licensing  won’t be able to enforce the decision
if someone overrides it.

> 
> MV
> 
> From: yocto-bounces at yoctoproject.org <mailto:yocto-bounces at yoctoproject.org> [mailto:yocto-bounces at yoctoproject.org <mailto:yocto-bounces at yoctoproject.org>] On Behalf Of Vuille, Martin (Martin)
> Sent: January 19, 2016 8:16 AM
> To: yocto at yoctoproject.org <mailto:yocto at yoctoproject.org>
> Subject: [yocto] PREFERRED_VERSION for native package
> 
> Yocto Fido
> 
> I am trying to use PREFERRED_VERSION to select an earlier version
> of the “db” package. The build includes both db and db-native variants
> of the package.
> 
> I set PREFERRED_VERSION_db variable and this successfully changes
> the version of the db package but not the db-native package.
> 
> I tried also setting PREFERRED_VERSION_db-native but this doesn’t
> seem to have any effect.
> 
> What am I missing? How can I override version for a native package?
> --
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org <mailto:yocto at yoctoproject.org>
> https://lists.yoctoproject.org/listinfo/yocto <https://lists.yoctoproject.org/listinfo/yocto>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20160119/f4fa5e8a/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 204 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20160119/f4fa5e8a/attachment.pgp>


More information about the yocto mailing list