Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 256870

Summary: sys-apps/portage-2.2_rc23 - inconsistent system state when inter-SLOT upgrade process is terminated (with applied explicit blocks)
Product: Portage Development Reporter: Maciej Mrozowski <reavertm>
Component: CoreAssignee: Portage team <dev-portage>
Status: RESOLVED WORKSFORME    
Severity: normal CC: bkohler, esigra
Priority: High    
Version: 2.2   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 537080    
Bug Blocks: 300071    

Description Maciej Mrozowski gentoo-dev 2009-01-30 01:54:05 UTC
Steps to reproduce:
- install multiple slotted packages - KDE 4.1 is good example (SLOT=4.1 with -kdeprefix so that inter-SLOT upgrade will be applied)
- issue upgrade to KDE 4.2 (SLOT=4.2) - this will applu some blocks and will explicitly cause some packages to be uninstalled (as they are no longer present in 4.2 and wouldn't be uninstalled otherwise)
- terminate process at some point

This will leave (as of now) some duplicated package atoms installed - like (arbitrary example):
kde-base/solid-4.1.4
kde-base/solid-4.2.0
kde-base/libplasmaclock-4.1.4
kde-base/libplasmaclock-4.2.0
as uninstall process for those -4.1.4 has been delayed and upgrade process has been terminated before it got there thus leaving system in a bit inconsistent state. Of course one can fix this by --depclean as 4.1.4 are no longer referenced.

This may not be only inter-SLOT related issue, but just issue related to explicit blocks, are they cause some packages to be explicitly uninistalled.
Comment 1 Maciej Mrozowski gentoo-dev 2011-07-17 17:41:53 UTC
I haven't seen this problem in a while. Maybe close it as worksforme, I'll reopen if it appears again.
Comment 2 Maciej Mrozowski gentoo-dev 2011-07-17 17:42:58 UTC
Well, unless you'd like to provide 'atomic installation' feature...
Comment 3 Zac Medico gentoo-dev 2011-07-17 17:48:52 UTC
There's this fix for executing uninstalls as soon as possible:

http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=6c54b8b0d6d12f40f5172f573d7d030eafeaa9b0

This is a lot less likely to be an issue now that kdeprefix is gone (and all kde-4 packages have moved to SLOT=4).
Comment 4 Zac Medico gentoo-dev 2015-01-19 23:04:40 UTC
*** Bug 537080 has been marked as a duplicate of this bug. ***
Comment 5 Maciej Mrozowski gentoo-dev 2016-08-06 04:17:54 UTC
Haven't seen this in ages. I'll reopen if I ever spot it again.