[yocto] upgrading packages in yocto

Nicolas Dechesne nicolas.dechesne at linaro.org
Mon Oct 1 01:01:00 PDT 2018


On Mon, Oct 1, 2018 at 8:22 AM Pandey, Kamal <Kamal.Pandey at ifm.com> wrote:
>
> I want to upgrade some packages of poky/meta/recipes-graphics/ like weston_2.0.0.bb to weston_4.0.0.bb. Also I don't want any changes to be made in poky/meta layer. What is the best way of doing these kinds of upgradations. I think bbappend here will create problems as the SRC_URI and other variables use the PV from recipe name to fulfil some operations.
> The other thing I can do is create a weston_4.0.0.bb file in my own custom layer and work but then I don't know how to disable the older(original) weston_2.0.0.bb file.
> What will be the best method to upgrade packages. One thing to remind you that the SRC_URI is not a repository , it's a tarball repo. So I directly can't replace the SRC_URI in .bbappend file.
> Any leads regarding this will be appreciated.

You should get a new custom layer that holds the 4.0 recipe. It is a
bad idea to use a .bbappend since you are changing the version ($PV).
Note that upgrading one recipe might require that you update some
dependencies as well. You don't need to 'disable' the old recipe, it
will be overlaid anyways.

To give you an idea, this is how we manage 'backports' for our builds:
https://git.linaro.org/openembedded/meta-backports.git

>
> -----Original Message-----
> From: yocto-bounces at yoctoproject.org <yocto-bounces at yoctoproject.org> On Behalf Of yocto-request at yoctoproject.org
> Sent: 30 September 2018 00:30
> To: yocto at yoctoproject.org
> Subject: yocto Digest, Vol 96, Issue 79
>
> Send yocto mailing list submissions to
>         yocto at yoctoproject.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.yoctoproject.org_listinfo_yocto&d=DwICAg&c=riR7jviByh3sGm7GIiSlHkFN0_aSATB6A8x0nHa2EM0&r=B4t2KSJ3IM1b9sK9gvCmTFe5JX-rxgD15fYh5lG11MM&m=Zi9dlMz5JoZfKdwcbr7eV_JK7qB8SJTPYP9LdRWnlG8&s=RQp-3-7SeXpR_ysQqD1qg5XYb2ycNNJlz5k63RsTovE&e=
> or, via email, send a message with subject or body 'help' to
>         yocto-request at yoctoproject.org
>
> You can reach the person managing the list at
>         yocto-owner at yoctoproject.org
>
> When replying, please edit your Subject line so it is more specific than "Re: Contents of yocto digest..."
>
> --
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto


More information about the yocto mailing list