On 30/01/18 12:06, Florian Weimer wrote:
On 01/30/2018 01:01 PM, Vít Ondruch wrote:


Dne 30.1.2018 v 10:01 Florian Weimer napsal(a):
On 01/30/2018 09:57 AM, Igor Gnatenko wrote:
brp-ldconfig simply calls `/sbin/ldconfig -N -r "$RPM_BUILD_ROOT"`
and there is
no /etc/ld.so.conf under $RPM_BUILD_ROOT when you build... In theory
we could
supply one (empty), but I would ask Florian what would be the best to
do.

But why does it print /etc/ld.so.conf, and not the path in the
buildroot?  That concerns me.

I would be concerned even if it issued warning about /etc/ld.so.conf in
buildroot ...

Sure, it would be nice to avoid the warning, and I will work on something for glibc in rawhide to support this.  But I would also like to understand if ldconfig is actually using the wrong path.

So you're expecting to see $RPM_BUILD_ROOT/etc/ld.so.conf as the reported path right?

That doesn't seem to be how the -r option to ldconfig works though
because it chroots so as far as it's concerned the relative path is
the path it is accessing:

% sudo strace ldconfig -N -r /tmp
...
chroot("/tmp")                          = 0
chdir("/")                              = 0
openat(AT_FDCWD, "/etc/ld.so.conf", O_RDONLY) = -1 ENOENT (No such file or directory)
...
ldconfig: Warning: ignoring configuration file that cannot be opened: /etc/ld.so.conf: No such file or directory

Tom

--
Tom Hughes (t...@compton.nu)
http://compton.nu/
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org

Reply via email to