Skip to content

Remove symbolic links from provided archives #1197

@veita

Description

@veita

Is your feature request related to a problem? Please describe.

Various archives provided for download contain symbolic links.

E.g. the linux archives contain symlinks like

ADDITIONAL_LICENSE_INFO -> ../java.base/ADDITIONAL_LICENSE_INFO
ASSEMBLY_EXCEPTION -> ../java.base/ASSEMBLY_EXCEPTION
LICENSE -> ../java.base/LICENSE

in the subdirectories of the legal directory.

Many tools, especially tools that run on the Java Platform, cannot handle such symlinks.
E.g. Gradle and Ant's built-in TAR support create empty files intead of symlinks when
extracting Adoptium JDK from the provided TAR archives.

Currently we work around the problem by

  • downloading the archives manually,
  • extracting the files using the native tar command,
  • replacing links with regular files,
  • creating a new archive,
  • signing it with our own signing key,
  • and deploying it for download by the build system (Gradle).

This process is cumbersome and could be avoided if the archives would not contain symlinks.

Describe the solution you'd like

Replace the symlinks with files that contain a textual reference to the files in
../java.base/, exactly as it is done with the Adoptium JDK Windows ZIP archives.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions