From 1fa1338084caf2d063bf8aae45a9b3c3a9f7555b Mon Sep 17 00:00:00 2001 From: steadfasterX Date: Wed, 24 Aug 2022 10:29:11 +0000 Subject: [PATCH] aur: fix jlink error during build ~~~ Task :jlink FAILED Error: Hash of java.xml (4b805321762bc6762fabcde937d39fbc32cbfb19ab44bcf5cd6dd69a83960a9e) differs to expected hash (91ebb0c25713aacebb2071a372e7a358ef31f69f265094464d3e2e81dcce553a) recorded in java.base FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':jlink'. > Process 'command '/usr/lib/jvm/java-11-openjdk-amd64/bin/jlink'' finished with non-zero exit value 1 ~~~ --- pkg/arch/PKGBUILD | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/arch/PKGBUILD b/pkg/arch/PKGBUILD index 33211426..24f9ea9b 100644 --- a/pkg/arch/PKGBUILD +++ b/pkg/arch/PKGBUILD @@ -24,7 +24,7 @@ MAN8PAGE=${pkgname}.8 build(){ cd "$pkgname-$pkgver" - export JAVA_HOME="/usr/lib/jvm/java-${_reqjava}-openjdk" + export JAVA_HOME="$(pwd)/buildSrc/linux/jdk-11.0.2/" [ ! -d $JAVA_HOME ] && echo "ERROR: $JAVA_HOME does not exist" && exit 3 ./gradlew dist } -- GitLab