Bug 96842 - Fix for building on x86-64
Summary: Fix for building on x86-64
Status: RESOLVED WONTFIX
Alias: None
Product: PDE
Classification: Eclipse Project
Component: Build (show other bugs)
Version: 3.1   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: pde-build-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-26 14:42 EDT by Billy Biggs CLA
Modified: 2006-02-16 13:55 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Billy Biggs CLA 2005-05-26 14:42:26 EDT
From http://bugs.gentoo.org/attachment.cgi?id=59659, there is a hardcoded
reference to x86 in the build.xml for org.eclipse.core.resources.linux which
causes the library to not be built on x86-64 machines.

diff -ur eclipse.orig/plugins/org.eclipse.core.resources.linux/build.xml
eclipse.amd64/plugins/org.eclipse.core.resources.linux/build.xml
--- eclipse.orig/plugins/org.eclipse.core.resources.linux/build.xml	2005-05-13
21:34:52.000000000 +0300
+++ eclipse.amd64/plugins/org.eclipse.core.resources.linux/build.xml	2005-05-23
21:43:30.000000000 +0300
@@ -57,10 +57,15 @@
 
 	<target name="gather.bin.parts" depends="init" if="destination.temp.folder">
 		<mkdir dir="${destination.temp.folder}/org.eclipse.core.resources.linux_3.1.0"/>
+          <exec dir="./src" executable="make">
+          </exec>
+	  <copy todir="os/linux/${basearch}" failonerror="true" overwrite="false">
+        	<fileset dir="src" includes="*.so"/>
+          </copy>
 		<copy
todir="${destination.temp.folder}/org.eclipse.core.resources.linux_3.1.0"
failonerror="true" overwrite="false">
 			<fileset dir="${basedir}" includes="os/,META-INF/,about.html"			/>
 		</copy>
-		<chmod perm="755"
dir="${destination.temp.folder}/org.eclipse.core.resources.linux_3.1.0"
includes="os/linux/x86/*.so" /> 
+		<chmod perm="755"
dir="${destination.temp.folder}/org.eclipse.core.resources.linux_3.1.0"
includes="os/linux/${basearch}/*.so" /> 
 	</target>
 
 	<target name="build.zips" depends="init">
Comment 1 John Arthorne CLA 2005-05-26 14:58:41 EDT
org.eclipse.core.resources.linux does not have a build.xml - it is
auto-generated at build time by PDE build. This likely won't be as simple as
applying a patch.
Comment 2 Mikko Tiihonen CLA 2005-06-30 12:20:30 EDT
Where can I find the code/template the PDE build uses to generate this build.xml.
I can try to create a patch against that one if it helps getting this one solved.
Comment 3 Pascal Rapicault CLA 2005-08-05 16:59:16 EDT
The code that generates the build xml leaves in org.eclipse.pde.build, in the
class called ModelBuildScriptGenerator. However this won't give you much since
the script get this value because the environment for which it is generated is x86.
Comment 4 Pascal Rapicault CLA 2006-01-10 14:50:57 EST
Have you worked around the problem?
Comment 5 Pascal Rapicault CLA 2006-02-16 13:55:53 EST
Please reopen if this is still a problem