public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Benda XU" <heroxbd@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/scala/
Date: Sun, 26 Dec 2021 12:14:37 +0000 (UTC)	[thread overview]
Message-ID: <1640520853.6a3d73b110504517e8ad9a2cfd0f2ef7a20b54bf.heroxbd@gentoo> (raw)

commit:     6a3d73b110504517e8ad9a2cfd0f2ef7a20b54bf
Author:     Benda Xu <heroxbd <AT> gentoo <DOT> org>
AuthorDate: Sun Dec 26 12:11:08 2021 +0000
Commit:     Benda XU <heroxbd <AT> gentoo <DOT> org>
CommitDate: Sun Dec 26 12:14:13 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6a3d73b1

dev-lang/scala: reorganize DEPEND to let it build.

virtual/jdk dependences is conditional on The USE=binary switch.  For
scala-2.12.4, "=1.8" jdk version is a subset of >=1.8, USE=binary
dependence is unconditional.  Likewise for 2.12.10, USE=-binary is also
unconditional.

This circumvents the bug in java-config for not parsing "!binary( )"
structures correctly.

Reference: https://gitweb.gentoo.org/proj/java-config.git/commit/?id=d9ac25402fa9ff918e1f1da4e3e0d97281e437c4
Credits: Murph, Zhixu Liu, Ivan J.
Reported-by: WGH
Closes: https://bugs.gentoo.org/754393
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Benda Xu <heroxbd <AT> gentoo.org>

 dev-lang/scala/scala-2.12.10.ebuild | 7 ++-----
 dev-lang/scala/scala-2.12.4.ebuild  | 6 ++----
 2 files changed, 4 insertions(+), 9 deletions(-)

diff --git a/dev-lang/scala/scala-2.12.10.ebuild b/dev-lang/scala/scala-2.12.10.ebuild
index 466ca0b73817..55b8c7fa565a 100644
--- a/dev-lang/scala/scala-2.12.10.ebuild
+++ b/dev-lang/scala/scala-2.12.10.ebuild
@@ -57,13 +57,10 @@ COMMON_DEP="dev-java/ant-core:0
 
 DEPEND="${COMMON_DEP}
 	!binary? (
-		>=virtual/jdk-1.8:*
 		>=dev-java/sbt-${SBTV}:0
 		media-gfx/graphviz
 	)
-	binary? (
-		>=virtual/jdk-1.8:*
-	)
+	>=virtual/jdk-1.8:*
 	app-arch/xz-utils:0"
 
 RDEPEND="${COMMON_DEP}
@@ -130,7 +127,7 @@ src_prepare() {
 			gjl_package=sbt
 			gjl_jar="sbt-launch.jar"
 			gjl_java_args="-Dsbt.version=${SBT_PVR} -Xms512M -Xmx1536M -Xss1M -XX:+CMSClassUnloadingEnabled -Duser.home="${WORKDIR}""
-			source /usr/share/java-config-2/launcher/launcher.bash
+			source "${EPREFIX}"/usr/share/java-config-2/launcher/launcher.bash
 		EOF
 		chmod u+x "${S}/sbt" || die
 

diff --git a/dev-lang/scala/scala-2.12.4.ebuild b/dev-lang/scala/scala-2.12.4.ebuild
index 99b7b67f1135..fc66541405ac 100644
--- a/dev-lang/scala/scala-2.12.4.ebuild
+++ b/dev-lang/scala/scala-2.12.4.ebuild
@@ -83,9 +83,7 @@ DEPEND="${COMMON_DEP}
 		>=dev-java/sbt-0.13.13
 		media-gfx/graphviz
 	)
-	binary? (
-		>=virtual/jdk-1.8
-	)
+	>=virtual/jdk-1.8
 	app-arch/xz-utils:0"
 
 RDEPEND="${COMMON_DEP}
@@ -146,7 +144,7 @@ src_prepare() {
 			gjl_package=sbt
 			gjl_jar="sbt-launch.jar"
 			gjl_java_args="-Dsbt.version=0.13.13 -Dfile.encoding=UTF8 -Xms512M -Xmx1536M -Xss1M -XX:+CMSClassUnloadingEnabled -Duser.home="${WORKDIR}""
-			source /usr/share/java-config-2/launcher/launcher.bash
+			source "${EPREFIX}"/usr/share/java-config-2/launcher/launcher.bash
 		EOF
 		chmod u+x "${S}/sbt" || die
 


             reply	other threads:[~2021-12-26 12:14 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-26 12:14 Benda XU [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-05-09 10:52 [gentoo-commits] repo/gentoo:master commit in: dev-lang/scala/ Florian Schmaus
2024-04-30  8:15 Florian Schmaus
2022-10-15 23:40 Sam James
2022-08-05  8:17 Arthur Zamarin
2022-06-23  5:49 Sam James
2020-05-17 16:55 Aaron Bauman
2020-01-14 22:46 Thomas Deutschmann
2019-12-29  6:17 Mark Wright
2018-08-26  9:39 Michał Górny
2018-06-26  1:28 Aaron Bauman
2018-06-25 23:20 Thomas Deutschmann
2016-02-17 11:56 Mark Wright
2016-02-16 10:44 Mark Wright
2015-08-24 14:58 Mark Wright
2015-08-24 14:17 Mark Wright

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1640520853.6a3d73b110504517e8ad9a2cfd0f2ef7a20b54bf.heroxbd@gentoo \
    --to=heroxbd@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox