[COPY] --- T2-COPYRIGHT-BEGIN --- [COPY] t2/package/*/graalvm/graalvm.desc [COPY] Copyright (C) 2022 - 2026 The T2 SDE Project [COPY] SPDX-License-Identifier: GPL-2.0 [COPY] --- T2-COPYRIGHT-END --- [I] A high-performance JDK distribution [T] GraalVM is a high-performance JDK distribution designed to accelerate [T] the execution of applications written in Java and other JVM languages along [T] with support for JavaScript, Ruby, Python, and a number of other popular [T] languages. [U] https://www.graalvm.org/ [A] Oracle Corporation [M] Tomas Glozar [C] extra/emulator [L] GPL [V] 25.2.4 [D] 264e93e99f992faacba2717817fc2e765959cdb9b17885856ceb9eeb vm-25.2.4.tar.gz https://github.com/oracle/graal/archive/ [D] 54e92ca9c3113cd8bd69ee47267ae1a95ba53c422ad8047264ca491c mx-7.79.1.tar.gz !https://github.com/graalvm/mx/archive/7.79.1.tar.gz runmake=0 rungpepinstall=0 extract() { tar -xf $(match_source_file -p mx-.*tar.*) eval var_append PATH ':' "$PWD/mx-*" export PATH } hook_add prepatch 3 extract link_lib() { ln -sf /usr/lib64/gcc/x86_64-t2-linux-gnu/15.2.0/crtendS.o /usr/lib64/ ln -sf /usr/lib64/gcc/x86_64-t2-linux-gnu/15.2.0/crtbeginS.o /usr/lib64/ mkdir shared cp /usr/lib64/gcc/x86_64-t2-linux-gnu/15.2.0/libgcc.a shared cd shared ar -x libgcc.a gcc -shared *.o -o libgcc.so cp libgcc.so /usr/lib64/ cd .. } build() { # Create dummy Git repository # Note: this is needed for mx git init touch .dummy git add .dummy git config user.name "T2 Project" git config user.email "t2@t2-project.org" git commit -m "$pkg $ver" # Build GraalVM # Note: Sulong and Esperesso not enabled, because Sulong build fails export JAVA_HOME=$root/opt/java cd vm/ mx build cd .. } hook_add premake 4 link_lib hook_add premake 5 build install() { # Install GraalVM mkdir -p $root/opt/java/graalvm cp -Rv vm/latest_graalvm_home/* $root/opt/java/graalvm/ # Install mx # Note: mx is needed to build additional GraalVM componenets mkdir -p $root/opt/java/graalvm/mx cp -Rv mx-*/* $root/opt/java/graalvm/mx/ } hook_add postmake 6 install