Confused as to why runtime variables (RDEPENDS, RPROVIDES, etc) require package name overrides


kergoth@...
 

It doesn't have anything to do with parsing. A single bitbake recipe will write multiple binary packages by splitting up its files, so each binary package it writes has its own metadata.


On Mon, Aug 1, 2022 at 10:45 AM <brownij6@...> wrote:
Essentially I don't understand why variables like RDEPENDS require a package name conditional override such as "RDEPENDS_${PN}" while other variables, including DEPENDS, do not require this. Isn't putting the package name as a conditional after the variable pointless, since bitbake only parses the variables from the recipe it is currently building? I feel like my confusion may stem from some fundamental misunderstanding of the way the build system works.

Thanks for your help,
James




--
Christopher Larson
chris_larson@..., chris.larson@..., kergoth@...
Principal Software Engineer, Embedded Linux Solutions, Siemens Digital Industries Software


brownij6@...
 

Essentially I don't understand why variables like RDEPENDS require a package name conditional override such as "RDEPENDS_${PN}" while other variables, including DEPENDS, do not require this. Isn't putting the package name as a conditional after the variable pointless, since bitbake only parses the variables from the recipe it is currently building? I feel like my confusion may stem from some fundamental misunderstanding of the way the build system works.

Thanks for your help,
James