Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
devops committed Nov 29, 2023
2 parents 31b502b + f708c08 commit abe5602
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion k-distribution/src/main/assembly/bin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<baseDirectory>k</baseDirectory>
<dependencySets>
<dependencySet>
<outputDirectory>/bin</outputDirectory>
<outputDirectory>/lib/kframework/bin</outputDirectory>
<includes>
<include>*:uexe:${native.os.classifier}:*</include>
</includes>
Expand Down
7 changes: 4 additions & 3 deletions k-distribution/src/main/scripts/lib/checkJava
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,18 @@ function setarch {
fi
}

NG="$(dirname "${BASH_SOURCE[0]}")/bin/ng"
KSERVER_SOCKET="${KSERVER_SOCKET:-$HOME/.kserver}"
KSERVER_INSTANCE="ng --nailgun-server local:$KSERVER_SOCKET/socket"
KSERVER_INSTANCE="$NG --nailgun-server local:$KSERVER_SOCKET/socket"
version=$($KSERVER_INSTANCE org.kframework.main.JavaVersion 2>&1)
if [ $? -eq 0 ]; then
setarch
JAVA="$KSERVER_INSTANCE"
else
version=$(ng org.kframework.main.JavaVersion 2>&1)
version=$($NG org.kframework.main.JavaVersion 2>&1)
if [ $? -eq 0 ]; then
setarch
JAVA=ng
JAVA=$NG
else
version=$("$_java" -version 2>&1)
setarch
Expand Down
2 changes: 1 addition & 1 deletion nix/k.nix
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ let
'';

preFixup = lib.optionalString (!stdenv.isDarwin) ''
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" "$out/bin-unwrapped/ng"
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" "$out/lib/kframework/bin/ng"
'';

passthru =
Expand Down

0 comments on commit abe5602

Please sign in to comment.