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

Bug 632210

Summary: sys-apps/portage-2.3.10: SlotConflictUpdateTestCase fails with @world
Product: Portage Development Reporter: Zac Medico <zmedico>
Component: Core - Interface (emerge)Assignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal CC: esigra
Priority: Normal Keywords: InVCS
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 155723, 554838, 631448    
Attachments: SlotConflictUpdateTestCase debug log

Description Zac Medico gentoo-dev 2017-09-28 00:33:01 UTC
Created attachment 496788 [details]
SlotConflictUpdateTestCase debug log

While testing a fix for bug 632202, I found that my fix caused SlotConflictUpdateTestCase to fail. Changing the test case as follows also causes it to fail:

diff --git a/pym/portage/tests/resolver/test_slot_conflict_update.py b/pym/portage/tests/resolver/test_slot_conflict_update.py
index 331e5788b..f251d01f1 100644
--- a/pym/portage/tests/resolver/test_slot_conflict_update.py
+++ b/pym/portage/tests/resolver/test_slot_conflict_update.py
@@ -80,7 +80,7 @@ class SlotConflictUpdateTestCase(TestCase):
 			# this behavior makes SlotConflictMaskUpdateTestCase
 			# fail.
 			ResolverPlaygroundTestCase(
-				world,
+				['@world'],
 				all_permutations = True,
 				options = {"--update": True, "--deep": True},
 				success = True,
Comment 1 Zac Medico gentoo-dev 2017-09-29 06:17:07 UTC
It clearly misbehaves in the _solve_non_slot_operator_slot_conflicts method where it keeps boost-1.53.0 but removes the boost-build-1.53.0 that it depends on:

!!! Slot conflict solution:
   Conflict: (/tmp/tmpbbbg_epx/, dev-libs/boost:0)
      keep:   (dev-libs/boost-1.53.0:0/1.53::test_repo, ebuild scheduled for merge)
      keep:   (dev-libs/boost-1.52.0:0/1.52::test_repo, installed)
   Conflict: (/tmp/tmpbbbg_epx/, dev-util/boost-build:0)
      keep:   (dev-util/boost-build-1.52.0:0/0::test_repo, installed)
      remove: (dev-util/boost-build-1.53.0:0/0::test_repo, ebuild scheduled for merge)
Removing package: (dev-util/boost-build-1.53.0:0/0::test_repo, ebuild scheduled for merge)
Comment 4 Zac Medico gentoo-dev 2017-10-02 19:37:20 UTC
Released in 2.3.11.