summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Wright <gienah@gentoo.org>2018-01-29 20:33:51 +1100
committerMark Wright <gienah@gentoo.org>2018-01-29 20:33:51 +1100
commitbacf0700c7b9b6155fdf6554584432d85a5e3b78 (patch)
tree349da4c0ea800f9adf79b802f21afda990b1a611 /dev-lang/scala/files
parentdev-lang/ruby: cleanup vulnerable version, bug 641090 (diff)
downloadgentoo-bacf0700c7b9b6155fdf6554584432d85a5e3b78.tar.gz
gentoo-bacf0700c7b9b6155fdf6554584432d85a5e3b78.tar.bz2
gentoo-bacf0700c7b9b6155fdf6554584432d85a5e3b78.zip
dev-lang/scala: Bump to 2.12.4
Fix 640306, thanks to xmv for reporting. Gentoo-Bug: http://bugs.gentoo.org/640306 Package-Manager: Portage-2.3.19, Repoman-2.3.6
Diffstat (limited to 'dev-lang/scala/files')
-rw-r--r--dev-lang/scala/files/scala-2.12.4-no-git.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/dev-lang/scala/files/scala-2.12.4-no-git.patch b/dev-lang/scala/files/scala-2.12.4-no-git.patch
new file mode 100644
index 000000000000..04e620bcee26
--- /dev/null
+++ b/dev-lang/scala/files/scala-2.12.4-no-git.patch
@@ -0,0 +1,37 @@
+--- scala-2.12.4-orig/project/VersionUtil.scala 2017-10-11 09:05:11.000000000 +1100
++++ scala-2.12.4/project/VersionUtil.scala 2018-01-29 15:58:57.205758665 +1100
+@@ -2,7 +2,7 @@
+
+ import sbt.{stringToProcess => _, _}
+ import Keys._
+-import java.util.{Date, Locale, Properties, TimeZone}
++import java.util.{Calendar, Date, Locale, Properties, TimeZone}
+ import java.io.{File, FileInputStream}
+ import java.text.SimpleDateFormat
+
+@@ -65,18 +65,13 @@
+ val log = sLog.value
+ val (dateObj, sha) = {
+ try {
+- // Use JGit to get the commit date and SHA
+- import org.eclipse.jgit.storage.file.FileRepositoryBuilder
+- import org.eclipse.jgit.revwalk.RevWalk
+- val db = new FileRepositoryBuilder().findGitDir.build
+- val head = db.resolve("HEAD")
+- if (head eq null) {
+- log.info("No git HEAD commit found -- Using current date and 'unknown' SHA")
+- (new Date, "unknown")
+- } else {
+- val commit = new RevWalk(db).parseCommit(head)
+- (new Date(commit.getCommitTime.toLong * 1000L), commit.getName.substring(0, 7))
+- }
++ val commit = "c2a5883891a68180b143eb462c8b0cebc8d3b02"
++ val cal = Calendar.getInstance();
++ cal.set(Calendar.YEAR, 2017);
++ cal.set(Calendar.MONTH, Calendar.OCTOBER);
++ cal.set(Calendar.DAY_OF_MONTH, 11);
++ val date = cal.getTime();
++ (date, commit.substring(0, 7))
+ } catch {
+ case ex: Exception =>
+ log.error("Could not determine commit date + SHA: " + ex)