Skip to contentSkip to conversation

Package dependencies not generated?

DISCUSSION Michael Opdenacker 3 participants 7 messages Nov 2, 2023 – Nov 3, 2023 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

Greetings,

I compiled rsyslog from meta-oe:
bitbake rsyslog

I set up a binary feed ("bitbake package-index") and a webserver to serve it, and when I try to install the rsyslog package, I get:

$ opkg install rsyslog
 * Solver encountered 1 problem(s):
 * Problem 1/1:
 *   - conflicting requests
 *   - nothing provides libestr0 >= 0.1.11 needed by rsyslog-8.2306.0-r0.core2-64

Indeed, no "*libestr*" package(s) got generated. Why not?

I checked RDEPENDS:rsyslog and it contains "logrotate" for which a package was indeed generated. I thought that shared libraries dependencies were automatically detected and added to runtime dependencies. That's confirmed by https://docs.yoctoproject.org/dev/overview-manual/concepts.html#automatically-added-runtime-dependencies . Why didn't it happen?

I checked that libestr got compiled (it's part of the DEPENDS for rsyslog), but I can't find any package for it, even in the working area.

It sounds like a very basic misconception between my keyboard and my chair. What did I get wrong?

Thanks in advance for your insights.

Cheers
Michael.

Signature · 3 lines
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#1 lore raw

Greetings,

Quoted 14 lines · Michael Opdenacker

Greetings,

I compiled rsyslog from meta-oe:
bitbake rsyslog

I set up a binary feed ("bitbake package-index") and a webserver to serve it, and when I try to install the rsyslog package, I get:

$ opkg install rsyslog
 * Solver encountered 1 problem(s):
 * Problem 1/1:
 *   - conflicting requests
 *   - nothing provides libestr0 >= 0.1.11 needed by rsyslog-8.2306.0-r0.core2-64

Indeed, no "*libestr*" package(s) got generated. Why not?

Quoted 7 lines

I checked RDEPENDS:rsyslog and it contains "logrotate" for which a package was indeed generated. I thought that shared libraries dependencies were automatically detected and added to runtime dependencies. That's confirmed by https://docs.yoctoproject.org/dev/overview-manual/concepts.html#automatically-added-runtime-dependencies . Why didn't it happen?

I checked that libestr got compiled (it's part of the DEPENDS for rsyslog), but I can't find any package for it, even in the working area.

It sounds like a very basic misconception between my keyboard and my chair. What did I get wrong?

Thanks in advance for your insights.

A simpler way to ask this...

When I build rsyslogd ("bitbake rsyslog"), an ipk package is built for this software, but not for its shared library dependencies, for example for libestr. How to explain this?

Thanks in advance
Cheers
Michael.

Signature · 3 lines
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#2 lore raw

Michael Opdenacker via lists.yoctoproject.org <michael.opdenacker= [email protected]> escreveu no dia sexta, 3/11/2023 à(s) 15:05:

Quoted 33 lines

Greetings,

Quoted 14 lines · Michael Opdenacker

Greetings,

I compiled rsyslog from meta-oe:
bitbake rsyslog

I set up a binary feed ("bitbake package-index") and a webserver to serve it, and when I try to install the rsyslog package, I get:

$ opkg install rsyslog
 * Solver encountered 1 problem(s):
 * Problem 1/1:
 *   - conflicting requests
 *   - nothing provides libestr0 >= 0.1.11 needed by
rsyslog-8.2306.0-r0.core2-64
Quoted 7 lines

Indeed, no "*libestr*" package(s) got generated. Why not?

I checked RDEPENDS:rsyslog and it contains "logrotate" for which a package was indeed generated. I thought that shared libraries dependencies were automatically detected and added to runtime dependencies. That's confirmed by

https://docs.yoctoproject.org/dev/overview-manual/concepts.html#automatically-added-runtime-dependencies

Quoted 8 lines

. Why didn't it happen?

I checked that libestr got compiled (it's part of the DEPENDS for rsyslog), but I can't find any package for it, even in the working area.

It sounds like a very basic misconception between my keyboard and my chair. What did I get wrong?

Quoted 9 lines
Quoted 1 line

Thanks in advance for your insights.

A simpler way to ask this...

When I build rsyslogd ("bitbake rsyslog"), an ipk package is built for this software, but not for its shared library dependencies, for example for libestr.
How to explain this?

Maybe because rsyslog uses dlopen to load the libestr at runtime, if this is the case the recipe should explicitly add a runtime dependency for them.

+RDEPENDS:${PN} += "logrotate libestr"

I'm just thinking out loud and I have no idea if this is the case.

Jose

Quoted 21 lines

Thanks in advance
Cheers
Michael.

--
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

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

Signature · 3 lines
Best regards,

José Quaresma
#3 lore raw

Hi Jose,

Thanks for your help!

Quoted 11 lines · Jose Quaresma

Maybe because rsyslog uses dlopen to load the libestr at runtime, if this is the case the recipe should explicitly add a runtime dependency for them.

+RDEPENDS:${PN} += "logrotate libestr"

I'm just thinking out loud and I have no idea if this is the case.

Jose

I don't think that's the case, because "libestr0" is one of the dependencies of the "rsyslog" package. So, it was automatically detected, but no package for generated for it. That's what I don't understand. Thanks again
Michael.

Signature · 3 lines
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#4 lore raw
In reply to Michael Opdenacker
Quoted 9 lines · Michael Opdenacker via lists.yoctoproject.org

Greetings,

I compiled rsyslog from meta-oe:
bitbake rsyslog

I set up a binary feed ("bitbake package-index") and a webserver to serve it, and when I try to install the rsyslog package, I get:

$ opkg install rsyslog

I see you ran bitbake package-index so thats good. maybe you did but let me ask did you run opkg update before doing opkg install ?

Quoted 41 lines

* Solver encountered 1 problem(s):
* Problem 1/1:
* - conflicting requests
* - nothing provides libestr0 >= 0.1.11 needed by
rsyslog-8.2306.0-r0.core2-64

Indeed, no "*libestr*" package(s) got generated. Why not?

I checked RDEPENDS:rsyslog and it contains "logrotate" for which a package was indeed generated. I thought that shared libraries dependencies were automatically detected and added to runtime dependencies. That's confirmed by
https://docs.yoctoproject.org/dev/overview-manual/concepts.html#automatically-added-runtime-dependencies
. Why didn't it happen?

I checked that libestr got compiled (it's part of the DEPENDS for rsyslog), but I can't find any package for it, even in the working area.

It sounds like a very basic misconception between my keyboard and my chair. What did I get wrong?

Thanks in advance for your insights.

Cheers
Michael.

--
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
You automatically follow any topics you start or reply to. View/Reply Online (#61583): https://lists.yoctoproject.org/g/yocto/message/61583
Mute This Topic: https://lists.yoctoproject.org/mt/102348862/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#5 lore raw

Hi Khem,

Thank you for helping!

Quoted 5 lines · Khem Raj
Quoted 2 lines · Michael Opdenacker via lists.yoctoproject.org

Greetings,

Quoted 8 lines
Quoted 6 lines

I compiled rsyslog from meta-oe:
bitbake rsyslog

I set up a binary feed ("bitbake package-index") and a webserver to serve it, and when I try to install the rsyslog package, I get:

$ opkg install rsyslog

I see you ran bitbake package-index so thats good. maybe you did but let me ask did you run opkg update before doing opkg install ?

Yes, I did. And anyway I checked in tmp/deploy/ipk that no ipk package for libestr got generated. Weird.

Cheers
Michael.

Signature · 3 lines
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#7 lore raw
In reply to a message not in the archive
Quoted 16 lines · Michael Opdenacker via lists.yoctoproject.org

Hi Khem,

Thank you for helping!

Quoted 11 lines · Khem Raj
Quoted 8 lines · Michael Opdenacker via lists.yoctoproject.org

Greetings,

I compiled rsyslog from meta-oe:
bitbake rsyslog

I set up a binary feed ("bitbake package-index") and a webserver to serve it, and when I try to install the rsyslog package, I get:

$ opkg install rsyslog
Quoted 6 lines
Quoted 2 lines

I see you ran bitbake package-index so thats good. maybe you did but let me ask did you run opkg update before doing opkg install ?

Yes, I did. And anyway I checked in tmp/deploy/ipk that no ipk package for libestr got generated. Weird.

I took another example, this time "opus-tools" from from meta-multimedia:

$ bitbake opus-tools
$ bitbake package-index

And on the target:

root@qemux86-64:~# opkg update
Downloading http://10.0.2.2:8000/all/Packages.gz.
Updated source 'uri-all-0'.
Downloading http://10.0.2.2:8000/core2-64/Packages.gz.
Updated source 'uri-core2-64-0'.
Downloading http://10.0.2.2:8000/qemux86_64/Packages.gz.
Updated source 'uri-qemux86_64-0'.
root@qemux86-64:~# opkg install opus-tools
 * Solver encountered 1 problem(s):
 * Problem 1/1:
 *   - conflicting requests
 *   - nothing provides libopus0 >= 1.4 needed by opus-tools-0.2-r0.core2-64
 *
 * Solution 1:
 *   - do not ask to install a package providing opus-tools

So, that's the exact same issue. I am missing a bitbake target or variable for building the packages for dependencies as well?

I also ran "bitbake world" on OE-core, and got no problem to install a package and its dependencies got pulled automatically too. It seems the issue happens when I build a package alone.

Cheers
Michael.

Signature · 3 lines
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com