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