This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: PATCH: ldconfig.c considers ld.so.conf entries before /lib,/usr/lib


Dirk Eddelbuettel <edd@debian.org> writes:

> ldconfig -v [from Debian's libc6_2.2.4-1 package] reads /lib and /usr/lib
> before it considers the directories in /etc/ld.so.conf.  This is in conflict
> with ld.so(8) as well as ldconfig(8).

It's completely irrelevant what the man pages say.  If they are not in
line with the implementation it's the implementation setting the
standard.

The current way ldconfig works is how it worked ever since.  There is
no reason to change it since this will have negative effects and might
suddenly change the behavior of people's systems.

If you depend on the order ldconfig searches directories you are doing
something wrong.  This is no tool to resolve conflicts.  There never
should be any conflicts since it's not possible to overwrite whatever
decision ld.so makes.  Solve it explicitly in the program (or via
shell script wrappers setting LD_LIBRARY_PATH or using LD_PRELOAD).

-- 
---------------.                          ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]