Double dependency problem with ${shlibs:Depends}, ${misc:Depends}, etc.
Hi, Since lintian complains about missing ${misc:Depends}, people are adding it to Depends: in debian/control. This is good thing but there could be complication. One example is http://bugs.debian.org/548282 This is causing double dependencies and creating uninstallable set of packages in some cases. In other, just ugly double dependencies. For python-gdata (2.0.7-1) which seems broken today also had: --\ Depends (4) --- python --- python (= 2.5) | python-celementtree | python-elementtree --- python-support (= 0.90.0) --- python2.4 (UNAVAILABLE) This came from Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}, python (= 2.5) | python-celementtree | python-elementtree I do not know why python2.4 was introduced and why we need it. I also think depending both on python and python (= 2.5) looks ugly. This seems to be typical problem happening since lintian recommendation for adding ${misc:Depends}. Is there any best practice guides on this subject? Can someone think of lintian check for this double dependency issue? Osamu -- To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20100228150846.ga5...@osamu.debian.net
Re: Double dependency problem with ${shlibs:Depends}, ${misc:Depends}, etc.
Le lundi 01 mars 2010 à 00:08 +0900, Osamu Aoki a écrit : For python-gdata (2.0.7-1) which seems broken today also had: --\ Depends (4) --- python --- python (= 2.5) | python-celementtree | python-elementtree --- python-support (= 0.90.0) --- python2.4 (UNAVAILABLE) This came from Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}, python (= 2.5) | python-celementtree | python-elementtree I do not know why python2.4 was introduced and why we need it. This is probably because of a broken shebang in a script. Blame setuptools which replaces working shebangs by ones with the Python version hardcoded. I also think depending both on python and python (= 2.5) looks ugly. This is a real dependency. If python version is 2.5 you need to pull the elementtree module. Now that python 2.5 is the default in stable, this could probably be dropped in favor of requiring python = 2.5 and that would be all. This seems to be typical problem happening since lintian recommendation for adding ${misc:Depends}. All these dependencies were added either manually or by ${python:Depends}, not by ${misc:Depends}. -- .''`. Josselin Mouette : :' : `. `' “I recommend you to learn English in hope that you in `- future understand things” -- Jörg Schilling signature.asc Description: Ceci est une partie de message numériquement signée