Commit 2fff5574 authored by Elana Hashman's avatar Elana Hashman

Do not pin architecture in patch to run script

parent 3763c4e1
leiningen-clojure (2.8.1-6) UNRELEASED; urgency=medium
* Do not pin architecture in patch to bin/lein-pkg.
-- Elana Hashman <ehashman@debian.org> Sat, 14 Apr 2018 18:45:14 -0400
leiningen-clojure (2.8.1-5) unstable; urgency=medium
* Fix homepage.
......
......@@ -7,7 +7,7 @@ Subject: Make run script use Java 8
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/bin/lein-pkg b/bin/lein-pkg
index de113fc..6c7a23b 100644
index de113fc..da662da 100644
--- a/bin/lein-pkg
+++ b/bin/lein-pkg
@@ -27,7 +27,10 @@ export LEIN_HOME="${LEIN_HOME:-"$HOME/.lein"}"
......@@ -18,7 +18,7 @@ index de113fc..6c7a23b 100644
+
+# NOTE(Debian): Force Java 8 usage for performance and compatibility
+# See https://salsa.debian.org/clojure-team/leiningen-clojure/issues/1
+JAVA_CMD=${JAVA_CMD:-"/usr/lib/jvm/java-8-openjdk-amd64/bin/java"}
+JAVA_CMD=${JAVA_CMD:-"/usr/lib/jvm/java-8-openjdk-$(dpkg --print-architecture)/bin/java"}
for f in "/etc/leinrc" "$LEIN_HOME/leinrc" ".leinrc"; do
if [ -e "$f" ]; then
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment