libcommons-lang-java is incorrectly marked as a dependency of libcommons-cli-java

Bug #1235143 reported by picomancer
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libcommons-cli-java (Debian)
Fix Released
Unknown
libcommons-cli-java (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

I'm writing a Java program and I want to use Apache Commons command line parser. I install libcommons-cli-java like this:

$ sudo apt-get install libcommons-cli-java

...
The following extra packages will be installed:
  libcommons-lang-java
...

But none of the code in libcommons-cli-java requires libcommons-lang-java to run. You can easily see this by doing the following:

    mkdir temp
    cd temp
    jar xvf /usr/share/java/commons-cli-1.2.jar
    find . -type f | xargs strings | grep lang | grep -v java/lang
    find . -type f | xargs strings | grep org.apache.commons.lang

(NB class names are actually in class files as org/apache/commons/lang, but the dot character is actually a wildcard in grep, so this command actually does search for what I claim it searches for)

You can see the only occurrence of the string "lang" is in the license; the class files only contain references to java.lang (Java language builtins). There is no mention of org.apache.commons.lang (the Java package provided by libcommons-lang-java)!

Someone should probably report this bug to Debian, since Debian seems to suffer from this problem as well -- see http://packages.debian.org/sid/libcommons-cli-java

James Page (james-page)
Changed in libcommons-cli-java (Ubuntu):
status: New → Triaged
importance: Undecided → Low
Revision history for this message
Hans Joachim Desserud (hjd) wrote :

Thanks for reporting.

I've created a patch for this issue and forwarded to Debian.

tags: added: trusty vivid wily
tags: added: packaging
Changed in libcommons-cli-java (Debian):
status: Unknown → New
Changed in libcommons-cli-java (Debian):
status: New → Fix Released
Revision history for this message
Hans Joachim Desserud (hjd) wrote :

The dependency was removed in 1.3.1-3 which has landed in Debian unstable. Since this package carries some Ubuntu-specific changes, it looks like it will need a merge to get the fix into Ubuntu as well though.

tags: added: need-debian-merge
Revision history for this message
Emmanuel Bourg (ebourg) wrote :

Fixed in xenial.

Changed in libcommons-cli-java (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.