mirror of
https://git.yoctoproject.org/poky
synced 2026-03-19 13:49:41 +01:00
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. (From OE-Core rev: ad4ff7c18cc6a5c15a0525149dbe2dbd5ae39129) Signed-off-by: Damian Wrobel <dwrobel@ertelnet.rybnik.pl> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
43345b55b7
commit
061eb6f501
@@ -297,9 +297,9 @@ class Rootfs(object, metaclass=ABCMeta):
|
||||
|
||||
def _run_ldconfig(self):
|
||||
if self.d.getVar('LDCONFIGDEPEND'):
|
||||
bb.note("Executing: ldconfig -r " + self.image_rootfs + " -c new -v")
|
||||
bb.note("Executing: ldconfig -r " + self.image_rootfs + " -c new -v -X")
|
||||
self._exec_shell_cmd(['ldconfig', '-r', self.image_rootfs, '-c',
|
||||
'new', '-v'])
|
||||
'new', '-v', '-X'])
|
||||
|
||||
def _check_for_kernel_modules(self, modules_dir):
|
||||
for root, dirs, files in os.walk(modules_dir, topdown=True):
|
||||
|
||||
Reference in New Issue
Block a user