Jump to: navigation, search

Modeling Project Releng/Building/Test on 64-Bit

< Modeling Project Releng‎ | Building
Revision as of 17:28, 12 May 2009 by Nickboldt+bugzilla.gmail.com (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

As discussed in bug 253114, here's how to make your Modeling build run on modeling.eclipse.org (a 64-bit SLES 11 virtual server):

Step 1: relengbuildgtk.sh

  • First, add smarter platform arch detection. Replace this:
arch=x86

with this:

arch=x86
if uname -m > /dev/null 2>&1; then
	arch=`uname -m`
else
	arch=`uname -p`
fi
# Massage arch for Eclipse-uname differences
case $arch in
	i[0-9]*86)
		arch=x86 ;;
	ia64)
		arch=ia64 ;;
	ppc)
		arch=ppc ;;
	ppc64)
		arch=ppc ;;
	x86_64)
		arch=x86_64 ;;
	*)
	echo "ERROR: Unrecognized architecture:  $arch"
	exit 1 ;;
esac
  • Next, replace or add this so that swt jars are on classpath explicitly when running tests
# add swt jars
cpAndMain=`find eclipse/ -name "org.eclipse.swt_*.jar" | sort | head -1`":"$cpAndMain; 
cpAndMain=`find eclipse/ -name "org.eclipse.swt.gtk.linux.${arch}_*.jar" | sort | head -1`":"$cpAndMain; 

Step 2: build/_common.php

  • Set a 5.0 or 6.0 JVM, and ensure your BREEs are correctly set in all your MANIFEST.MF files to avoid accidentally forcing users to need a 5.0 or 6.0 JVM, if you have plugins which can run on an older VM.
      "modeling.eclipse.org=------------,------------",
      "3.5.0=HEAD,/opt/sun-java2-6.0_64",

Step 3: build/index.php or start.sh

  • Make sure that as input to the build, you specify the linux-gtk-x86_64 Eclipse SDK, not the linux-gtk.