]> code.ossystems Code Review - openembedded-core.git/commit
rootfs: do not let ldconfig to create symlinks
authorDamian Wrobel <dwrobel@ertelnet.rybnik.pl>
Thu, 2 Jul 2020 09:23:04 +0000 (11:23 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 3 Jul 2020 10:37:20 +0000 (11:37 +0100)
commitad4ff7c18cc6a5c15a0525149dbe2dbd5ae39129
treeaa7f17ad5d1278b521671384ebb30744a6a70e33
parent5509c7247fb44c8fb98298f2b309cc1a87b07f14
rootfs: do not let ldconfig to create symlinks

Adds -X option to ldconfig to not create symlinks
as part of the ldconfig cache creation process.

It is much better to keep all needed symlinks as part of
of the package then let ldconfig do the job.

In the case symlink was created by ldconfig and later on the
package got removed the dangling link will remain on the
filesystem. Not to mention that such a symlink is orphaned
(e.g. rpm -qf <file-path> will not show the package the symlink
is part of).

It also align the behaviour with libc-musl where the ldconfig
is not invoked by default.

Signed-off-by: Damian Wrobel <dwrobel@ertelnet.rybnik.pl>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/rootfs.py