Re: Using java-gcj-compat-dev as build dependency

2007-12-20 Thread Onkar Shinde
On Dec 20, 2007 4:39 PM, Arnaud Vandyck <[EMAIL PROTECTED]> wrote:
> 2007/12/20, Andrew Haley <[EMAIL PROTECTED]>:
> > But the Sun JRE isn't available on all Debian targets.
>
> And building the software with gcj can help to know if there are part
> missing in gcj or if the software uses com.sun.* classes.
>
> If you build with Icedtea/OpenJDK, then, you have to be sure the
> software will run with gcj.

So what is conclusion? We should prefer GCJ as build dependency over
Sun's JDk or OpenJDK/IcedTea, right?
Can we document this somewhere so that new packages follow these guidelines?


Onkar
-- 
Passion - Some people climb mountains - others write Free software.
Don't ask why - the reason is the same.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Using java-gcj-compat-dev as build dependency

2007-12-20 Thread Arnaud Vandyck
2007/12/20, Andrew Haley <[EMAIL PROTECTED]>:
> But the Sun JRE isn't available on all Debian targets.

And building the software with gcj can help to know if there are part
missing in gcj or if the software uses com.sun.* classes.

If you build with Icedtea/OpenJDK, then, you have to be sure the
software will run with gcj.

-- 
Arnaud Vandyck


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Using java-gcj-compat-dev as build dependency

2007-12-20 Thread Andrew Haley
Onkar Shinde writes:
 > On Dec 20, 2007 3:47 PM, Andrew Haley <[EMAIL PROTECTED]> wrote:
 > > Onkar Shinde writes:
 > >  > On Dec 20, 2007 3:23 PM, Arnaud Vandyck <[EMAIL PROTECTED]> wrote:
 > >  > > 2007/12/19, Onkar Shinde <[EMAIL PROTECTED]>:
 > >
 > >  > > > I am a java developer who is learning debian packaging these days. I
 > >  > > > am trying to fix some FTBFS of java related packages in Ubuntu.
 > >  > > >
 > >  > > > Some recent observations:
 > >  > > > 1. I am not sure about Debian but in Ubuntu Sun JDk packages can not
 > >  > > > be installed non-interactively and this causes buold failures.
 > >  > > > 2. For many packages adding java-gcj-compat-dev to 'Build-Depends' 
 > > is
 > >  > > > the first and only thing needed for fixing FTBFS.
 > >  > > >
 > >  > > > Is there any policy regarding which compiler to use.
 > >  > >
 > >  > > java-gcj-compat-dev is used to build *free* java package because it
 > >  > > was the free java alternative and was a primary choice in
 > >  > > Debian/Ubuntu (and I think Fedora).
 > >  > >
 > >  > > I suppose OpenJDK will not require user interaction and I suppose
 > >  > > OpenJDK will be the first choice in a near future.
 > >  > >
 > >  > > You can replace the JDK with java-gcj-compat-dev if you are sure the
 > >  > > software can be built and can run with java-gcj-compat-dev. In other
 > >  > > cases, you'll have to leave Sun's JDK.
 > >  >
 > >  > Right. That is my point. It looks like the packagers use Sun JDK as
 > >  > build dependency without trying to build with GCJ.
 > >  > So if there is any written policy or instruction on wiki that clearly
 > >  > states order of preference as gcj - icedtea - Sun JDK, it will solve
 > >  > many problems.
 > >
 > > It would help to know if there really is a problem building with gcj.
 > > If there is, and it's a gcj bug, we could look at that.  Otherwise you
 > > might be limited to running on only OpenJDK, which greatly restricts
 > > the systems you can run on.
 > 
 > I would say this is partially incorrect statement.
 > Using openjdk/icedtea as build dependency doesn't necessarily mean
 > that you have you use only corresponding JRE for running applications.

 > If the application uses only Java 1.5 (the common denominator these
 > days) code features then we can make sure that it runs on Sun JRE
 > by passing '-target 1.5' argument to compiler.

But the Sun JRE isn't available on all Debian targets.

Andrew.

-- 
Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SL4 
1TE, UK
Registered in England and Wales No. 3798903


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Using java-gcj-compat-dev as build dependency

2007-12-20 Thread Andrew Haley
Onkar Shinde writes:
 > On Dec 20, 2007 3:23 PM, Arnaud Vandyck <[EMAIL PROTECTED]> wrote:
 > > 2007/12/19, Onkar Shinde <[EMAIL PROTECTED]>:

 > > > I am a java developer who is learning debian packaging these days. I
 > > > am trying to fix some FTBFS of java related packages in Ubuntu.
 > > >
 > > > Some recent observations:
 > > > 1. I am not sure about Debian but in Ubuntu Sun JDk packages can not
 > > > be installed non-interactively and this causes buold failures.
 > > > 2. For many packages adding java-gcj-compat-dev to 'Build-Depends' is
 > > > the first and only thing needed for fixing FTBFS.
 > > >
 > > > Is there any policy regarding which compiler to use.
 > >
 > > java-gcj-compat-dev is used to build *free* java package because it
 > > was the free java alternative and was a primary choice in
 > > Debian/Ubuntu (and I think Fedora).
 > >
 > > I suppose OpenJDK will not require user interaction and I suppose
 > > OpenJDK will be the first choice in a near future.
 > >
 > > You can replace the JDK with java-gcj-compat-dev if you are sure the
 > > software can be built and can run with java-gcj-compat-dev. In other
 > > cases, you'll have to leave Sun's JDK.
 > 
 > Right. That is my point. It looks like the packagers use Sun JDK as
 > build dependency without trying to build with GCJ.
 > So if there is any written policy or instruction on wiki that clearly
 > states order of preference as gcj - icedtea - Sun JDK, it will solve
 > many problems.

It would help to know if there really is a problem building with gcj.
If there is, and it's a gcj bug, we could look at that.  Otherwise you
might be limited to running on only OpenJDK, which greatly restricts
the systems you can run on.

Andrew.

-- 
Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SL4 
1TE, UK
Registered in England and Wales No. 3798903


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Using java-gcj-compat-dev as build dependency

2007-12-20 Thread Onkar Shinde
On Dec 20, 2007 3:47 PM, Andrew Haley <[EMAIL PROTECTED]> wrote:
> Onkar Shinde writes:
>  > On Dec 20, 2007 3:23 PM, Arnaud Vandyck <[EMAIL PROTECTED]> wrote:
>  > > 2007/12/19, Onkar Shinde <[EMAIL PROTECTED]>:
>
>  > > > I am a java developer who is learning debian packaging these days. I
>  > > > am trying to fix some FTBFS of java related packages in Ubuntu.
>  > > >
>  > > > Some recent observations:
>  > > > 1. I am not sure about Debian but in Ubuntu Sun JDk packages can not
>  > > > be installed non-interactively and this causes buold failures.
>  > > > 2. For many packages adding java-gcj-compat-dev to 'Build-Depends' is
>  > > > the first and only thing needed for fixing FTBFS.
>  > > >
>  > > > Is there any policy regarding which compiler to use.
>  > >
>  > > java-gcj-compat-dev is used to build *free* java package because it
>  > > was the free java alternative and was a primary choice in
>  > > Debian/Ubuntu (and I think Fedora).
>  > >
>  > > I suppose OpenJDK will not require user interaction and I suppose
>  > > OpenJDK will be the first choice in a near future.
>  > >
>  > > You can replace the JDK with java-gcj-compat-dev if you are sure the
>  > > software can be built and can run with java-gcj-compat-dev. In other
>  > > cases, you'll have to leave Sun's JDK.
>  >
>  > Right. That is my point. It looks like the packagers use Sun JDK as
>  > build dependency without trying to build with GCJ.
>  > So if there is any written policy or instruction on wiki that clearly
>  > states order of preference as gcj - icedtea - Sun JDK, it will solve
>  > many problems.
>
> It would help to know if there really is a problem building with gcj.
> If there is, and it's a gcj bug, we could look at that.  Otherwise you
> might be limited to running on only OpenJDK, which greatly restricts
> the systems you can run on.

I would say this is partially incorrect statement.
Using openjdk/icedtea as build dependency doesn't necessarily mean
that you have you use only corresponding JRE for running applications.

If the application uses only Java 1.5 (the common denominator these
days) code features then we can make sure that it runs on Sun JRE by
passing '-target 1.5' argument to compiler. This way even if you use
openjdk for build dependency you can still use Sun JRE as runtime
dependency. I have no idea about GIJ compliance with Java 1.5 APIs so
I will not comment about that.


Regards,
Onkar
-- 
Passion - Some people climb mountains - others write Free software.
Don't ask why - the reason is the same.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Using java-gcj-compat-dev as build dependency

2007-12-20 Thread Onkar Shinde
On Dec 20, 2007 3:23 PM, Arnaud Vandyck <[EMAIL PROTECTED]> wrote:
> 2007/12/19, Onkar Shinde <[EMAIL PROTECTED]>:
> > Hi all,
> >
> > I am a java developer who is learning debian packaging these days. I
> > am trying to fix some FTBFS of java related packages in Ubuntu.
> >
> > Some recent observations:
> > 1. I am not sure about Debian but in Ubuntu Sun JDk packages can not
> > be installed non-interactively and this causes buold failures.
> > 2. For many packages adding java-gcj-compat-dev to 'Build-Depends' is
> > the first and only thing needed for fixing FTBFS.
> >
> > Is there any policy regarding which compiler to use.
>
> java-gcj-compat-dev is used to build *free* java package because it
> was the free java alternative and was a primary choice in
> Debian/Ubuntu (and I think Fedora).
>
> I suppose OpenJDK will not require user interaction and I suppose
> OpenJDK will be the first choice in a near future.
>
> You can replace the JDK with java-gcj-compat-dev if you are sure the
> software can be built and can run with java-gcj-compat-dev. In other
> cases, you'll have to leave Sun's JDK.

Right. That is my point. It looks like the packagers use Sun JDK as
build dependency without trying to build with GCJ.
So if there is any written policy or instruction on wiki that clearly
states order of preference as gcj - icedtea - Sun JDK, it will solve
many problems.



Onkar
-- 
Passion - Some people climb mountains - others write Free software.
Don't ask why - the reason is the same.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Using java-gcj-compat-dev as build dependency

2007-12-20 Thread Arnaud Vandyck
2007/12/19, Onkar Shinde <[EMAIL PROTECTED]>:
> Hi all,
>
> I am a java developer who is learning debian packaging these days. I
> am trying to fix some FTBFS of java related packages in Ubuntu.
>
> Some recent observations:
> 1. I am not sure about Debian but in Ubuntu Sun JDk packages can not
> be installed non-interactively and this causes buold failures.
> 2. For many packages adding java-gcj-compat-dev to 'Build-Depends' is
> the first and only thing needed for fixing FTBFS.
>
> Is there any policy regarding which compiler to use.

java-gcj-compat-dev is used to build *free* java package because it
was the free java alternative and was a primary choice in
Debian/Ubuntu (and I think Fedora).

I suppose OpenJDK will not require user interaction and I suppose
OpenJDK will be the first choice in a near future.

You can replace the JDK with java-gcj-compat-dev if you are sure the
software can be built and can run with java-gcj-compat-dev. In other
cases, you'll have to leave Sun's JDK.

Cheers,

-- 
Arnaud Vandyck


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]