if arch =rv64g default-java dh_link to openjdk*-riscv64

This commit is contained in:
fanxiaoqi 2024-03-14 10:29:08 +00:00
parent ff1d8d0f6c
commit 15d7e997b9
2 changed files with 11 additions and 1 deletions

6
debian/changelog vendored
View File

@ -1,3 +1,9 @@
java-common (0.72-ok4) yangtze; urgency=medium
* if arch =rv64g default-java dh_link to openjdk*-riscv64
-- root <fanxiaoqi@smart-core.cn> Thu, 14 Mar 2024 10:27:36 +0000
java-common (0.72-ok3) yangtze; urgency=medium
* Add support for rv64g.

6
debian/rules vendored
View File

@ -12,6 +12,10 @@ jhl_provides = java-runtime-headless, java2-runtime-headless, $(shell seq --form
jdk_provides = java-sdk, java2-sdk, $(shell seq --format java%.f-sdk --separator ', ' 5 $(java_default_version))
jdkhl_provides = java-sdk-headless, java2-sdk-headless, $(shell seq --format java%.f-sdk-headless --separator ', ' 5 $(java_default_version))
arch=$(DEB_HOST_ARCH)
ifeq ($(DEB_HOST_ARCH),rv64g)
arch=riscv64
endif
%:
dh $@
@ -20,7 +24,7 @@ override_dh_link:
dh_link
# Link /usr/lib/jvm/default-java to the default JRE
dh_link -pdefault-jre-headless usr/lib/jvm/java-1.$(java_default_version).0-openjdk-$(DEB_HOST_ARCH) usr/lib/jvm/default-java
dh_link -pdefault-jre-headless usr/lib/jvm/java-1.$(java_default_version).0-openjdk-$(arch) usr/lib/jvm/default-java
# Link to the JDK documentation
dh_link -pdefault-jdk-doc /usr/share/doc/openjdk-$(java_default_version)-doc/api usr/share/doc/default-jre-headless/api