[8u] RFR: Change os.arch property to arm
Anton Kozlov
akozlov at azul.com
Thu Dec 22 12:18:33 UTC 2016
Hi, Alex!
Wow, seems like I had some issues with local hg. Now I can see that chage, agree, it's there.
Thanks!
Please consider this RFR invalid.
Thanks,
Anton
On 12/22/2016 02:37 PM, Alex Kashchenko wrote:
> Hi Anton,
>
> On 12/21/2016 01:22 PM, Anton Kozlov wrote:
>> Hi!
>>
>> Some software could use os.arch property and expect there 'arm' value on arm
>> system. An example is jdbc-sqltie (https://github.com/xerial/sqlite-jdbc), which
>> uses the property to get path to own native libraries. For now it fails to
>> initialize, since it's doesn't know that aarch32 is the same as arm in this
>> context.
>>
>> Using 'arm' value for 'os.arch' system property fixes issue with jdbc-sqlite.
>
> I believe that such patch (just without os check) is already in - http://hg.openjdk.java.net/aarch32-port/jdk8u/rev/655c0aad16db , problem was spotted before with Eclipse/SWT native libs.
>
>>
>> Thanks,
>> Anton
>>
>> diff --git a/common/autoconf/platform.m4 b/common/autoconf/platform.m4
>> --- a/common/autoconf/platform.m4
>> +++ b/common/autoconf/platform.m4
>> @@ -320,6 +320,9 @@
>> elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
>> # On all platforms except macosx, we replace x86_64 with amd64.
>> OPENJDK_TARGET_CPU_OSARCH="amd64"
>> + elif test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xaarch32; then
>> + # On linux only, we replace aarch32 with arm.
>> + OPENJDK_TARGET_CPU_OSARCH="arm"
>> fi
>> AC_SUBST(OPENJDK_TARGET_CPU_OSARCH)
>>
>>
>
>
More information about the aarch32-port-dev
mailing list