]> code.ossystems Code Review - openembedded-core.git/commit
glibc: move ld.so.conf back to main package
authorRasmus Villemoes <rasmus.villemoes@prevas.dk>
Tue, 2 Jun 2020 12:17:22 +0000 (14:17 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 4 Jun 2020 12:27:34 +0000 (13:27 +0100)
commita4cdda012f613d8d80203b9f5fc737d8511d16ce
tree9907a82981156f83656e8e5070cee7df0ace07e5
parent56e211d0f3c6cb84f5982e5de00faeeed69c1912
glibc: move ld.so.conf back to main package

There are cases where one doesn't want ldconfig on target (e.g. for
read-only root filesystems, it's rather pointless), yet one still
needs ld.so.conf to be present at image build time:

When some recipe installs libraries to a non-standard location, and
dutifully drops in a file in /etc/ld.so.conf.d/foo.conf, we need the
ld.so.conf containing the

  include /etc/ld.so.conf.d/*.conf

stanza to get those other locations picked up.

So change the packaging logic so that there's always an ld.so.conf
present when the build-time ldconfig runs.

The ld.so.conf and ld.so.conf.d/*.conf files don't take up much
room (at least not compared to the 700K binary ldconfig), and they
might be needed in case ldconfig is installable, so leave them
alone.

In case of a read-only rootfs, one could add some logic to remove them
if one really wants to shave those few dozens of bytes off.

While here, fix typos in the bb.note (add spaces) so one can just
copy-paste the line from the log-file and redo the command.

Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/rootfs.py
meta/recipes-core/glibc/glibc-package.inc