[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[linuxtools-dev] Building the Eclipse SDK: eclipse-build 0.0.2

(For those of you still receiving this on linux-distros-dev, please move
 to linuxtools-dev [0].)

Hi,

As some of you know, we've been working to make it easier for Linux
distributions to include the Eclipse SDK and additional plugins.  One
obstacle to this was the building of the Eclipse SDK from scratch.  Our
eclipse-build work is trying to help.

We have released a preliminary version, not ready for consumption by
distributions, but ready for testing.  We would greatly appreciate
feedback in the form of bugs (see [1]) of the build working or not
working on various distributions.  Patches to fix any issues are even
more greatly appreciated :)

To get started, download these two files ([2]):

  http://www.eclipse.org/downloads/download.php?file=/technology/linuxtools/eclipse-build/eclipse-build-R0_0_2.tar.gz
  http://www.eclipse.org/downloads/download.php?file=/technology/linuxtools/eclipse-build/eclipse-I20090611-1540-fetched-src.tar.bz2

Untar the first one and in the expanded directory put a symlink to the
second one.  Something like:

  tar zxf eclipse-build-R0_0_2.tar.gz
  cd eclipse-build-R0_0_2
  ln -s ../eclipse-I20090611-1540-fetched-src.tar.bz2

Then, run the build.xml using an existing basebuilder
(R35_M7) checkout.  If you don't have a basebuilder checkout, you can
get it like so:

  cd
  cvs -d:pserver:anonymous@xxxxxxxxxxxxxxx:/cvsroot/eclipse co -r R35_M7 \
    org.eclipse.releng.basebuilder

Then run the eclipse-build build.xml with the basebuilder you just
checked out.  Something like:

  cd eclipse-build-R0_0_2
  java -jar \
  ~/org.eclipse.releng.basebuilder/plugins/org.eclipse.equinox.launcher_1.0.200.v20090429-1630.jar \
  -consolelog -data $(pwd)/baseworkspace -Duser.home=$(pwd)/userhome \
  -application org.eclipse.ant.core.antRunner \
  -DbaseBuilder=~/org.eclipse.releng.basebuilder \
  -Dlauncher=~/org.eclipse.releng.basebuilder/plugins/org.eclipse.equinox.launcher_1.0.200.v20090429-1630.jar \
  -Declipse.pdebuild.scripts=~/org.eclipse.releng.basebuilder/plugins/org.eclipse.pde.build_3.5.0.v20090430-1420 \
  -DbuildArch=x86_64 \
  2>&1 | tee build.log

Don't forget to change x86_64 to your architecture.

Things to note:

- this version uses the bundled copies of the dependencies like JUnit,
  ant, etc.
- your JDK is assumed to be in "JPackage style" in /usr/lib/jvm/java
- your JDK is assumed to be 1.6
- we haven't tested on non-x86{,_64}
- make sure you have ~3.5 GB disk space available

Next steps we'd love help with:

- bootstrapping the parts of basebuilder needed to run the build so we
  don't need basebuilder :) [3]
- simplifying the launching [4]
- some sort of easy way to use the system JARs for the dependencies
  (just over-writing them with symlinks will work) [5]
- building and running the tests [6]
- automatically detecting the host architecture [7]

These and our other open bugs are listed here:

http://preview.tinyurl.com/eclipse-build-openbugs

Thanks,

Andrew

[0]
https://dev.eclipse.org/mailman/listinfo/linuxtools-dev

[1]
http://preview.tinyurl.com/eclipse-build-bug
Please include "[eclipse-build]" in the bug's summary.

[2]
I hope that the files have propagated to mirrors by the time you read
this.  md5sums:

2602a3fae7cbf28986b97f46aa706284 eclipse-I20090611-1540-fetched-src.tar.bz2
5794e727e05b7efaf9141d959ecc96ee eclipse-build-R0_0_2.tar.gz

[3]
https://bugs.eclipse.org/214909
https://bugs.eclipse.org/280685

[4]
https://bugs.eclipse.org/280686

[5]
https://bugs.eclipse.org/280688

[6]
https://bugs.eclipse.org/281270

[7]
https://bugs.eclipse.org/281271