diff options
author | Ross Burton <ross.burton@arm.com> | 2024-11-19 12:56:07 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-11-19 21:40:09 +0000 |
commit | 482d25265e48019bb2a63e70044ee6f97db8055f (patch) | |
tree | 9d64a6bfa159820ff5d753a0cd3c6b8ac4c44ac8 /scripts/lib/wic/plugins/source/isoimage-isohybrid.py | |
parent | d1d8f0af6ef2a9348ae60cf6087977ca7ee3df64 (diff) | |
download | poky-master-next.tar.gz |
systemd: extract dependencies from .note.dlopen ELF segmentsmaster-next
First, this is likely not the final implementation, but a RFC and
prototype.
Some binaries don't dynamically link to libraries, but instead at runtime
dlopen() them. This means extra work for distributions as the dependencies
are not detected automatically, so libraries may be missing.
systemd is one such project which does this, and in an attempt to solve
the packaging problem it also embeds the names of the libraries that can
potentially be opened at runtime into ELF notes. These can be read to
generate package dependencies. For example:
packages/cortexa57-poky-linux/systemd/libsystemd-shared: RRECOMMENDS: added "libkmod (['>= 33']) libzstd (['>= 1.5.6'])"
packages/cortexa57-poky-linux/systemd/libsystemd: RRECOMMENDS: added "libzstd (['>= 1.5.6'])"
I expect this code to be changed before merging. Whilst systemd is the
main user of his approach right now, I expect to see it used in more
places in the future so there's a reasonably good argument to merge it
into the core shlibs code. Also it currently manually extracts and
parses the data, whereas maybe we should incorporate pyelftools into
meta/lib/oe and use that to parse ELF files across all of OE.
This also means we can remove the explicit dependency on libkmod in udev,
which now comes in via libsystemd-shared.
(From OE-Core rev: e04928b4b5da5a5840be4428dbd8e76564077774)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/wic/plugins/source/isoimage-isohybrid.py')
0 files changed, 0 insertions, 0 deletions