summaryrefslogtreecommitdiff
path: root/dev-lang/scala/files/scala-2.12.10-no-git.patch
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2024-08-26 14:51:00 +0300
committerArthur Zamarin <arthurzam@gentoo.org>2024-08-26 14:51:49 +0300
commit706c530fec731e37653a59578b365d3a50d79260 (patch)
treecfe7b6215cf52b3a99497eb6d2e0a20863574ff8 /dev-lang/scala/files/scala-2.12.10-no-git.patch
parentf7182ca10d6cf3eac83d75899742d87a1ba01d8e (diff)
downloadgentoo-706c530fec731e37653a59578b365d3a50d79260.tar.gz
gentoo-706c530fec731e37653a59578b365d3a50d79260.tar.bz2
gentoo-706c530fec731e37653a59578b365d3a50d79260.zip
dev-lang/scala: treeclean
Closes: https://bugs.gentoo.org/932012 (pkgremoved) Closes: https://bugs.gentoo.org/690344 (pkgremoved) Closes: https://bugs.gentoo.org/836054 (pkgremoved) Closes: https://bugs.gentoo.org/929942 (pkgremoved) Closes: https://bugs.gentoo.org/932737 (pkgremoved) Closes: https://bugs.gentoo.org/933607 (pkgremoved) Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'dev-lang/scala/files/scala-2.12.10-no-git.patch')
-rw-r--r--dev-lang/scala/files/scala-2.12.10-no-git.patch37
1 files changed, 0 insertions, 37 deletions
diff --git a/dev-lang/scala/files/scala-2.12.10-no-git.patch b/dev-lang/scala/files/scala-2.12.10-no-git.patch
deleted file mode 100644
index 017cb983b59b..000000000000
--- a/dev-lang/scala/files/scala-2.12.10-no-git.patch
+++ /dev/null
@@ -1,37 +0,0 @@
---- scala-2.12.10-orig/project/VersionUtil.scala 2019-09-05 01:01:59.000000000 +1000
-+++ scala-2.12.10/project/VersionUtil.scala 2019-09-12 11:00:05.525154568 +1000
-@@ -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 = "61701c22900f14676fa181500722b64330eb2605"
-+ val cal = Calendar.getInstance();
-+ cal.set(Calendar.YEAR, 2019);
-+ cal.set(Calendar.MONTH, Calendar.SEPTEMBER);
-+ cal.set(Calendar.DAY_OF_MONTH, 5);
-+ val date = cal.getTime();
-+ (date, commit.substring(0, 7))
- } catch {
- case ex: Exception =>
- log.error("Could not determine commit date + SHA: " + ex)