Re: jarwrapper dependency

2013-07-15 Thread Eugene Zhukov
On Tue, Jul 16, 2013 at 1:15 AM, Matthew Johnson wrote: > On Mon Jul 15 14:16, Eugene Zhukov wrote: >> > >> > Many thanks, Matt! I finally solved it by adding the following to d/rules >> > install/epubcheck:: >> > chmod +x debian/epubcheck/usr/share/java/epubcheck.jar >> > >> > Not sure ho

Re: jarwrapper dependency

2013-07-15 Thread Matthew Johnson
On Mon Jul 15 14:16, Eugene Zhukov wrote: > > > > Many thanks, Matt! I finally solved it by adding the following to d/rules > > install/epubcheck:: > > chmod +x debian/epubcheck/usr/share/java/epubcheck.jar > > > > Not sure how to use jh_exec or dh overrides here, since the package is > > d

Re: jarwrapper dependency

2013-07-15 Thread Niels Thykier
On 2013-07-15 13:16, Eugene Zhukov wrote: > [...] > Btw, how to get rid of Lintian warning now? > W: epubcheck: executable-not-elf-or-script usr/share/java/epubcheck.jar > > You don't - there is an outstanding Lintian<->debian-policy bug about it. Either ignore or override the tag. ~Niels -

Re: jarwrapper dependency

2013-07-15 Thread Eugene Zhukov
On Mon, Jul 15, 2013 at 1:57 PM, Eugene Zhukov wrote: > On Mon, Jul 15, 2013 at 12:58 PM, Matthew Johnson wrote: >> On Mon Jul 15 10:15, Eugene Zhukov wrote: >>> > Does this work: >>> > >>> > $ /usr/share/java/epubcheck.jar >>> Yes, it does. Like I said >>> java -jar /usr/share/java/epubcheck.jar

Re: jarwrapper dependency

2013-07-15 Thread Eugene Zhukov
On Mon, Jul 15, 2013 at 12:58 PM, Matthew Johnson wrote: > On Mon Jul 15 10:15, Eugene Zhukov wrote: >> > Does this work: >> > >> > $ /usr/share/java/epubcheck.jar >> Yes, it does. Like I said >> java -jar /usr/share/java/epubcheck.jar >> works just fine. > > No, I meant calling it directly (see b

Re: jarwrapper dependency

2013-07-15 Thread Matthew Johnson
On Mon Jul 15 10:15, Eugene Zhukov wrote: > > Does this work: > > > > $ /usr/share/java/epubcheck.jar > Yes, it does. Like I said > java -jar /usr/share/java/epubcheck.jar > works just fine. No, I meant calling it directly (see below) > > when you say "it's displayed in red", do you mean the targ

Re: jarwrapper dependency

2013-07-15 Thread Eugene Zhukov
On Fri, Jul 12, 2013 at 1:36 PM, Matthew Johnson wrote: > On Thu Jul 11 18:07, Eugene Zhukov wrote: >> >> I can see (red) link created under /usr/bin to my jar, like this: >> >> lrwxrwxrwx 1 root root 27 Jul 8 08:55 epubcheck -> >> >> ../share/java/epubcheck.jar >> > >> > If the link i

Re: jarwrapper dependency

2013-07-12 Thread Matthew Johnson
On Thu Jul 11 18:07, Eugene Zhukov wrote: > >> I can see (red) link created under /usr/bin to my jar, like this: > >> lrwxrwxrwx 1 root root 27 Jul 8 08:55 epubcheck -> > >> ../share/java/epubcheck.jar > > > > If the link is displayed in red then it doesn't actually link to something >

Re: jarwrapper dependency

2013-07-11 Thread Eugene Zhukov
On Thu, Jul 11, 2013 at 3:16 PM, Matthew Johnson wrote: > On Wed Jul 10 17:39, Eugene Zhukov wrote: >> >> >> java -jar /usr/share/java/foobar. >> >> > >> >> > So.. what's not working? jarwrapper is installed when you install the >> >> > package? >> >> Yes >> >> > The symlink to the jar is on your

Re: jarwrapper dependency

2013-07-11 Thread Matthew Johnson
On Wed Jul 10 17:39, Eugene Zhukov wrote: > >> >> java -jar /usr/share/java/foobar. > >> > > >> > So.. what's not working? jarwrapper is installed when you install the > >> > package? > >> Yes > >> > The symlink to the jar is on your path? > >> Yes > >> > The jar runs with java -jar? > >> Yes > >>

Re: jarwrapper dependency

2013-07-10 Thread Eugene Zhukov
On Wed, Jul 10, 2013 at 5:17 PM, Matthew Johnson wrote: > On Mon Jul 08 12:05, Eugene Zhukov wrote: >> >> > So, you have the dependency in the binary package, you have the >> >> > symlink. Is the >> >> > jar executable? You must do that for binfmt_misc to even try doing >> >> > anything. >> >> >

Re: jarwrapper dependency

2013-07-10 Thread Matthew Johnson
On Mon Jul 08 12:05, Eugene Zhukov wrote: > >> > So, you have the dependency in the binary package, you have the symlink. > >> > Is the > >> > jar executable? You must do that for binfmt_misc to even try doing > >> > anything. > >> > Your options are manually setting it to executable, or calling

Re: jarwrapper dependency

2013-07-08 Thread Eugene Zhukov
Sorry, couldn't replay earlier, was on holiday and away from PC. On Fri, Jun 21, 2013 at 12:22 PM, Matthew Johnson wrote: > On Thu Jun 20 16:25, Eugene Zhukov wrote: >> >> Yes, it is copied and appears now in Depends. With foobar.links I even >> >> get the link /usr/bin/foobar -> ../share/java/foo

Re: jarwrapper dependency

2013-06-21 Thread Matthew Johnson
On Thu Jun 20 16:25, Eugene Zhukov wrote: > >> Yes, it is copied and appears now in Depends. With foobar.links I even > >> get the link /usr/bin/foobar -> ../share/java/foobar.jar, but it > >> doesn't work still. > > > > So, you have the dependency in the binary package, you have the symlink. Is

Re: jarwrapper dependency

2013-06-20 Thread Matthew Johnson
On Thu Jun 20 14:39, Eugene Zhukov wrote: > >> > I don't know how mh-make works, but yes, you have to run bits from > >> > javahelper > >> > to have that happen automatically. You could always just set the jar > >> > executable > >> > and add jarwrapper to your dependency list manually - that's a

Re: jarwrapper dependency

2013-06-20 Thread Eugene Zhukov
On Thu, Jun 20, 2013 at 12:55 PM, Matthew Johnson wrote: > On Thu Jun 20 08:22, Eugene Zhukov wrote: >> On Thu, Jun 20, 2013 at 2:15 AM, Matthew Johnson wrote: >> > On Wed Jun 19 15:04, Eugene Zhukov wrote: >> >> >> Otherwise you are missing the manifest pointing to the main-class. >> >> > Yes, i

Re: jarwrapper dependency

2013-06-20 Thread Matthew Johnson
On Thu Jun 20 08:22, Eugene Zhukov wrote: > On Thu, Jun 20, 2013 at 2:15 AM, Matthew Johnson wrote: > > On Wed Jun 19 15:04, Eugene Zhukov wrote: > >> >> Otherwise you are missing the manifest pointing to the main-class. > >> > Yes, it works. In fact with d/foobar.links the link gets created, but

Re: jarwrapper dependency

2013-06-19 Thread Eugene Zhukov
On Thu, Jun 20, 2013 at 2:15 AM, Matthew Johnson wrote: > On Wed Jun 19 15:04, Eugene Zhukov wrote: >> >> Otherwise you are missing the manifest pointing to the main-class. >> > Yes, it works. In fact with d/foobar.links the link gets created, but >> > doesn't work (complains about permissions) no

Re: jarwrapper dependency

2013-06-19 Thread Matthew Johnson
On Wed Jun 19 15:04, Eugene Zhukov wrote: > >> Otherwise you are missing the manifest pointing to the main-class. > > Yes, it works. In fact with d/foobar.links the link gets created, but > > doesn't work (complains about permissions) nor jarwrapper dependency > > is added. > > Any other ideas how

Re: jarwrapper dependency

2013-06-19 Thread Eugene Zhukov
On Wed, Jun 19, 2013 at 10:39 AM, Eugene Zhukov wrote: > On Wed, Jun 19, 2013 at 10:34 AM, Mathieu Malaterre wrote: >> On Wed, Jun 19, 2013 at 9:28 AM, Eugene Zhukov wrote: >>> On Wed, Jun 19, 2013 at 10:02 AM, Mathieu Malaterre >>> wrote: On Wed, Jun 19, 2013 at 8:03 AM, Eugene Zhukov

Re: jarwrapper dependency

2013-06-19 Thread Eugene Zhukov
On Wed, Jun 19, 2013 at 10:34 AM, Mathieu Malaterre wrote: > On Wed, Jun 19, 2013 at 9:28 AM, Eugene Zhukov wrote: >> On Wed, Jun 19, 2013 at 10:02 AM, Mathieu Malaterre wrote: >>> On Wed, Jun 19, 2013 at 8:03 AM, Eugene Zhukov wrote: Hello, How to add jarwrapper dependency (func

Re: jarwrapper dependency

2013-06-19 Thread Mathieu Malaterre
On Wed, Jun 19, 2013 at 9:28 AM, Eugene Zhukov wrote: > On Wed, Jun 19, 2013 at 10:02 AM, Mathieu Malaterre wrote: >> On Wed, Jun 19, 2013 at 8:03 AM, Eugene Zhukov wrote: >>> Hello, >>> >>> How to add jarwrapper dependency (functionality) to a package >>> debianized with mh_make? >>> Simply add

Re: jarwrapper dependency

2013-06-19 Thread Eugene Zhukov
On Wed, Jun 19, 2013 at 10:02 AM, Mathieu Malaterre wrote: > On Wed, Jun 19, 2013 at 8:03 AM, Eugene Zhukov wrote: >> Hello, >> >> How to add jarwrapper dependency (functionality) to a package >> debianized with mh_make? >> Simply adding it to depends in d/control seems to have no effect. > > Her

Re: jarwrapper dependency

2013-06-19 Thread Mathieu Malaterre
On Wed, Jun 19, 2013 at 8:03 AM, Eugene Zhukov wrote: > Hello, > > How to add jarwrapper dependency (functionality) to a package > debianized with mh_make? > Simply adding it to depends in d/control seems to have no effect. Here is what I did in jiipview: $ cat debian/jiipview.links usr/share/ja