[Pkg-protobuf-devel] Bug#835514: libprotobuf-java: junit and easymock dependencies should only be required for tests

Markus Koschany apo at debian.org
Fri Aug 26 12:36:00 UTC 2016


Package: libprotobuf-java
Version: 3.0.0-5
Severity: serious
Tags: patch

Hello,

thanks for fixing #835358 so quickly. Unfortunately there is another
issue with the pom.xml file now. java/core/pom.xml lists junit and
easymock artifacts as dependencies but libprotobuf-java does not
depend on these packages. This causes build failures like [1].

libprotobuf-java should either depend on the respective packages or
change the scope to test again as in earlier versions. I think the
latter solution is preferable because junit and easymock are only
needed for tests. If you take a look at version 2.6.1, you will see
that scope test was used before. [2] I don't know why they changed this
but it looks like an upstream bug to me.

I'm attaching a patch that resolves the issue and restores the old
behavior again.

Regards,

Markus

[1] https://bugs.debian.org/835430
[2] https://anonscm.debian.org/cgit/pkg-protobuf/pkg-protobuf.git/tree/java/pom.xml?h=debian/2.6.1-2
-------------- next part --------------
A non-text attachment was scrubbed...
Name: protobuf-java.patch
Type: text/x-diff
Size: 772 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-protobuf-devel/attachments/20160826/450deea9/attachment.patch>


More information about the Pkg-protobuf-devel mailing list