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

Re: maven-debian-helper and dh's --builddirectory option



Hi,

Am 16.09.19 um 16:54 schrieb Lucas Kanashiro:
> Hi Markus,
> 
> On 14/09/2019 17:06, Markus Koschany wrote:
>> Hi Lucas,
>>
>> Am 13.09.19 um 20:09 schrieb Lucas Kanashiro:
>>> Hi,
>>>
>>> I've recently started to package some java libraries (old versions for a
>>> specific project, not suitable for the Debian archive) and I am facing
>>> an issue when I am building a Maven based project using the dh's
>>> --builddirectory option. When dh_auto_install is executed it calls
>>> mh_resolve_dependencies inside the build directory, but it stops and
>>> waits for user interaction (asking upstream version and so on), even if
>>> it is called with --non-interactive option:
>> Could you upload your package to Git or somewhere else where I can take
>> a look at it?
> 
> There are some workarounds but I think you can have an idea (with this
> version you can reproduce what I reported):
> https://github.com/lucaskanashiro/yetus

I don't know why mh_resolve_dependencies behaves that way. Interestingly
the build doesn't stop for me but normally you shouldn't see the options
because of the --non-interactive flag.

I suggest to modify the package as follows:

Remove all overrides in debian/rules and use

--builddirectory=audience-annotations-component

There is another pom.xml in this directory which includes some important
information from yetus-project/pom.xml

Change the content of debian/libaudience-annotations-java.poms to

audience-annotations-component/pom.xml
audience-annotations-component/audience-annotations/pom.xml --java-lib
yetus-project/pom.xml --no-parent

Add libmaven-enforcer-plugin-java to debian/control, remove rename and
drop the patch.

Then there is still one issue when building the documentation because
jdk.tools.jar cannot be found and the build then enters an infinite
loop. I have never seen this before but it is possibly a bug in
maven-debian-helper. I don't know a solution for that, you could work
around it somehow but I suggest to drop the -doc package because it is
usually expendable and there are only a few classes to document anyway.

Cheers,

Markus

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: