Hi Joel,
On 4/16/24 16:50, Joel GUITTET via lists.yoctoproject.org wrote:
You don't often get email from
[email protected]. Learn why this is
important<https://aka.ms/LearnAboutSenderIdentification>
Hello,
I have a target with multilib aarch64+arm.
I'm building a library "foo" that DEPENDS of library "bar". I need the library "foo" to
be installed in the rootfs, but not the library "bar" (for specific reason in my project).
It'd be nice to know what those specific reasons are, maybe they are not
reasonable in the context of building with Yocto :) (and we may be able
to suggest other options, like rather fixing the software build system
instead of hacking deep into Yocto if there's no other option).
The recipe of library "foo" DEPENDS of "bar" but no RDEPENDS is used.
arm arch: I observe that the library "foo" is installed in "/usr/lib", and library
"bar" is not installed, as expected.
aarch64 arch: I observe that the library "foo" is installed in "/usr/lib64", and library
"bar" is installed in "/usr/lib64" as well, which is not what I want !!
It seems there is like an implicit RDEPENDS there, but only for the aarch64
architecture.
Packages providing SONAME entries in a shared library/binary from
another package are always part of RDEPENDS so I would start there.
https://docs.yoctoproject.org/overview-manual/concepts.html#automatically-added-runtime-dependencies
You can check by using readelf or objdump on your libraries/binaries in
foo packages. I **think** bitbake also tells you about this implicit
dependency and the reason for it if you increase the debug level (-D -DD
or even -DDD?).
It could very well be that your SW is built differently for aarch64 than
for arm and it actually links against libbar. THen you would need to fix
your piece of SW to not link against it.
Cheers,
Quentin
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#62939): https://lists.yoctoproject.org/g/yocto/message/62939
Mute This Topic: https://lists.yoctoproject.org/mt/105558513/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-