[Debian-med-packaging] Backporting gradle or fixing ant build.xml for libejml-java

Andreas Tille andreas at an3as.eu
Tue Nov 17 10:08:02 UTC 2015


Hi Emmanuel,

On Mon, Nov 16, 2015 at 05:19:05PM +0100, Emmanuel Bourg wrote:
> > Unknown command-line option '--console'.
> 
> I guess you backported gradle-debian-helper to Jessie too?

I simply tested on a Jessie machine installing gradle-debian-helper from
testing on it.  May be it is sufficient to simply backport
gradle-debian-helper?

> In this case
> just remove the --console parameter in gradle.pm [1] and it will work
> better.

I commited a jessie-backports branch to gradle-debian-helper where I
implemented your suggested change[2].  Unfortunately this seems not be
sufficient:

...
Analysing gradle-dependency-placeholder/pom.xml...
> dpkg --search /usr/share/maven-repo/org/gradle/gradle-base-services/*/* 
dpkg failed to execute successfully
Offline mode. Give up looking for package containing /usr/share/maven-repo/org/gradle/gradle-base-services
Nov 17, 2015 9:54:32 AM org.debian.maven.packager.DependenciesSolver$ToResolve resolve
SEVERE: Cannot resolve dependencies in ./gradle-helper-plugin/pom.xml: Dependency not found org.gradle:gradle-base-services:jar:2.5
ERROR:
pom.xml: dependency is not packaged in the Maven repository for Debian: org.gradle:gradle-base-services:2.5
--------
Some problems were found in this project, exiting...
...


I admit simply backporting the gradle debhelper would solve my problem
quite elegantly since I think the final target libejml-java[3] does not
depend from any specific gradle version (at least I can not find it in
the docs).

In case it might turn out to complicated to port gradle-debian-helper is
there any chance to override dh_auto_build with a gradle call that works
under Jessie as well?  (As I said in my initial mail I definitely need
to backport the resulting package to Jessie once it might be available
in testing - which does not seem to become clear to every reader.)

Emmanuel, thanks for your always prompt and helpful responses when I
have some Java issues

       Andreas.

> [1]
> https://sources.debian.net/src/gradle-debian-helper/1.1/gradle-helper-plugin/src/main/perl/gradle.pm/#L26
[2] https://anonscm.debian.org/cgit/pkg-java/gradle-debian-helper.git/tree/debian/patches/jessie-backport.patch?h=jessie-backports
[3] git://anonscm.debian.org/pkg-java/libejml-java.git

-- 
http://fam-tille.de



More information about the Debian-med-packaging mailing list