Is RDEPENDS = "foo" supported?
Is RDEPENDS = "foo" allowed in recipes? If yes, then it does not work.
I have been searching for a reason, why my image does not set keymap.
Reason: console-tools were missing. Replacing RDEPENDS by RDEPENDS_${PN} in the keymaps recipe fixed it.
Does it mean, that this and another 622 recipes use invalid syntax of RDEPENDS or is it a bug in the toolchain?
Looking at the staging-pkg runtime data with just a plain "RDEPENDS =" into work/, mentioned dependencies are missing.
________________________________________________________________________
Stanislav Brabec
http://www.penguin.cz/~utx/zaurus
Quoted 1 line · Stanislav Brabec
Is RDEPENDS = "foo" allowed in recipes? If yes, then it does not work.
It is allowed, and in at least some situations it will even work, but in the vast majority of cases it is not the right thing to do. There are two problems with it: both of them have been discussed here on the list quite recently, but to recap:
1) ${RDEPENDS} will apply to all the output subpackages, i.e. ${PN}-dev, ${PN}-doc and various ${PN}-locale-* things. In most cases, ${PN} is the only one that you actually want to receive the dependency.
2) ${RDEPENDS} will be overridden by ${RDEPENDS_${PN}} if the latter is set. This is sometimes done by .bbclass files and the like, in which case any dependencies you set in ${RDEPENDS} will be ineffective.
Quoted 3 lines
I have been searching for a reason, why my image does not set keymap.
Reason: console-tools were missing. Replacing RDEPENDS by RDEPENDS_${PN} in the keymaps recipe fixed it.
In this particular case, update-rc.d.bbclass sets RDEPENDS_${PN} and hence (2) above will apply.
Quoted 2 lines
Does it mean, that this and another 622 recipes use invalid syntax of RDEPENDS or is it a bug in the toolchain?
It's probably true that almost all of those 623 recipes should be using RDEPENDS_${PN} or something similar instead of plain RDEPENDS.
p.
Quoted 7 lines · Phil Blundell
Quoted 1 line · Stanislav Brabec
Is RDEPENDS = "foo" allowed in recipes? If yes, then it does not work.
It is allowed, and in at least some situations it will even work, but in the vast majority of cases it is not the right thing to do. There are two problems with it: both of them have been discussed here on the list quite recently, but to recap:
Here is the original thread, for reference:
http://thread.gmane.org/gmane.comp.handhelds.openembedded/24663
Quoted 12 lines
1) ${RDEPENDS} will apply to all the output subpackages, i.e. ${PN}-dev, ${PN}-doc and various ${PN}-locale-* things. In most cases, ${PN} is the only one that you actually want to receive the dependency.
2) ${RDEPENDS} will be overridden by ${RDEPENDS_${PN}} if the latter is set. This is sometimes done by .bbclass files and the like, in which case any dependencies you set in ${RDEPENDS} will be ineffective.
Quoted 3 lines
I have been searching for a reason, why my image does not set keymap.
Reason: console-tools were missing. Replacing RDEPENDS by RDEPENDS_${PN} in the keymaps recipe fixed it.
Quoted 8 lines
In this particular case, update-rc.d.bbclass sets RDEPENDS_${PN} and hence (2) above will apply.
Quoted 2 lines
Does it mean, that this and another 622 recipes use invalid syntax of RDEPENDS or is it a bug in the toolchain?
It's probably true that almost all of those 623 recipes should be using RDEPENDS_${PN} or something similar instead of plain RDEPENDS.
Yeah, I had to fix some of my recipes in the overlay here...
Signature · 1 line
Denys