This is the mail archive of the libc-alpha@sourceware.org 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]
Other format: [Raw text]

Re: [PATCH] locale: Make the file name of the locale archive configurable


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.


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