Skip to contentSkip to conversation

RSUGGEST with rpm

DISCUSSION [email protected] 2 participants 5 messages Jul 2, 2024

lore
Share & tools
lore
#0 lore raw

Hello Guys,

I am trying to leverage *RSUGGESTS* variable in one of my recipes for kind of weak rdependency on another recipe coming from another layer. But variable does not do what is expected. (basically the expected binaries from another recipe are not in the final image)
Doc says

is it the case? Does variable *RSUGGESTS* work together with *rpm* ?

Thank you in advance,
Lukas Dibelka

#1 lore raw

RSUGGESTS isn't tested, so how package managers handle it when they see it (assuming it is written into packages) is undetermined. RRECOMMENDS is the better supported option.

Alex

Quoted 27 lines · lukas.dibelka via lists.yoctoproject.org

Hello Guys,

I am trying to leverage *RSUGGESTS *variable in one of my recipes for kind of weak rdependency on another recipe coming from another layer. But variable does not do what is expected.
(basically the expected binaries from another recipe are not in the final image)
Doc says

is it the case? Does variable *RSUGGESTS *work together with *rpm*?

Thank you in advance,
Lukas Dibelka

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#63425):
https://lists.yoctoproject.org/g/yocto/message/63425
Mute This Topic: https://lists.yoctoproject.org/mt/106996552/1686489
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#2 lore raw
Quoted 6 lines · Alexander Kanavin

ested, so how package managers handle it when they see it (assuming it is written into packages) is undetermined. RRECOMMENDS is the better supported option.

Thanks Alex for the speed of light fast answer. I have already found solution leveraging BBFILES_DYNAMIC

in the bbappend I am adding the needed depencency as RDEPENDS.

With RRECOMMENDS we are failing on

when CI builds our layer only (layer alone kind of build)

Lukas

#3 lore raw

No problem, I think this kind of thing is better controlled with a PACKAGECONFIG/DISTRO_FEATURE, rather than presence or absence of layers. That way everything about the recipe is local to the recipe file and not spread all over the place. And you can disable/enable it independently of whether the layer is present.

Alex

Quoted 22 lines · lukas.dibelka via Lists.Yoctoproject.Org

On Tue, Jul 2, 2024 at 11:01 AM, Alexander Kanavin wrote:

ested, so how package managers handle it when they see it (assuming it is written into packages) is undetermined. RRECOMMENDS is the better supported option.

Thanks Alex for the speed of light fast answer. I have already found solution leveraging BBFILES_DYNAMIC

in the bbappend I am adding the needed depencency as RDEPENDS.

With RRECOMMENDS we are failing on

when CI builds our layer only (layer alone kind of build)

Lukas

#4 lore raw

Well, you are absolutely right. We were passionate for RSUGGESTS so much that forgot one of the main yocto concepts -> distro features!

Thank you!

Lukas