[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Backporting gradle or fixing ant build.xml for libejml-java



Hi,

I would like to package qualimap[1] for the Debian Med team (questions
for this one will follow).  There is a missing dependency libejml-java
which i prepared in pkg-java Git[2].

Upstream README.md says:

  Gradle is the official build environment for EJML.

and I succeeded building the package with gradle.  However, I need to
backport the package to Jessie and if I try to build the existing
packaging in Git under Jessie this ends quickly with:

...
   debian/rules override_dh_auto_build
make[1]: Entering directory '/home/tillea/debian-maintain/alioth/pkg-java/build-area/libejml-java-0.28'
dh_auto_build -- oneJar

Unknown command-line option '--console'.

USAGE: gradle [option...] [task...]

-?, -h, --help          Shows this help message.
-a, --no-rebuild        Do not rebuild project dependencies.
-b, --build-file        Specifies the build file.
-C, --cache             Specifies how compiled build scripts should be cached. Possible values are: 'rebuild' and 'on'. Default value is 'on' [deprecated - Use '--rerun-tasks' or '--recompile-scripts' instead]
-c, --settings-file     Specifies the settings file.
--configure-on-demand   Only relevant projects are configured in this build run. This means faster build for large multi-project builds. [incubating]
--continue              Continues task execution after a task failure.
-D, --system-prop       Set system property of the JVM (e.g. -Dmyprop=myvalue).
-d, --debug             Log in debug mode (includes normal stacktrace).
...
-x, --exclude-task      Specify a task to be excluded from execution.

dh_auto_build: gradle --info --console plain --offline --stacktrace --no-daemon --refresh-dependencies --gradle-user-home .gradle oneJar returned exit code 1
debian/rules:9: recipe for target 'override_dh_auto_build' failed
make[1]: *** [override_dh_auto_build] Error 1


I'm wild guessing that Jessies gradle (1.5-2) is lacking some features
compared to testing (2.5-3) / unstable (2.7-1).  I wonder what might be
the more straigthforward approach to get the package prepared for Jessie
which could be either by backporting gradle (which I'm a bit afraid of)
or trying to fix the build.xml (since there is such a file which seems
to be simply unmaintained:


$ ant
Buildfile: /home/tillea/debian-maintain/alioth/pkg-java/build-area/libejml-java-0.28/build.xml

clean:
   [delete] Deleting directory /home/tillea/debian-maintain/alioth/pkg-java/build-area/libejml-java-0.28/build

compile:
    [mkdir] Created dir: /home/tillea/debian-maintain/alioth/pkg-java/build-area/libejml-java-0.28/build/classes

BUILD FAILED
/home/tillea/debian-maintain/alioth/pkg-java/build-area/libejml-java-0.28/build.xml:43: srcdir "/home/tillea/debian-maintain/alioth/pkg-java/build-area/libejml-java-0.28/src" does not exist!


Ant is right that there is no such dir which might have existed before
the switch to gradle.


Any hints what might be the more sensible option to get libejml-java
also build for Jessie?

BTW, I'd be happy if somebody from Debian Java would take over the
packaging as Uploader.

Kind regards

       Andreas.


[1] http://qualimap.bioinfo.cipf.es/
[2] git://anonscm.debian.org/pkg-java/libejml-java.git

--
http://fam-tille.de


Reply to: