git » java-common.git » commit 83cc0ea

fix jvm being appended to PATH more than once

author Frederik Schwan
2023-01-18 17:34:12 UTC
committer Frederik Schwan
2023-01-18 17:34:12 UTC
parent 486e94ccaf79ccc2ccb8dda5f3b97ef624a40bfb

fix jvm being appended to PATH more than once

fixes FS#66339

PKGBUILD +3 -3
profile_jre.csh +2 -1
profile_jre.sh +2 -1

diff --git a/PKGBUILD b/PKGBUILD
index 6769701..c0d8e3f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@
 pkgbase=java-common
 pkgname=('java-runtime-common' 'java-environment-common')
 pkgver=3
-pkgrel=3
+pkgrel=4
 pkgdesc='Common files for Java Runtime Environments'
 url='https://www.archlinux.org/packages/extra/any/java-common/'
 arch=('any')
@@ -17,8 +17,8 @@ source=(profile_jre.csh
         bin_archlinux-java
         test_archlinux-java
         https://github.com/kward/shunit2/archive/v${_shunitver}/shunit2-${_shunitver}.tar.gz)
-sha256sums=('9d25638cafc2fabd1ba6f2f26aa01233eccf3d31db003d956b571f0ab655dd23'
-            '519e9881a2a9f4fc3d581ea0ef0da594eedbfdfcf734f9fdc0bb595e8ac77e4c'
+sha256sums=('f11ac56c635e545e73db994b905b646c15ccba6781411d79878c4edd7c77ccd9'
+            'f11ac56c635e545e73db994b905b646c15ccba6781411d79878c4edd7c77ccd9'
             '5101f9d3d42cd545843a537826451c1b2e0bf2b16aba4e36ac797d9ace16dc63'
             'f4c3fc55568fbbd298c1bf617bdd7f45db600b47c9991b072e409876e8cdd341'
             '41a103aa984bfdeea3fec426edb0b3dda19153a5ce448d4b4bbe52a85c4d7fee')
diff --git a/profile_jre.csh b/profile_jre.csh
index a224d89..6734f3d 100644
--- a/profile_jre.csh
+++ b/profile_jre.csh
@@ -1,3 +1,4 @@
 # Do not change this unless you want to completely by-pass Arch Linux' way
 # of handling Java versions and vendors. Instead, please use script `archlinux-java`
-setenv PATH "${PATH}:/usr/lib/jvm/default/bin"
+append_path '/usr/lib/jvm/default/bin'
+export PATH
diff --git a/profile_jre.sh b/profile_jre.sh
index f5b2585..6734f3d 100644
--- a/profile_jre.sh
+++ b/profile_jre.sh
@@ -1,3 +1,4 @@
 # Do not change this unless you want to completely by-pass Arch Linux' way
 # of handling Java versions and vendors. Instead, please use script `archlinux-java`
-export PATH=${PATH}:/usr/lib/jvm/default/bin
+append_path '/usr/lib/jvm/default/bin'
+export PATH