Set $LEIN_HOME explicitly

lein should not attempt to use $HOME during bootstraping. $HOME might
not exist (e.g. schroot/pbuilder), or $HOME/.lein may contain
configuration that will break the build. Use a build-local $LEIN_HOME
instead.
parent 1809a9b0
......@@ -3,6 +3,8 @@
include /usr/share/javahelper/java-vars.mk
include /usr/share/dpkg/pkg-info.mk
export LEIN_HOME=$(CURDIR)/.lein
LEIN_BOOTSTRAP="debian/maven-repo/leiningen-core/leiningen-core/$(DEB_VERSION_UPSTREAM)/leiningen-core-$(DEB_VERSION_UPSTREAM).jar:debian/maven-repo/org/clojure/clojure/1.8.x/clojure-1.8.x.jar:debian/maven-repo/bultitude/bultitude/debian/bultitude-debian.jar:debian/maven-repo/org/flatland/classlojure/debian/classlojure-debian.jar:debian/maven-repo/robert/hooke/debian/hooke-debian.jar:debian/maven-repo/com/cemerick/pomegranate/debian/pomegranate-debian.jar:debian/maven-repo/org/apache/maven/maven-resolver-provider/3.x/maven-resolver-provider-3.x.jar:debian/maven-repo/org/apache/maven/maven-model/3.x/maven-model-3.x.jar:debian/maven-repo/org/apache/maven/maven-model-builder/3.x/maven-model-builder-3.x.jar:debian/maven-repo/org/codehaus/plexus/plexus-interpolation/debian/plexus-interpolation-debian.jar:debian/maven-repo/org/apache/maven/maven-artifact/3.x/maven-artifact-3.x.jar:debian/maven-repo/org/apache/maven/maven-builder-support/3.x/maven-builder-support-3.x.jar:debian/maven-repo/com/google/guava/guava/debian/guava-debian.jar:debian/maven-repo/org/apache/maven/maven-repository-metadata/3.x/maven-repository-metadata-3.x.jar:debian/maven-repo/org/apache/maven/resolver/maven-resolver-api/debian/maven-resolver-api-debian.jar:debian/maven-repo/org/apache/maven/resolver/maven-resolver-spi/debian/maven-resolver-spi-debian.jar:debian/maven-repo/org/apache/maven/resolver/maven-resolver-util/debian/maven-resolver-util-debian.jar:debian/maven-repo/org/apache/maven/resolver/maven-resolver-impl/debian/maven-resolver-impl-debian.jar:debian/maven-repo/org/codehaus/plexus/plexus-component-annotations/debian/plexus-component-annotations-debian.jar:debian/maven-repo/org/apache/commons/commons-lang3/debian/commons-lang3-debian.jar:debian/maven-repo/org/apache/maven/resolver/maven-resolver-transport-file/debian/maven-resolver-transport-file-debian.jar:debian/maven-repo/org/apache/maven/resolver/maven-resolver-transport-http/debian/maven-resolver-transport-http-debian.jar:debian/maven-repo/org/apache/maven/resolver/maven-resolver-transport-wagon/debian/maven-resolver-transport-wagon-debian.jar:debian/maven-repo/org/apache/maven/resolver/maven-resolver-connector-basic/debian/maven-resolver-connector-basic-debian.jar:debian/maven-repo/org/apache/maven/wagon/wagon-provider-api/debian/wagon-provider-api-debian.jar:debian/maven-repo/org/apache/httpcomponents/httpclient/debian/httpclient-debian.jar:debian/maven-repo/commons-logging/commons-logging/debian/commons-logging-debian.jar:debian/maven-repo/commons-codec/commons-codec/debian/commons-codec-debian.jar:debian/maven-repo/org/tcrawley/dynapath/debian/dynapath-debian.jar:debian/maven-repo/org/apache/maven/wagon/wagon-http/debian/wagon-http-debian.jar:debian/maven-repo/org/apache/maven/wagon/wagon-http-shared/debian/wagon-http-shared-debian.jar:debian/maven-repo/org/jsoup/jsoup/debian/jsoup-debian.jar:debian/maven-repo/commons-io/commons-io/debian/commons-io-debian.jar:debian/maven-repo/org/apache/httpcomponents/httpcore/debian/httpcore-debian.jar:debian/maven-repo/org/slf4j/jcl-over-slf4j/debian/jcl-over-slf4j-debian.jar:debian/maven-repo/org/codehaus/plexus/plexus-utils/2.x/plexus-utils-2.x.jar:debian/maven-repo/com/hypirion/io/debian/io-debian.jar:debian/maven-repo/org/slf4j/slf4j-nop/debian/slf4j-nop-debian.jar:debian/maven-repo/org/slf4j/slf4j-api/debian/slf4j-api-debian.jar:debian/maven-repo/org/clojure/tools.macro/debian/tools.macro-debian.jar"
%:
......@@ -31,6 +33,7 @@ override_dh_auto_clean:
rm -f leiningen-core/.lein-bootstrap
rm -f .lein-project-checksum
rm -f .lein-classpath
rm -rf .lein
rm -f pom.xml
rm -rf target
rm -f _lein
......
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