From f84a64c34cd7982da2dfe022f770ceee43a36e1e Mon Sep 17 00:00:00 2001 From: Martin Kampas Date: Wed, 3 Jul 2019 15:40:28 +0200 Subject: [PATCH] [glibc] Use an absolute path in ld.so.conf. Contributes to JB#46501 sb2 executes ldconfig with -r, in which case it would complain: "need absolute file name for configuration file when using -r" --- glibc.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/glibc.spec b/glibc.spec index bb2e58a..9e403cc 100644 --- a/glibc.spec +++ b/glibc.spec @@ -168,6 +168,7 @@ libraries, as well as national language (locale) support. # We need to run ldconfig manually because ldconfig cannot handle the # relative include path in the /etc/ld.so.conf file we gneerate. +# Note: Currently an absolute path is in use %undefine __brp_ldconfig ###################################################################### @@ -433,7 +434,7 @@ install -m 644 %{glibcsrcdir}/nscd/nscd.service %{glibc_sysroot}/lib/systemd/sys %endif # Include ld.so.conf -echo 'include ld.so.conf.d/*.conf' > %{glibc_sysroot}/etc/ld.so.conf +echo 'include /etc/ld.so.conf.d/*.conf' > %{glibc_sysroot}/etc/ld.so.conf echo -n '' > %{glibc_sysroot}/etc/ld.so.cache chmod 644 %{glibc_sysroot}/etc/ld.so.conf mkdir -p %{glibc_sysroot}/etc/ld.so.conf.d