On Sat, Apr 30, 2016 at 10:09 AM, Olivier Sallou <olivier.sal...@irisa.fr> wrote: > > > ----- Mail original ----- >> De: "Andreas Tille" <andr...@an3as.eu> >> À: "Debian Java List" <debian-java@lists.debian.org> >> 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-test FAIL non-zero exit status 2 >> adt-run [03:53:31]: @@@@@@@@@@@@@@@@@@@@ summary >> run-unit-test FAIL 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