[OE-core] [PATCH] glibc: Check /etc/ld.so.conf.d/*.conf by default

Tom Rini trini at konsulko.com
Fri Apr 20 17:55:23 UTC 2018


The expected modern behavior for dealing with adding ld.so.conf entries
is to add a file to /etc/ld.so.conf.d/.  In order to do this, ld.so.conf
needs to explicitly include that /etc/ld.so.conf.d/*.conf.  Make it so.

Cc: Khem Raj <raj.khem at gmail.com>
Signed-off-by: Tom Rini <trini at konsulko.com>
---
There's at least one example in meta-oe today that I suspect doesn't
work correctly today as we're missing this glob.  I'll also admit that
it's possible that we should create this file in do_install instead, in
the case where ldconfig is in DISTRO_FEATURES so that we use
${sysconfdir} rather than 'etc' directly.

My motivation here is to make it cleaner to deal with the nvidia drivers
as they drop stuff into /usr/lib/arm-linux-gnueabi/tegra and today
people have initscripts to whack /etc/ld.so.conf directly.
---
 meta/recipes-core/glibc/glibc/etc/ld.so.conf | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-core/glibc/glibc/etc/ld.so.conf b/meta/recipes-core/glibc/glibc/etc/ld.so.conf
index e69de29bb2d1..83327c01bf52 100644
--- a/meta/recipes-core/glibc/glibc/etc/ld.so.conf
+++ b/meta/recipes-core/glibc/glibc/etc/ld.so.conf
@@ -0,0 +1 @@
+include /etc/ld.so.conf.d/*.conf
-- 
2.7.4




More information about the Openembedded-core mailing list