[PATCH] locale: Make the file name of the locale archive configurable
Carlos O'Donell
carlos@redhat.com
Tue Jun 4 18:06:00 GMT 2019
On 6/4/19 1:35 PM, Yann Droneaud wrote:
> Hi,
>
> Le mardi 04 juin 2019 à 15:40 +0200, Florian Weimer a écrit :
>> This improves support for parallel installation and upgrade scenarios
>> involving changes to the locale archive format or the data stored in
>> it.
>>
>
> This could hurt exchanging statically linked programs between Linux
> distributions: I think of this scenario where one program is built on
> Debian and it won't be able to find the locale archive on Fedora.
This is a completely unsupported scenario.
It broke recently when we added %OB/%Ob support.
This has never been supported and is actively discouraged.
The static binary must have exactly the same runtime as it was compiled
with for the execution of all APIs to work correctly.
You cannot use static linkage as a method for creating portable binaries
because it is not that.
> I'm not afraid of this kind of breakage when it comes to statically
> linked program (because of gconv, nss, and such), but it would require
> some warning in the documentation.
We can certainly add more warnings.
> Perhaps a fallback to the current default path could be implemented
> along this change ?
I don't want to see a fallback, it sends the wrong message.
If we want someone can work on an ABI or "version" markup which might
allow a static binary to know if the binary data on disk is in a
format that it might be able to load. That might be useful.
--
Cheers,
Carlos.
More information about the Libc-alpha
mailing list