Re: Autopkgtest fails when executable is link to JAR
On Sat, 30 Apr 2016 at 12:08 Eugene Zhukovwrote: > > looks strange, trying to execute a jar file directly. Should be > something like java -jar .../artfastqgenerator.jar > > > > I do not understand why a jar file (well its symlink) is in /usr/bin. > Should be a wrapper shell calling java command. > > > artfastqgenerator depends on jarwrapper, which is a wrapper which does > exactly that. > Note that jarwrapper sets up a binfmt-misc handler for running JAR files directly. The binfmt-misc handler probably does not work in the LXC container that ci.debian.net is using to run the tests, hence the failure. As a workaround, you could run `jarwrapper /usr/bin/artfastqgenerator ` directly to execute the JAR in the same way that the binfmt-misc handler would.
Re: Autopkgtest fails when executable is link to JAR
On Sat, Apr 30, 2016 at 10:09 AM, Olivier Sallouwrote: > > > - Mail original - >> De: "Andreas Tille" >> À: "Debian Java List" >> Envoyé: Vendredi 29 Avril 2016 17:11:44 >> Objet: Autopkgtest fails when executable is link to JAR >> >> Hi, >> >> I noticed that the autopkgtest for artfastqgenerator fails[1] with >> >> ... >> emoving adt-satdep (0) ... >> adt-run [03:53:30]: test run-unit-test: [--- >> /usr/bin/artfastqgenerator: 1: /usr/bin/artfastqgenerator: Syntax error: ")" >> unexpected >> adt-run [03:53:30]: test run-unit-test: ---] >> adt-run [03:53:30]: test run-unit-test: - - - - - - - - - - results - - - - >> - - - - - - >> run-unit-testFAIL non-zero exit status 2 >> adt-run [03:53:31]: summary >> run-unit-testFAIL non-zero exit status 2 >> ... >> >> >> I guess this is the case since the executable is just a symlink to the >> JAR file: >> >> $ readlink /usr/bin/artfastqgenerator >> ../share/java/artfastqgenerator.jar >> > looks strange, trying to execute a jar file directly. Should be something > like java -jar .../artfastqgenerator.jar > > I do not understand why a jar file (well its symlink) is in /usr/bin. Should > be a wrapper shell calling java command. > artfastqgenerator depends on jarwrapper, which is a wrapper which does exactly that. Please have a look at e.g. epubcheck package with similar setup. Eugene
Re: Autopkgtest fails when executable is link to JAR
- Mail original - > De: "Andreas Tille"> À: "Debian Java List" > Envoyé: Vendredi 29 Avril 2016 17:11:44 > Objet: Autopkgtest fails when executable is link to JAR > > Hi, > > I noticed that the autopkgtest for artfastqgenerator fails[1] with > > ... > emoving adt-satdep (0) ... > adt-run [03:53:30]: test run-unit-test: [--- > /usr/bin/artfastqgenerator: 1: /usr/bin/artfastqgenerator: Syntax error: ")" > unexpected > adt-run [03:53:30]: test run-unit-test: ---] > adt-run [03:53:30]: test run-unit-test: - - - - - - - - - - results - - - - > - - - - - - > run-unit-testFAIL non-zero exit status 2 > adt-run [03:53:31]: summary > run-unit-testFAIL non-zero exit status 2 > ... > > > I guess this is the case since the executable is just a symlink to the > JAR file: > > $ readlink /usr/bin/artfastqgenerator > ../share/java/artfastqgenerator.jar > looks strange, trying to execute a jar file directly. Should be something like java -jar .../artfastqgenerator.jar I do not understand why a jar file (well its symlink) is in /usr/bin. Should be a wrapper shell calling java command. Olivier > > and inside the lxc container that is used by debci this fails. Is there > any default solution to make the autopkgtest functional? > > Kind regards > >Andreas. > > > [1] > https://ci.debian.net/data/packages/unstable/amd64/a/artfastqgenerator/20160429_035231.autopkgtest.log.gz > > -- > http://fam-tille.de > >