[PATCH] elf: ldconfig should skip temporary files created by package managers
Florian Weimer
fweimer@redhat.com
Wed Nov 15 06:39:11 GMT 2023
* Florian Weimer:
> * DJ Delorie:
>
>> Florian Weimer <fweimer@redhat.com> writes:
>>> + /* Skip temporary files created by RPM. */
>>> + if (memchr (name, len, ';') != NULL)
>>> + return true;
>>
>> Should be memchr (name, ';', len)
>>
>> This caused ldconfig to miss many symlinks during my latest rawhide
>> update, making the system temporarily unbootable...
>
> Yeah, sorry, patch is here:
>
> [PATCH v2] ldconfig: Fixes for skipping temporary files.
> <https://inbox.sourceware.org/libc-alpha/87v8a83f9t.fsf@oldenburg.str.redhat.com/>
>
> It's already fixed in the Fedora rawhide sources, but the build with the
> fix applied triggered another qsort regression, so it's not been pushed
> to the repositories yet.
And: Any idea why this even matters? Why can't we find those shared
objects in /usr/lib64 directly, without the cache?
Thanks,
Florian
More information about the Libc-alpha
mailing list