On Mon, 13 May 2013 01:20, Jan Engelhardt <jengelh@...> wrote:
On Friday 2013-05-10 23:20, Yamaban wrote:
Even more surprising is (on OSS 12.3):
a "rpm -ev --test pango-tools" does not spit out anything, but a "zypper -v rm -D pango-tools" wants to remove half of the system.
Fishy, ain't it?
Not too much.
$ rpm -qRv libpango-1_0-0 post: pango-tools >= 1.31.1
So, libpango has a Requires(post): pango-tools, and since %post of libpango-1_0-0 has already run when you installed it, you are free to remove pango-tools.
Zypper may be over-eagerly thinking ahead when processing your rm request. If pango-tools were gone, then everytime there is an update to libpango-1_0-0, pango-tools would need to be installed first again. (Zypper would take care of that anyway.) But because that is sort of an uphill battle, zypper might just interpret "Requires(post)" as "Requires" - leading to "wants to remove half of the system".
Thanks for looking into that (tips hat to Jan). I deem that fishy as there is no END-USER docu for that. Such a docu belongs at least to the zypper man-page. Undocumented behavior equals bug, not feature. Just the added sentence: ==== docu ==== on requires of packages: "zypper" also looks into weak "Requires", such as "Requires(post)", and may want to install / remove more packages than a direct call of "rpm" would. ==== docu ==== Would demystify much of the behavior of the libsolv / zypper team. For the betterment of end-user understanding this (or similar) should be included, as then we (the packagers) could rightfully say again: "RTFM", atm it's a bug, not feature. - Yamaban. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org