Issue #1935 has been updated by Mike Lococo.

It's not clear to me how to specify a "related issue", but this should be 
resolved as a side-effect of 2198 when that lands as long as the rpm and yum 
providers are handled appropriately.  Circular deps are handled naturally when 
performed as batch operations in both rpm and yum, but until 2198 lands there's 
no way to request a batch-operation except by manually coding an exec.
----------------------------------------
Bug #1935: Unable to handle 2 packages with a circular dependency
http://projects.reductivelabs.com/issues/1935

Author: Hari Sekhon
Status: Accepted
Priority: Low
Assigned to: 
Category: 
Target version: 
Affected version: 0.24.7
Keywords: 
Branch: 


When trying to remove 2 packages with circular dependencies on one another, 
neither is ever removed. This occurs on CentOS 5.2 using the std rpm -e 
operation that puppet defaults to.

The problem is that puppet attempts to remove one package at a time, so it 
fails on one because of the other, and then when it tries to remove the other 
it fails on the first.

There are 2 possible solutions that I can tell:

1. Make a list of all packages to be removed and remove them all in one go in a 
single rpm command (although a single package name typo may prevent all other 
packages from being removed in this case which is not that good)

2. Define a way of specifying that 2 or more packages must be removed 
simultaneously in one command. If you were to do an rpm -e PackageA PackageB 
then rpm is smart enough to actually resolve both deps and remove both, but if 
you only specify one, it will not let you.

Examples of packages with this circular dep behaviour on CentOS 5.2 include:
ypbind <=> yp-tools
ifd-egate <=> pcsc-lite
oddjob <=> oddjob-libs
...
etc

I think a force or a recursive removal through yum should be avoided lest 
people destroy their systems with cascading package deletions.


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://reductivelabs.com/redmine/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to