Historical bug tracker for the Pacman package manager.
The pacman bug tracker has moved to gitlab:
https://gitlab.archlinux.org/pacman/pacman/-/issues
This tracker remains open for interaction with historical bugs during the transition period. Any new bugs reports will be closed without further action.
The pacman bug tracker has moved to gitlab:
https://gitlab.archlinux.org/pacman/pacman/-/issues
This tracker remains open for interaction with historical bugs during the transition period. Any new bugs reports will be closed without further action.
FS#10226 - Double entries in -Qi "Required by"
Attached to Project:
Pacman
Opened by Thomas Bächler (brain0) - Saturday, 19 April 2008, 17:14 GMT
Last edited by Dan McGee (toofishes) - Tuesday, 08 July 2008, 11:20 GMT
Opened by Thomas Bächler (brain0) - Saturday, 19 April 2008, 17:14 GMT
Last edited by Dan McGee (toofishes) - Tuesday, 08 July 2008, 11:20 GMT
|
DetailsWhen using multiple versioned depends, it is possible that a package shows up more than once in the "Required by" field:
$ pacman -Qi atl2|grep Depends Depends On : kernel26>=2.6.25 kernel26<2.6.26 $ pacman -Qi kernel26|grep Required Required By : atl2 atl2 nvidia nvidia $ |
This task depends upon
Closed by Dan McGee (toofishes)
Tuesday, 08 July 2008, 11:20 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed in git by commit 2122eb1428ac754e9f5d675b4c4fa62b0286d3b6
Tuesday, 08 July 2008, 11:20 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed in git by commit 2122eb1428ac754e9f5d675b4c4fa62b0286d3b6
* A depends on B through n depends <=> A listed in B's requiredby n times
* n == 0 or 1 in almost all cases */
iirc, this was introduced with a patch from Nagy. It should be possible to find the reference on pacman-dev ML about this.
I agree it looks odd, but I still have two minor arguments for the current behavior
1) the implementation is natural. multiple depends satisfied <-> multiple entries in the requiredby list. No additional checks needed.
2) having this equivalence gives more information. in this case we know kernel26 satisfies 2 deps of atl2 and 2 deps of nvidia.
The problem in that in the case of multiple versioned depends, it looks rather stupid.
We were rather thinking about the case of multiple provisions where this info might be more interesting.
In both cases, we don't know the version or the provision satisfied though, just the package name :/
To sum up, here are the possibilities :
1) keep the current behavior, this situation is not that common anyway. and it is an additional info for users who know what it means
2) filter the list. downsides : very minor additional cost, and very minor loss of information, advantages : less confusing for most users
3) store more than just the package name in requiredby list. but that would complicate the code
(sorry for that long comment for such a minor issue, I don't really care. I just thought I could share what I remembered)