Package: libcommons-cli-java
Version: 1.3.1-2
Tags: patch

Dear maintainer,

I discovered a bug report against Ubuntu [1] saying that
libcommons-cli-java unnecessarily depends on libcommons-lang-java.
After some digging I found an older, opposite bug report [2] in
Debian, from when the dependency was added.

When I grep through the package repo I cannot find any usage of
commons-lang in the current source code. In fact, if I'm reading
src/changes/changes.xml [3] correctly, it was removed from upstream
in version 1.1.

Thus, I believe this dependency can be removed from
libcommons-cli-java, and I have attached a patch which does so.
Two small notes:
1) I have built this locally, but since one of the other dependencies
pulls in libcommons-lang-java, it is hard to verify whether it builds
successfully without this package installed.
2) This might have consequences for reverse-dependencies which are
used to get libcommons-lang-java for free when depending on
libcommons-cli-java. So some of them might need an explicit
commons-lang dependency now, what would be the best approach to
inspect this?

[1] https://bugs.launchpad.net/ubuntu/+source/libcommons-cli-java/+bug/1235143
[2] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=445508
[3] http://anonscm.debian.org/cgit/pkg-java/libcommons-cli-java.git/tree/src/changes/changes.xml

--
mvh / best regards
Hans Joachim Desserud
http://desserud.org
diff --git a/debian/control b/debian/control
index e09261d..25e16df 100644
--- a/debian/control
+++ b/debian/control
@@ -13,7 +13,6 @@ Build-Depends: debhelper (>= 9),
  maven-debian-helper,
  maven-repo-helper,
  libmaven-assembly-plugin-java,
- libcommons-lang-java (>= 2.0),
  junit4
 Standards-Version: 3.9.6
 Vcs-Git: git://anonscm.debian.org/pkg-java/libcommons-cli-java.git
@@ -22,7 +21,7 @@ Homepage: http://commons.apache.org/cli/
 
 Package: libcommons-cli-java
 Architecture: all
-Depends: ${misc:Depends}, libcommons-lang-java (>= 2.0)
+Depends: ${misc:Depends}
 Description: API for working with the command line arguments and options
  You define arguments you want to parse, parse arguments the user
  entered and then you can retrieve them like properties

Reply via email to