[yocto] setting DEPENDS variable to specific package version

Dafna Hirschfeld dafna3 at gmail.com
Mon Jan 1 05:03:16 PST 2018


Hi,
thanks,
I work alone, and have no people I know to consult with.
Does the PREFERRED_VERSION influence static linking only ? So that the
package version in the DEPENDS list is decided according to that variable ?
If so, why can't it be a recipe specific ?
If I want package A to statically link with lua5.3 and package B to be
statically linked with lua5.2 . How can I do that ?

Thanks


On Mon, Jan 1, 2018 at 2:27 PM, John Ernberg <john.ernberg at actia.se> wrote:

> Hi Dafna,
> On 12/30/2017 06:25 PM, Dafna Hirschfeld wrote:
>
> Hi,
>
> I want to add the vlc package , which has "lua" package in it's DEPNENDS
> variable.
> But vlc needs lua5.2 and the default is lua5.3
> So when running vlc on the target I get "undefined symbol" in the
> liblua_plugin.so
> So how do I set the packages in DEPENDS to be in specific version ?
>
> I added lua_5.2.2.bb found in this repo https://git.congatec.com/
> yocto/meta-openembedded.git to meta-openembedded/meta-oe/
> recipes-devtools/lua/
>
> and added
>
> PREFERRED_VERSION_lua = "5.2%"
>
> to meta-openembedded/meta-multimedia/recipes-multimedia/vlc/vlc.inc
>
> but this didn't have any effect.
>
> thanks
>
>
> PREFERRED_VERSION is a config-variable, try setting it in your local.conf.
>
> Best regards // John
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20180101/71d81623/attachment.html>


More information about the yocto mailing list