Skip to content

linux libfreetype dependencies broken in jdk 8-20 #1318

Description

@lobachpavel

Hi

After this commit to temurin-build newer JDK 8-20 deb package builds have broken libfreetype dependency in libfontmanager.so

Example for package temurin-17-jdk 17.0.18.0.0+8-0 (installed in Ubuntu 22.04):

# ldd /usr/lib/jvm/temurin-17-jdk-amd64/lib/libfontmanager.so
	libfreetype.so => not found
	libawt.so => /usr/lib/jvm/temurin-17-jdk-amd64/lib/libawt.so (0x00007fffff52e000)
	libjava.so => /usr/lib/jvm/temurin-17-jdk-amd64/lib/libjava.so (0x00007fffff504000)
	libjvm.so => /usr/lib/jvm/temurin-17-jdk-amd64/lib/server/libjvm.so (0x00007ffffe1b2000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007ffffe0cb000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007ffffdea2000)
	/lib64/ld-linux-x86-64.so.2 (0x00007ffffffc4000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007ffffde9b000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007ffffde96000)
	librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007ffffde91000)

the reason is that deb rules for versions < 21 contain command to exclude the bundled libfreetype.so (see example for jdk17), but above commit to temurin-build states that All build-configs should use default (bundeld) free type, so we expect libfreetype.so to be included in all jdk deb packages, but this is true only for jdk versions 21+.

In the past the very same problem was fixed for jdk 21 in #812
Please make similar changes for jdk 8-20

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions