how to specify the package version via RDEPENDS in package group #bitbake
I have multiple version for opencv, but bibake installed the version 3.4.3 default.
the yocto offical documents mentioned the variable then i specified the version to 4.1.0 for opencv in package group.
Appeared the failure message, why?? The version list has v4.1.0, but the error message show
Successfully built the image after I try to set the version conditions as
How to specify the package version via |
|
Alexander Kanavin
You need to look up PREFERRED_VERSION rather.
toggle quoted message
Show quoted text
Alex On Tue, 22 Nov 2022 at 09:51, Martin <linmartin.tw@...> wrote:
|
|
Chen Qi
I think your major concern is “I have multiple version for opencv, but bibake installed the version 3.4.3 default.”. It’s because layers have different layer priorities specified by BBFILE_PRIORITY in layer.conf, and for recipes with the same name in different layers, the one in higher priority layer will be selected regardless of the recipes’ versions. In such case, you can set PREFERRED_VERSION to use the one you want. Regards, Qi
From: yocto@... <yocto@...>
On Behalf Of Martin via lists.yoctoproject.org
Sent: Tuesday, November 22, 2022 3:59 PM To: yocto@... Subject: [yocto] how to specify the package version via RDEPENDS in package group #bitbake
I have multiple version for opencv, but bibake installed the version 3.4.3 default.
the
yocto offical documents mentioned the variable then i specified the version to 4.1.0 for opencv in package group.
Appeared the failure message, why?? The version list has v4.1.0, but the error message show
Successfully built the image after I try to set the version conditions as
How to specify the package version via
|
|
thanks for reply, i original method was specified the package version in local.conf by PREFEREED_VERSION. i wondering if configure package version in package group via RDEPENDS makes it possible? but it seems impossible. what situations allow REDPENDS to specify a version? thanks. |
|
Quentin Schulz
Hi Martin,
On 11/23/22 06:25, Martin wrote: thanks for reply, i original method was specified the package version in local.conf by PREFEREED_VERSION.As far as I remember, RDEPENDS is handled by the package manager when installing the package. So I imagine this is a way to make sure that a filesystem is not built with two packages that are incompatible at runtime by failing when creating the filesystem. The choice of which version to build is a responsibility of Bitbake which happens way before RDEPENDS. Also, chant #1 of Yocto applies: recipe data is local, config data is global. So you cannot impact one recipe from another, this implies you cannot pick a version of one recipe from another, you can only say whether you're compatible with it. Cheers, Quentin |
|