RFR: 8269668: [aarch64] java.library.path not including /usr/lib64
Andrew Haley
aph at redhat.com
Fri Jul 2 08:12:12 UTC 2021
On 7/2/21 2:22 AM, David Holmes wrote:
> This fix simplifies the `if` condition to use a default 64-bit
> library path including default setting when `_LP64` is defined (os
> has 64-bitness). This should be safe IMHO and seems better than
> explicitly enumerating all 64 bit Linux architectures. An
> alternative patch would be:
I'm trying to think of ways this might break.
I'm not sure about "should be safe". I'm not an expert on Debian and
Ubuntu, but AFAIK /usr/lib is the installed system's default arch,
with multi-arch stuff like /usr/lib/i386-linux-gnu, etc. On such
systems I believe that /usr/lib64 is often symlinked to point to
/usr/lib, but it might not be: it wouldn't be completely insane to
have some other arrangement. It could be argued that if the Debians
want to violate the FHS it's on them to patch around it, but this
patch is a change of behaviour, so it may not be entirely safe for
back-porting.
--
Andrew Haley (he/him)
Java Platform Lead Engineer
Red Hat UK Ltd. <https://www.redhat.com>
https://keybase.io/andrewhaley
EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671
More information about the hotspot-runtime-dev
mailing list