This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH v3] elf: Add tst-ldconfig-bad-aux-cache test [BZ #18093]
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Carlos O'Donell <codonell at redhat dot com>
- Cc: Alexandra Hájková <alexandra dot khirnova at gmail dot com>, <libc-alpha at sourceware dot org>, <mcermak at redhat dot com>, Alexandra Hájková <ahajkova at redhat dot com>
- Date: Mon, 13 May 2019 17:01:30 +0000
- Subject: Re: [PATCH v3] elf: Add tst-ldconfig-bad-aux-cache test [BZ #18093]
- References: <20190513133417.22988-1-ahajkova@redhat.com> <280094ee-14b6-3834-6507-1b56a9fac2da@redhat.com>
On Mon, 13 May 2019, Carlos O'Donell wrote:
> sysdeps/generic/ldconfig.h:
>
> 48 /* Name of auxiliary cache. */
> 49 #define _PATH_LDCONFIG_AUX_CACHE "/var/cache/ldconfig/aux-cache"
> 50
>
> However, we do allow users to override with --localstatedir and provide
> an alternative path instead of the default /var. Nobody has probably
> tried to do this or they just worked around it.
>
> So the build of glibc itself will appear to ignore --localstatedir
> even when specified and read the aux-cache from a fixed location.
There are lots of other places with such hardcoded paths. See e.g. bug
20138 asking for --sysconfdir to be respected. Note that some such paths
are in installed headers, including paths.h; should those paths in
installed headers also depend on configure options?
--
Joseph S. Myers
joseph@codesourcery.com