Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 344455 - dev-java/swt-3.5.2 ported to SPARC
Summary: dev-java/swt-3.5.2 ported to SPARC
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Java team
Depends on: 159780
Blocks: 346743
  Show dependency tree
Reported: 2010-11-06 23:27 UTC by Alex Buell
Modified: 2016-02-08 20:28 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---

Dirty patch to allow SWT 3.5.2 porting to SPARC (hack,982 bytes, text/plain)
2010-11-06 23:30 UTC, Alex Buell

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Buell 2010-11-06 23:27:58 UTC
When porting to SPARC, I noticed a couple of problems with the swt ebuild (and this may also apply to the other ebuilds). 

1. This is a source build, why is it downloading architecture specific tarballs? It is fortunate the sources are supplied with these tarballs. Wouldn't be simpler to just get the sources and conditionally compile for the required architecture? 

2. This part: 
local JAWTSO=""
    if [[ $(tc-arch) == 'x86' ]] ; then
    elif [[ $(tc-arch) == 'ppc' ]] ; then
    elif [[ $(tc-arch) == 'ppc64' ]] ; then

Wouldn't it be simpler to just filter out architectures that aren't supported? 

To port to to the SPARC, I simply added the following:

    elif [[ $(tc-arch) == 'sparc' ]] ; then

3. To get a tarball downloaded for SPARC, I added the following:

       sparc? (

Hey, it might be for x86, but the sources contained within it can be built for any architecture. 

I've attached a quick and dirty hack but I'd like feedback before I rewrite the ebuild to do this in a cleaner way in order to support architectures such as SPARC and SPARC64 (yes, we hope to build a 64 bit JVM!)
Comment 1 Alex Buell 2010-11-06 23:30:10 UTC
Created attachment 253453 [details]
Dirty patch to allow SWT 3.5.2 porting to SPARC
Comment 2 Patrice Clement gentoo-dev 2016-02-08 20:26:44 UTC
Hi there

Are you still interested in porting SWT to SPARC? Please let us know. Thanks.
Comment 3 James Le Cuirot gentoo-dev 2016-02-08 20:28:12 UTC
Forget it, we don't support Java on SPARC any more.