Re: icedtea6 bootstrap

Andrew John Hughes <[email protected]> Sun, 14 Sep 2008 21:38:57 +0100
Newsgroups gmane.linux.gentoo.java
Message-ID <[email protected]>
On 15:38 Sun 14 Sep     , Alon Bar-Lev wrote:
> Hello,
> 
> I just curious... How do you see the boostrap process for normal users?
> 
> You need jdk to setup icedtea... So we have somekind of loop...

Yes, such a bootstrap issue is hardly limited to IcedTea.
The same occurs with gcc for example, and other Free Java VMs.

> Users who do not want non open source package to run on their computers should:
> 
> 1. Install gcj
> 2. Install icedtea
> 3. Reinstall icedtea so it compiles with icedtea and drop gcj dependency???
> 4. Uninstall gcj
> 

You don't need stage 3 (there is no 'gcj dependency'), and stage 4 is completely optional.
Other Free VMs can be used, but they also have bootstrap issues.

In the long run, we probably need a binary option for lower spec. machines,
as I've already said.

> Portage do not support these sequences...
> 

Well this is probably a flaw in portage then, but the solution is only
a two-step emerge process:

emerge gcj-jdk
emerge icedtea6

I don't think that's inherently difficult.

> So we have several options:
> 1. Have users do this manually.
> 2. Create a script similar to crossdev that perform the sequence.
> 3. Add a private gcj build into the compile stage of icedtea, and drop
> the jdk dependency.
> 

I don't see any problem with 1.  Why is gcj not enabled in the bootstrap
gcc on the install CDs? 

> Any thoughts?
> Alon.
> 
> ---
> 
> I am almost sure you already know that... But just for the record:
> 
>  * QA Notice: The following files contain executable stacks
>  *  Files with executable stacks will not work properly (or at all!)
>  *  on some architectures/operating systems.  A bug should be filed
>  *  at http://bugs.gentoo.org/ to make sure the file is fixed.
>  *  For more information, see http://hardened.gentoo.org/gnu-stack.xml
>  *  Please include this file in your report:
>  *  /var/tmp/portage/dev-java/icedtea6-1.2/temp/scanelf-execstack.log
>  * RWX --- --- usr/lib/icedtea6-1.2/jre/lib/i386/server/libjvm.so
>  * RWX --- --- usr/lib/icedtea6-1.2/jre/lib/i386/client/libjvm.so
> 
> 
>  * QA Notice: Package has poor programming practices which may compile
>  *            fine but exhibit random runtime failures.
>  * ../../../src/solaris/native/java/net/Inet4AddressImpl.c:385:
> warning: implicit declaration of function 'gettimeofday'
>  * ../../../src/solaris/native/java/net/Inet6AddressImpl.c:520:
> warning: implicit declaration of function 'gettimeofday'
>  * ../../../src/solaris/native/java/net/Inet4AddressImpl.c:385:
> warning: implicit declaration of function 'gettimeofday'
>  * ../../../src/solaris/native/java/net/Inet6AddressImpl.c:520:
> warning: implicit declaration of function 'gettimeofday'
> 

These are OpenJDK issues that need to be raised with Sun.

Cheers,
-- 
Andrew :)

Support Free Java!
Contribute to GNU Classpath and the OpenJDK
http://www.gnu.org/software/classpath
http://openjdk.java.net
PGP Key: 94EFD9D8 (http://subkeys.pgp.net)
Fingerprint = F8EF F1EA 401E 2E60 15FA  7927 142C 2591 94EF D9D8