[PATCH] Freetype Directory Bug On zLinux

Adam Farley8 adam.farley at uk.ibm.com
Fri Jan 12 14:48:47 UTC 2018

On 01/12/2018 03:29 PM, Adam Farley8 wrote:
>> On zLinux, freetype's .so file is typically installed in
>> /usr/lib/s390x-linux-gnu, however the generated configure script 
>> look for it there.
>Odd. Normally I would expect it to look in the locations that are
>set through /etc/ld.so.conf{,.d}

>From the configure output, it appears to look for it in x86_64-linux-gnu
so I don't know what to tell you.

>> This causes configure to fail. I know you can avoid that with options, 
>> I think a fix would be better.
>> If we add this code to lib-freetype.m4 (line 365) and re-run 
>> this fixes the problem.
>> if test "x$FOUND_FREETYPE" != xyes; then
>>     if test "x$OPENJDK_TARGET_CPU_ARCH" = xs390; then
>> [$FREETYPE_BASE_DIR/lib/s390x-linux-gnu], [well-known location])
>>     fi
>> fi
>> Thoughts?
>Seems like a workaround for an actual bug to me. Also, on Debian s390x,
>the directory for shared libraries is also /usr/lib/s390x-linux-gnu:
>glaubitz at zelenka:~$ ls -dl /usr/lib/s390x-linux-gnu
>drwxr-xr-x 29 root root 28672 Dec 18 08:20 /usr/lib/s390x-linux-gnu
>glaubitz at zelenka:~$
>And I'm quite sure we don't have a quirk in the Debian openjdk package
>in the form of a patch. So, I'm not sure why the configure doesn't work
>in your case.

When you run configure, do you use --disable-warnings-as-errors?
Like here: https://github.com/linux-on-ibm-z/docs/wiki/Building-OpenJDK
If you use that, the error goes away, and it doesn't seem to adversely 
affect the build.

>  .''`.  John Paul Adrian Glaubitz
>: :' :  Debian Developer - glaubitz at debian.org
>`. `'   Freie Universitaet Berlin - glaubitz at physik.fu-berlin.de
>   `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913

Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number 
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU

More information about the build-dev mailing list