How to compile and bootstrap from source #7168
-
Hi, I want to compile sbt from source for debian I could not find documentation for compiling from source sbt Could you please:
rouca |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 6 replies
-
To build the current version of sbt, you need to use a previous version of sbt. There is no way around this. There is some pretty extensive previous discussion at https://contributors.scala-lang.org/t/compiling-scala-and-sbt-for-debian-distro/3620
there are full instructions in DEVELOPING.md |
Beta Was this translation helpful? Give feedback.
-
So:
Now I can do the the build and version by version update for debian. Other question:
BTW bootstraping is allowed for debian, but it need to pass by contrib distrib |
Beta Was this translation helpful? Give feedback.
-
You don't need to involve any native binaries. sbt runs on the JVM, from JARs not native binaries, and is launched by a shell script. (If I recall correctly, the sbt download bundles available from the sbt website include native binaries for sbtn, but you don't actually need sbtn for any of this.)
I think so, but you'd need to pre-populate a local Maven repository with the required JARs.
I don't know what this means. |
Beta Was this translation helpful? Give feedback.
-
Something to be aware is accidental/historical conflation around what "sbt" refers to.
This mechanism allows users to install the runner + launcher machine-wide, but change the sbt version per project using Also at the dependency level sbt does use native code regularly. Some of the details are in #6202, but whenever we need to deal with new CPU architecture on big operating systems we do sometimes delve into C code. |
Beta Was this translation helpful? Give feedback.
You don't need to involve any native binaries. sbt runs on the JVM, from JARs not native binaries, and is launched by a shell script.
(If I recall correctly, the sbt download bundles available from the sbt website include native binaries for sbtn, but you don't actually need sbtn for any of this.)
I think so, but you'd need to pre-populate a local Maven repository with the required JARs.
I don't know what this means.