Re: java dependency substvars and native compilation

2007-07-20 Thread Florian Weimer
* Arnaud Vandyck: > On 5/11/07, Matthew Johnson <[EMAIL PROTECTED]> wrote: >> On Fri May 11 07:19, Michael Koch wrote: >> > On Thu, May 10, 2007 at 02:11:27PM +0100, Matthew Johnson wrote: >> > > OK, so as an alternative, I have a version which reads the Class-Path: >> > > variable from the jar. >

Re: java dependency substvars and native compilation

2007-07-20 Thread Arnaud Vandyck
On 5/11/07, Michael Koch <[EMAIL PROTECTED]> wrote: [...] We could put into the policy that we need to make sure the Class-Path attribute has a sensible value. This is a very very good idea! I fully support this. -- Arnaud Vandyck -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject

Re: java dependency substvars and native compilation

2007-07-20 Thread Arnaud Vandyck
On 5/11/07, Matthew Johnson <[EMAIL PROTECTED]> wrote: On Fri May 11 07:19, Michael Koch wrote: > On Thu, May 10, 2007 at 02:11:27PM +0100, Matthew Johnson wrote: > > OK, so as an alternative, I have a version which reads the Class-Path: > > variable from the jar. > Setting the Class-Path attribu

Re: java dependency substvars and native compilation

2007-05-11 Thread Florian Weimer
* Matthew Johnson: > It also makes sense for libraries; Java recursively adds the > classpath, so a library which depended on other libraries would have > one so that applications don't have to guess what libraries their > libraries may use. Looking at the spec, this doesn't seem to be required.

Re: java dependency substvars and native compilation

2007-05-11 Thread Michael Koch
On Fri, May 11, 2007 at 06:09:40PM +0100, Matthew Johnson wrote: > On Fri May 11 07:19, Michael Koch wrote: > > On Thu, May 10, 2007 at 02:11:27PM +0100, Matthew Johnson wrote: > > > OK, so as an alternative, I have a version which reads the Class-Path: > > > variable from the jar. This is rather m

Re: java dependency substvars and native compilation

2007-05-11 Thread Matthew Johnson
On Fri May 11 07:19, Michael Koch wrote: > On Thu, May 10, 2007 at 02:11:27PM +0100, Matthew Johnson wrote: > > OK, so as an alternative, I have a version which reads the Class-Path: > > variable from the jar. This is rather more efficient as well. I assume > > upstream's build should set this to s

Re: java dependency substvars and native compilation

2007-05-10 Thread Michael Koch
On Thu, May 10, 2007 at 02:11:27PM +0100, Matthew Johnson wrote: > OK, so as an alternative, I have a version which reads the Class-Path: > variable from the jar. This is rather more efficient as well. I assume > upstream's build should set this to sensible values and that therefore > the packaging

Re: java dependency substvars and native compilation

2007-05-10 Thread Matthew Johnson
On Thu May 03 10:02, Florian Weimer wrote: > * Michael Koch: > > > On Thu, May 03, 2007 at 03:51:11AM +0200, Florian Weimer wrote: > >> * Matthew Johnson: > >> > >> > Two subjects to this mail. Firstly, I had a go at writing a dh_javadeps > >> > which will search for jar files, find the classes t

Re: java dependency substvars and native compilation

2007-05-03 Thread Andrew Haley
Matthew Johnson writes: > Ideally > I'd write (not in bash) a real byte-code parser which can find the class > references properly. $ jcf-dump --print-constants java.lang.Object | grep 'Class name:' #2: Class name: 1="java/lang/Object" #8: Class name: 7="java/lang/Throwable" #18: Class name:

Re: java dependency substvars and native compilation

2007-05-03 Thread Andrew Haley
Paul Cager writes: > * Using the "strings" command seems to me a bit unsafe, in that you > could get false positives if there are (normal) strings that end in > "class". I'm not sure if that is a real-life concern, or just my > over-active imagination. It's unsafe. strings prints the printa

Re: java dependency substvars and native compilation

2007-05-03 Thread Michael Koch
On Thu, May 03, 2007 at 08:45:47AM +0100, Paul Cager wrote: > On Thu, May 3, 2007 12:14 am, Matthew Johnson wrote: > > > > It's a tricky one. A debhelper command in debian/rules is exactly where > > it _ought_ to be. > > I agree; I'm just not sure how feasible it is to make it sufficiently > robus

Re: java dependency substvars and native compilation

2007-05-03 Thread Paul Cager
On Thu, May 3, 2007 12:14 am, Matthew Johnson wrote: > > It's a tricky one. A debhelper command in debian/rules is exactly where > it _ought_ to be. I agree; I'm just not sure how feasible it is to make it sufficiently robust for all cases. On the other hand quite a large proportion of Java packa

Re: java dependency substvars and native compilation

2007-05-03 Thread Florian Weimer
* Michael Koch: > On Thu, May 03, 2007 at 03:51:11AM +0200, Florian Weimer wrote: >> * Matthew Johnson: >> >> > Two subjects to this mail. Firstly, I had a go at writing a dh_javadeps >> > which will search for jar files, find the classes they reference and >> > find the packages they are in. Thi

Re: java dependency substvars and native compilation

2007-05-03 Thread Michael Koch
On Thu, May 03, 2007 at 03:51:11AM +0200, Florian Weimer wrote: > * Matthew Johnson: > > > Two subjects to this mail. Firstly, I had a go at writing a dh_javadeps > > which will search for jar files, find the classes they reference and > > find the packages they are in. This can be found at > > ht

Re: java dependency substvars and native compilation

2007-05-02 Thread Florian Weimer
* Matthew Johnson: > Two subjects to this mail. Firstly, I had a go at writing a dh_javadeps > which will search for jar files, find the classes they reference and > find the packages they are in. This can be found at > http://mjj29.matthew.ath.cx/dh_javadeps It updates $package.substvars so > you

Re: java dependency substvars and native compilation

2007-05-02 Thread Paul Cager
Matthew Johnson wrote: > On Wed May 02 16:54, Michael Koch wrote: >> On Wed, May 02, 2007 at 03:15:39PM +0100, Matthew Johnson wrote: >>> On Wed May 02 15:57, Michael Koch wrote: On Wed, May 02, 2007 at 01:58:46PM +0100, Matthew Johnson wrote: > Two subjects to this mail. Firstly, I had a

Re: java dependency substvars and native compilation

2007-05-02 Thread Matthew Johnson
On Thu May 03 00:00, Paul Cager wrote: > Thanks for submitting this idea - you've reawakened my interest in > compiling a "Java Packagers Wishlist"! > > I think the idea of writing a program to determine Jar dependencies is a > good one, but I'm not sure it can ever be fully automatic, for the >

Re: java dependency substvars and native compilation

2007-05-02 Thread Michael Koch
On Wed, May 02, 2007 at 05:01:27PM +0100, Matthew Johnson wrote: > On Wed May 02 16:54, Michael Koch wrote: > > On Wed, May 02, 2007 at 03:15:39PM +0100, Matthew Johnson wrote: > > > On Wed May 02 15:57, Michael Koch wrote: > > > > On Wed, May 02, 2007 at 01:58:46PM +0100, Matthew Johnson wrote: >

Re: java dependency substvars and native compilation

2007-05-02 Thread Matthew Johnson
On Wed May 02 16:54, Michael Koch wrote: > On Wed, May 02, 2007 at 03:15:39PM +0100, Matthew Johnson wrote: > > On Wed May 02 15:57, Michael Koch wrote: > > > On Wed, May 02, 2007 at 01:58:46PM +0100, Matthew Johnson wrote: > > > > Two subjects to this mail. Firstly, I had a go at writing a dh_java

Re: java dependency substvars and native compilation

2007-05-02 Thread Michael Koch
On Wed, May 02, 2007 at 03:15:39PM +0100, Matthew Johnson wrote: > On Wed May 02 15:57, Michael Koch wrote: > > On Wed, May 02, 2007 at 01:58:46PM +0100, Matthew Johnson wrote: > > > Two subjects to this mail. Firstly, I had a go at writing a dh_javadeps > > > which will search for jar files, find

Re: java dependency substvars and native compilation

2007-05-02 Thread Matthew Johnson
On Wed May 02 15:57, Michael Koch wrote: > On Wed, May 02, 2007 at 01:58:46PM +0100, Matthew Johnson wrote: > > Two subjects to this mail. Firstly, I had a go at writing a dh_javadeps > > which will search for jar files, find the classes they reference and > > find the packages they are in. This ca

Re: java dependency substvars and native compilation

2007-05-02 Thread Michael Koch
On Wed, May 02, 2007 at 01:58:46PM +0100, Matthew Johnson wrote: > Two subjects to this mail. Firstly, I had a go at writing a dh_javadeps > which will search for jar files, find the classes they reference and > find the packages they are in. This can be found at > http://mjj29.matthew.ath.cx/dh_ja

java dependency substvars and native compilation

2007-05-02 Thread Matthew Johnson
Two subjects to this mail. Firstly, I had a go at writing a dh_javadeps which will search for jar files, find the classes they reference and find the packages they are in. This can be found at http://mjj29.matthew.ath.cx/dh_javadeps It updates $package.substvars so you can use ${java:Depends} in co