[pacman-dev] handling of provides/conflicts packages
So here's the scenario: mplayer is in current, mplayer-svn is in unstable. mplayer-svn provides and conflicts with mplayer. As is typically the case with packages in current, mplayer has no provides or conflicts for packages outside of current/extra (mplayer-svn in this case). If you have mplayer-svn installed and try to install mplayer, you get the following: $ pacman -S mplayer resolving dependencies... done. looking for inter-conflicts... :: mplayer conflicts with mplayer-svn. Remove mplayer-svn? [Y/n] y done. error: failed to prepare transaction (could not satisfy dependencies) :: mplayer-svn requires acidrip :: mplayer-svn requires mplayer-plugin First off, I think that "done" is probably a bug - mplayer-svn wasn't removed ;-) And secondly, it seems like pacman should be able to handle this swap of mplayer-svn->mplayer even when the mplayer pkgbuild doesn't have the provided/conflicts array set. I mean, if mplayer-svn provides mplayer, doesn't it imply the reverse? I obviously don't understand the technical details, but this behavior seems "broken" to me. Scott
On 3/29/07, Scott Horowitz
$ pacman -S mplayer resolving dependencies... done. looking for inter-conflicts... :: mplayer conflicts with mplayer-svn. Remove mplayer-svn? [Y/n] y done. error: failed to prepare transaction (could not satisfy dependencies) :: mplayer-svn requires acidrip :: mplayer-svn requires mplayer-plugin
First off, I think that "done" is probably a bug - mplayer-svn wasn't removed ;-)
I'll take the easy part- that done is from "looking for inter-conflicts..." and just gets bumped because of the question in the middle of it. -Dan
Hi! A new pactest script would be helpful, or at least plz list the dependencies of mplayer and mplayer-svn, and let us know if acidrip & mplayer-plugin is installed or not. Thx, Nagy Gabor
On 3/29/07, Nagy Gabor
Hi! A new pactest script would be helpful, or at least plz list the dependencies of mplayer and mplayer-svn, and let us know if acidrip & mplayer-plugin is installed or not. Thx, Nagy Gabor
Yes, both acidrip and mplayer-plugin are installed.
$ pacman -Qi mplayer-svn
Name : mplayer-svn
Version : 22796-1
URL : http://www.mplayerhq.hu/
License : GPL
Groups : None
Provides : mplayer
Depends On : libmad libungif cdparanoia gtk2 codecs sdl
xvidcore libjpeg lame libtheora esd faad2 faac
ttf-bitstream-vera libxxf86dga fontconfig libxinerama libxv
libpng libxxf86vm libgl
Removes : None
Required By : acidrip mplayer-plugin
Conflicts With : mplayer
Installed Size : 16326.89 K
Packager : Tom K
Thx again for finding the bug. To the developers: Without looking into the source, I can bet that alpm_depcmp should be used again instead of just checking package names and version. I think it's time to fix this problem in all cases (even if I went wrong.) Some earlier cases: http://archlinux.org/pipermail/pacman-dev/2007-March/002155.html http://archlinux.org/pipermail/pacman-dev/2007-February/001836.html <- fixed Bye, Nagy Gabor
2007/3/30, Nagy Gabor
Thx again for finding the bug. To the developers: Without looking into the source, I can bet that alpm_depcmp should be used again instead of just checking package names and version. I think it's time to fix this problem in all cases (even if I went wrong.) Some earlier cases: http://archlinux.org/pipermail/pacman-dev/2007-March/002155.html http://archlinux.org/pipermail/pacman-dev/2007-February/001836.html <- fixed
Already reported here: http://bugs.archlinux.org/task/6057#comment13216 The bug exists since pacman2. P.S.: sorry for my previous reply to duplicate of original message. -- Roman Kyrylych (Роман Кирилич)
This should fix the wording problem. If it doesn't please smack me 'cause this is the second time I've gone about "fixing" it. Patch is below (git style :P). ~ Jamie / yankees26
From 646ad0429121a4b37033e43ac713d07bdedf6e60 Mon Sep 17 00:00:00 2001 From: James Rosten
Date: Thu, 29 Mar 2007 19:23:46 -0400 Subject: [PATCH] Fixing a wording problem describing dependencies.
Signed-off-by: James Rosten
participants (5)
-
Dan McGee
-
James Rosten
-
Nagy Gabor
-
Roman Kyrylych
-
Scott Horowitz