I've started today to learn about sbt and make in parallel and to write
ivy.xml and Makefile to build sbt without sbt.
If sbt should be packaged for Debian or any other free software distribution,
then it must be possible to build it without itself.
I've not managed too much yet[1]. It builds util/datatype and util/complete.
[1] https://github.com/thkoch2001/xsbt/tree/build-with-make
I just wanted to let you know about this (insane?) effort. Maybe somebody
wants to help? I don't know whether this is the best way or whether I'll have
the time to finish it.
Best regards,
Thomas Koch, http://www.koch.ro
This message has been checked for all known viruses by the Postini Virus Control Centre.
Not to mention, good luck building scala without scala.
> Are you sure about that? There are packages that (if I remember
> correctly) absolutely require themselves to build, e.g. ghc and gcc.
> Or do they have special exemptions, being compilers?
Yes, I'm sure. There are a few things that have circular build dependencies
and cause headaches, but Debian Developers put great effort into minimalizing
those.[1] And there's absolutely no change that debian ftp-masters will accept
a comparably high level tool like sbt to introduce another circular
dependency.
[1] http://wiki.debian.org/DebianBootstrap
I just wrote anther mail, proposing to break up sbt into a minimal core and
the rest. This could be one way to solve this circular dependency problem.
Best regards
Thomas Koch, http://www.koch.ro
Regards,
Thomas Koch, http://www.koch.ro
--
You received this message because you are subscribed to the Google Groups "simple-build-tool" group.
To post to this group, send email to simple-b...@googlegroups.com.
To unsubscribe from this group, send email to simple-build-t...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/simple-build-tool?hl=en.
Most tellingly (and unavoidably),
36 <!-- Location of pre-compiled libraries -->
37 <property name="starr.lib.jar" value="${lib.dir}/scala-library.jar"/>
38 <property name="starr.comp.jar" value="${lib.dir}/scala-compiler.jar"/>
They're debian, they're not magical unicorns. Anyone who could build
scala without scala would have quite the interesting operation going,
with man-years of pointless work going into a secret reimplementation.
If there is stuff like that going on, hey people, consider tossing it
in and working on the real thing.
I'm sorry, I made a fool of myself yesterday. Debian _does_ use scala to
compile scala. But this mistake only motivated me push harder trying to build
sbt _without_ sbt.
I pushed my current state[1]. I can now compile sbt from the Makefile. But
when I try to run it (see target _invoke in the Makefile) I get an exception:
[info] Set current project to default-ddd812 (in build
file:/home/thkoch/Desktop/checkouts/scala/xsbt/debian/boot/ivy-console/)
[error] (run-main) sbt.InvalidComponent: Could not find required component
'compiler-interface-src'
sbt.InvalidComponent: Could not find required component 'compiler-interface-
src'
at sbt.ComponentManager.invalid(ComponentManager.scala:57)
at sbt.ComponentManager.notFound$1(ComponentManager.scala:34)
at sbt.ComponentManager.createAndCache$1(ComponentManager.scala:37)
...
[1] https://github.com/thkoch2001/xsbt/tree/build-with-make
Do you have any idea, how I can continue? I run sbt directly from the .class
files, not from a .jar file.
I need to push sbinary, scalacheck and test-interface to Debian, before you
can try to run it yourself. Or you can change the repositories in
debian/sbt.boot.properties and ivysettings.xml.
Does anybody from the core devs run debian or a debian-derivative like ubuntu?
Just saw your branch. I assume this effort implies that the approach Josh took [1] isn't an option. In that case, would it be worthwhile to follow Maven's approach [2].
[1] https://github.com/paulp/sbt-extras/pull/12
[2] http://wiki.debian.org/Java/Maven2
- Indrajit
I have Josh in CC and hope that he could comment on this subject. I plan to do
sth. similar as described in the Maven link: Building sbt first with make and
then invoking it to build itself properly.
I've looked at Josh's work. As he stated himself in the pull request he's not
yet experienced in Debian package, so in short the approach taken does not
work for the official Debian archive. But I'd be looking forward to maintain
Sbt together with him.
On Wednesday 14 December 2011 at 8:25 PM, Thomas Koch wrote:
Indrajit Raychaudhuri:Thomas,Just saw your branch. I assume this effort implies that the approach Joshtook [1] isn't an option. In that case, would it be worthwhile to followMaven's approach [2].Hi Indrajit,I have Josh in CC and hope that he could comment on this subject. I plan to dosth. similar as described in the Maven link: Building sbt first with make andthen invoking it to build itself properly.
I've looked at Josh's work. As he stated himself in the pull request he's notyet experienced in Debian package, so in short the approach taken does notwork for the official Debian archive. But I'd be looking forward to maintainSbt together with him.
thank you, but I have compiled compile/interface. I've now pushed another
branch:
https://github.com/thkoch2001/xsbt/tree/compiled-with-make
Maybe you'd like to try launching it from there or have a look at what may be
missing? My classpath contains all folders in target/ plus the ivy
dependencies.