Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Linux Tools Project/Eclipse Build"

m (Prerequisites for building with eclipse-build)
(To-do list: Eclipse build is harness for Platform.releng.aggregator and no longer developed anymore.)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{#eclipseproject:technology.linux-distros}}
+
{{#eclipseproject:tools.linuxtools}}
 
{{Linux_Tools}}
 
{{Linux_Tools}}
  
Line 11: Line 11:
  
 
For more information about how Eclipse Build works please refer to the [http://wiki.eclipse.org/Linux_Tools_Project/Eclipse_Build/Inner_Workings Eclipse Build Inner Workings Page]
 
For more information about how Eclipse Build works please refer to the [http://wiki.eclipse.org/Linux_Tools_Project/Eclipse_Build/Inner_Workings Eclipse Build Inner Workings Page]
 
== Prerequisites for building with eclipse-build ==
 
<b> TIP </b> On Fedora, you can install all required dependencies using one single command:
 
sudo yum-builddep eclipse
 
* A 1.6 JDK installed in a standard place (see build.properties)
 
to check that execute a command
 
java -version
 
* Ensure JAVA_HOME is set (e.g., export JAVA_HOME=/usr/lib/jvm/java)
 
to check that execute a command
 
echo $JAVA_HOME
 
to set the variable call
 
export JAVA_HOME=<path to your java>
 
usually
 
export JAVA_HOME=/usr/lib/jvm/java/
 
* [http://ant.apache.org/manual/install.html  Ant] version 1.8.2 or newer
 
* bash, sh, perl, sed, rsync, below requirements for particular distro
 
* icu4j; jsch; java.servlet 2.5; javax.servlet.jsp 2.0; Apache Commons:  codec, EL, httpclient, logging; jasper; lucene; hamcrest; jetty; ASM; SAT4J <span style="color:red"> compiled against java 1.5 </span> - you can get one by invoking command:
 
yum install fedora-release-rawhide
 
yum --enablerepo=rawhide update sat4j
 
* tomcat
 
* At least 3 GB of storage available
 
* Xvnc (Fedora:  tigervnc-server package) if you want the tests to run and not touch your main display
 
  
 
== How To build Eclipse SDK with eclipse-build released tarballs ==
 
== How To build Eclipse SDK with eclipse-build released tarballs ==
Line 44: Line 22:
  
 
Optional:  <tt>ant runTests</tt>.  Look for test results (a few hours running time) in <tt>tests_<timestamp>/results/html/org.eclipse.sdk.tests.html</tt>.
 
Optional:  <tt>ant runTests</tt>.  Look for test results (a few hours running time) in <tt>tests_<timestamp>/results/html/org.eclipse.sdk.tests.html</tt>.
 
== How to build Eclipse SDK from git clone of eclipse-build ==
 
* You can clone our [http://git.eclipse.org/c/linuxtools/org.eclipse.linuxtools.eclipse-build.git/ git repo] as below or you can clone using [[EGit]].  It is preferred that patches are generated from within Eclipse.  All patches must be submitted via [https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Linux%20Tools&component=PackagingTools http://bugs.eclipse.org eclipse.org bugzilla].
 
* <tt>git clone git://git.eclipse.org/gitroot/linuxtools/org.eclipse.linuxtools.eclipse-build.git/</tt>
 
* <tt>cd org.eclipse.linuxtools.eclipse-build/eclipse-build</tt>
 
* Download [http://www.eclipse.org/downloads/download.php?file=/technology/linuxtools/eclipse-build/3.6.x_Helios/eclipse-3.6.2-src.tar.bz2 SDK sources] (other versions available [http://download.eclipse.org/technology/linuxtools/eclipse-build/ here]) and put them in the eclipse-build directory '''NOTE''': eclipse-build provides source tarballs created from the ''same tag'' as the official releases but with additional sources needed for the build.
 
* Optional:  download the [http://www.eclipse.org/downloads/download.php?file=/technology/linuxtools/eclipse-build/3.6.x_Helios/eclipse-sdktests-3.6.2-src.tar.bz2 SDK test sources] and [http://www.eclipse.org/downloads/download.php?file=/technology/linuxtools/eclipse-build/3.6.x_Helios/eclipse-sdktests-3.6.2-scripts.tar.bz2 SDK test scripts] and put them in the eclipse-build directory.
 
* Run <tt>ant</tt>
 
* Check for successful build in <tt>build/eclipse-$YOUR_BUILD_ID-src/installation</tt>
 
* Optional:  <tt>ant runTests</tt>.  Look for test results (a few hours running time) in <tt>testResults-${timestamp}/html/org.eclipse.sdk.tests.html</tt>.
 
  
 
== Submitting patches ==
 
== Submitting patches ==
 
* Clone our git repository:  [http://git.eclipse.org/c/linuxtools/org.eclipse.linuxtools.eclipse-build.git/ http://git.eclipse.org/c/linuxtools/org.eclipse.linuxtools.eclipse-build.git/]
 
* Clone our git repository:  [http://git.eclipse.org/c/linuxtools/org.eclipse.linuxtools.eclipse-build.git/ http://git.eclipse.org/c/linuxtools/org.eclipse.linuxtools.eclipse-build.git/]
 
* It is preferred that patches are generated from within Eclipse (use [[EGit]].  All patches must be submitted via [https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Linux%20Tools&component=PackagingTools http://bugs.eclipse.org eclipse.org bugzila]
 
* It is preferred that patches are generated from within Eclipse (use [[EGit]].  All patches must be submitted via [https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Linux%20Tools&component=PackagingTools http://bugs.eclipse.org eclipse.org bugzila]
 
== Debian/Ubuntu Build Requirements ==
 
 
On Ubuntu 9.10 "Karmic Koala" (and later) you can simply run "sudo apt-get build-dep eclipse && sudo aptitude install build-essential" to install those packages.
 
 
The list of build dependencies (excluding build-essential) can be found
 
[http://git.debian.org/?p=pkg-java/eclipse.git;a=blob_plain;f=debian/control here] (see Build-Depends).
 
 
=== Build Debs from upstream source  ===
 
 
These instructions are a kludge and not best practice, but they should get you a deb, hopefully.
 
 
#Get the eclipse build from the Git repository as detailed in the "get from source section" above
 
#Comment out the delete configuration section in the build.xml?
 
#Get the eclipse SDK/PDE source from the download site listed above, and put in the eclipse-build directory, and a copy underneath the
 
#Get the debian directory from master-3.6 out of the java-pkg on git.debian.org
 
##put the debian directory inside the build eclipse directory
 
##in the debian directory edit changes as appropriate
 
#run dpkg-buildpackage -rfakeroot -us -uc -b
 
#Cross fingers and hope it works
 
#Go away and a have a coffee, and do the laundry; it will take about 30 minutes to compile on Core Duo
 
#Hopefully you'll have your shiny deb files for eclipse
 
  
 
== Fedora Build Requirements ==
 
== Fedora Build Requirements ==
 
On Fedora, just run <tt>yum-builddep eclipse</tt> to get the build dependencies (''including'' the dependencies to which the Fedora package is symlinked).  You must also ensure you have the following installed (the latter to run the tests):  <tt>patch tigervnc-server</tt>.
 
On Fedora, just run <tt>yum-builddep eclipse</tt> to get the build dependencies (''including'' the dependencies to which the Fedora package is symlinked).  You must also ensure you have the following installed (the latter to run the tests):  <tt>patch tigervnc-server</tt>.
 
= To-do list =
 
* See [https://bugs.eclipse.org/bugs/buglist.cgi?query_format=advanced&short_desc_type=allwordssubstr&short_desc=&classification=Technology&product=Linux+Tools&component=PackagingTools&long_desc_type=allwordssubstr&long_desc=&bug_file_loc_type=allwordssubstr&bug_file_loc=&status_whiteboard_type=allwordssubstr&status_whiteboard=&keywords_type=allwords&keywords=&bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&emailtype1=substring&email1=&emailtype2=substring&email2=&bugidtype=include&bug_id=&votes=&chfieldfrom=&chfieldto=Now&chfieldvalue=&cmdtype=doit&order=Reuse+same+sort+as+last+time&field0-0-0=noop&type0-0-0=noop&value0-0-0= eclipse-build open bugs]
 
* [https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Linux%20Tools&component=PackagingTools Add an item]
 
* In [https://bugs.eclipse.org/bugs/ Eclipse bugzilla], watch linux.packagingtools-inbox@eclipse.org if you want to be notified of new bugs
 
 
'''Planned items'''
 
* Move away from dropins for JDT, PDE, etc.
 
* Add ability to build only given feature e.g org.eclipse.swt (Maybe)
 
  
 
= Testing =
 
= Testing =
 
See [[/Tests|tests]] for how to build and run the SDK tests and to report results and check if others are working on common failures.
 
See [[/Tests|tests]] for how to build and run the SDK tests and to report results and check if others are working on common failures.

Latest revision as of 06:43, 13 January 2022

{{#eclipseproject:tools.linuxtools}}

Linux Tools
Website
Download
Community
Mailing ListForumsIRCmattermost
Issues
OpenHelp WantedBug Day
Contribute
Browse Source

Eclipse-build aims to ease the building of the Eclipse SDK for Linux distributions.

Eclipse Build: Why And How

When building, Eclipse normally satisfies its third party requirements by using libraries provided in Orbit. Orbit provides pre-built libraries which have been made into OSGi bundles with proper versioning, etc.

The problem for some Linux distributions is that they cannot use the pre-built binaries provided by Orbit. Eclipse must be built using the binaries provided in that distribution.

For more information about how Eclipse Build works please refer to the Eclipse Build Inner Workings Page

How To build Eclipse SDK with eclipse-build released tarballs

  • Download and extract the latest eclipse-build*.tar.gz (pick the appropriate directory for the release you want)
  • Download tarballs of the SDK sources (and optionally the SDK test sources and SDK test scripts) from the eclipse-build downloads area and put them in the eclipse-build* directory. NOTE: eclipse-build provides source tarballs created from the same tag as the official releases but with additional sources needed for the build.
    • 3.7.1 tarball is here
  • Run ant (you will likely need to ensure that JAVA_HOME points to your JDK installation directory)

If the build finishes without error there will be a build/eclipse-$YOUR_BUILD_ID-src/installation directory containing a ready-to-use Eclipse SDK. Eclipse-build is verified to work on x86, x86_64 and ppc architectures. Eclipse-build has been successfully tested on Fedora, Debian, Ubuntu, Gentoo, and RHEL. Refer to distribution-specific instructions below. We are interested in reports of success on other distributions. Please let us know via linuxtools-dev@eclipse.org.

Optional: ant runTests. Look for test results (a few hours running time) in tests_<timestamp>/results/html/org.eclipse.sdk.tests.html.

Submitting patches

Fedora Build Requirements

On Fedora, just run yum-builddep eclipse to get the build dependencies (including the dependencies to which the Fedora package is symlinked). You must also ensure you have the following installed (the latter to run the tests): patch tigervnc-server.

Testing

See tests for how to build and run the SDK tests and to report results and check if others are working on common failures.

Back to the top