summaryrefslogtreecommitdiff
path: root/dev-lang/scala/files
diff options
context:
space:
mode:
authorMark Wright <gienah@gentoo.org>2017-05-05 11:09:19 +1000
committerMark Wright <gienah@gentoo.org>2017-05-05 11:10:04 +1000
commitdaa81eb8ec876f57d74379f12d25f2a2d4ba27a9 (patch)
tree033faba32de890d92954358e9eaf128d82ade244 /dev-lang/scala/files
parent52fcce66174f326a1b1647b443f89dc7db39303c (diff)
downloadgentoo-daa81eb8ec876f57d74379f12d25f2a2d4ba27a9.tar.gz
gentoo-daa81eb8ec876f57d74379f12d25f2a2d4ba27a9.tar.bz2
gentoo-daa81eb8ec876f57d74379f12d25f2a2d4ba27a9.zip
dev-lang/scala: Bump to 2.12.2
Package-Manager: portage-2.3.5
Diffstat (limited to 'dev-lang/scala/files')
-rw-r--r--dev-lang/scala/files/scala-2.12.2-no-git.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/dev-lang/scala/files/scala-2.12.2-no-git.patch b/dev-lang/scala/files/scala-2.12.2-no-git.patch
new file mode 100644
index 000000000000..1c09bf6ba866
--- /dev/null
+++ b/dev-lang/scala/files/scala-2.12.2-no-git.patch
@@ -0,0 +1,23 @@
+--- scala-2.12.2-orig/project/VersionUtil.scala 2017-04-13 02:16:08.000000000 +1000
++++ scala-2.12.2/project/VersionUtil.scala 2017-05-04 23:45:50.715285243 +1000
+@@ -80,18 +80,8 @@
+
+ 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 = "21d12e9f5ec1ffe023f509848911476c1552d06f"
++ (new Date, commit.substring(0, 7))
+ } catch { case ex: Exception =>
+ log.error("Could not determine commit date + SHA: "+ex)
+ log.trace(ex)