summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenda Xu <heroxbd@gentoo.org>2021-12-24 23:53:40 +0800
committerBenda Xu <heroxbd@gentoo.org>2021-12-25 21:21:24 +0800
commita8ed50692eb36f0ee397f6688126f9bb7a7ed662 (patch)
treeee0267c068e3addb5c03924ddded54afc92d6dd4 /dev-java/sbt
parentdev-java/ant-eclipse-ecj: use ED for the installation pathes. (diff)
downloadgentoo-a8ed50692eb36f0ee397f6688126f9bb7a7ed662.tar.gz
gentoo-a8ed50692eb36f0ee397f6688126f9bb7a7ed662.tar.bz2
gentoo-a8ed50692eb36f0ee397f6688126f9bb7a7ed662.zip
dev-java/sbt: double the heap upper limit to 3GB.
Otherwise the build fails with out-of-memory error. Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Benda Xu <heroxbd@gentoo.org>
Diffstat (limited to 'dev-java/sbt')
-rw-r--r--dev-java/sbt/sbt-0.13.18.ebuild4
1 files changed, 2 insertions, 2 deletions
diff --git a/dev-java/sbt/sbt-0.13.18.ebuild b/dev-java/sbt/sbt-0.13.18.ebuild
index c4f3a8c3e8bc..4262d767d5b3 100644
--- a/dev-java/sbt/sbt-0.13.18.ebuild
+++ b/dev-java/sbt/sbt-0.13.18.ebuild
@@ -97,12 +97,12 @@ src_prepare() {
cp -p "${DISTDIR}/${L_P}.jar" "${WORKDIR}/${L_P}/${L_PN}.jar" || die
cat <<- EOF > "${WORKDIR}/${L_P}/sbt"
#!/bin/sh
- SBT_OPTS="-Xms512M -Xmx1536M -Xss1M -XX:+CMSClassUnloadingEnabled"
+ SBT_OPTS="-Xms512M -Xmx3072M -Xss1M -XX:+CMSClassUnloadingEnabled"
java -Djavac.args="-encoding UTF-8" -Duser.home="${WORKDIR}" \${SBT_OPTS} -jar "${WORKDIR}/${L_P}/sbt-launch.jar" "\$@"
EOF
cat <<- EOF > "${S}/${P}"
#!/bin/sh
- SBT_OPTS="-Xms512M -Xmx1536M -Xss1M -XX:+CMSClassUnloadingEnabled"
+ SBT_OPTS="-Xms512M -Xmx3072M -Xss1M -XX:+CMSClassUnloadingEnabled"
java -Djavac.args="-encoding UTF-8" -Duser.home="${WORKDIR}" \${SBT_OPTS} -jar "${S}/launch/target/sbt-launch.jar" "\$@"
EOF
chmod u+x "${WORKDIR}/${L_P}/sbt" "${S}/${P}" || die