Documenting VIRTUAL-RUNTIME variables
Greetings,
Following a warning from Tim (thanks!).
The VIRTUAL-RUNTIME_* variables do not appear in the YP manual variable index, and we shouldn't definitely address this.
However, I still hesitate between:
1. Creating multiple entries, especially for the most frequent variables (VIRTUAL-RUNTIME_init_manager, VIRTUAL-RUNTIME_dev_manager...), and maybe for "VIRTUAL-RUNTIME" as a name prefix
2. Creating just a generic "VIRTUAL-RUNTIME" entry for this common prefix.
I'm tempted to go for 1, but then I guess it opens to door to documenting most uses of this scheme.
Your opinions are welcome!
Thanks
Michael.
Signature · 3 lines
Michael Opdenacker, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
Quoted 18 lines · Michael Opdenacker via lists.yoctoproject.org
Greetings,
Following a warning from Tim (thanks!).
The VIRTUAL-RUNTIME_* variables do not appear in the YP manual variable
index, and we shouldn't definitely address this.However, I still hesitate between:
1. Creating multiple entries, especially for the most frequent variables (VIRTUAL-RUNTIME_init_manager, VIRTUAL-RUNTIME_dev_manager...), and maybe for "VIRTUAL-RUNTIME" as
a name prefix
2. Creating just a generic "VIRTUAL-RUNTIME" entry for this common prefix.
Quoted 2 lines
I'm tempted to go for 1, but then I guess it opens to door to documenting most uses of this scheme.
I'd suggest 2 since there can be an arbitrary number of them.
Cheers,
Richard
Quoted 20 lines · Richard Purdie
Quoted 18 lines · Michael Opdenacker via lists.yoctoproject.org
Greetings,
Following a warning from Tim (thanks!).
The VIRTUAL-RUNTIME_* variables do not appear in the YP manual variable
index, and we shouldn't definitely address this.However, I still hesitate between:
1. Creating multiple entries, especially for the most frequent variables (VIRTUAL-RUNTIME_init_manager, VIRTUAL-RUNTIME_dev_manager...), and maybe for "VIRTUAL-RUNTIME"
as
a name prefix
2. Creating just a generic "VIRTUAL-RUNTIME" entry for this common
prefix.
Quoted 5 lines
Quoted 2 lines
I'm tempted to go for 1, but then I guess it opens to door to documenting most uses of this scheme.
I'd suggest 2 since there can be an arbitrary number of them.
I agree we should keep it simple with #2.
The recipe that triggered the warning and the reason I asked was:
https://git.yoctoproject.org/meta-java/tree/recipes-core/ca-certificates-java/ca-certificates-java_20180516.bb#n103
RDEPENDS:${PN}:append:class-native = " virtual/java-native"
This causes:
"QA Issue: RDEPENDS is set to virtual/java-native but the substring 'virtual/' holds no meaning in this context. It only works for build time dependencies, not runtime ones. It is suggested to use 'VIRTUAL-RUNTIME_' variables instead. [virtual-slash]"
Which JaMa suggested in IRC should instead be RDEPENDS:${PN}:append:class-native = " ${VIRTUAL-RUNTIME_java-native}" although we both question if that line is even needed or not.
I guess my reason for the query was to understand (a) what the variable should be used for and what it means
(b) what the specific fix should be in a case like this when we get the [virtual-slash] QA warning.
Quoted 4 lines
Cheers,
Richard