From: Zac Medico Date: Mon, 23 May 2011 05:59:16 +0000 (-0700) Subject: test_merge_order: add more asap libc deps X-Git-Tag: v2.1.9.50~34 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=59736cd3b6695277dce6337603a6843af9a24fbc;p=portage.git test_merge_order: add more asap libc deps --- diff --git a/pym/portage/tests/resolver/test_merge_order.py b/pym/portage/tests/resolver/test_merge_order.py index 1057300d2..ba3d9b47e 100644 --- a/pym/portage/tests/resolver/test_merge_order.py +++ b/pym/portage/tests/resolver/test_merge_order.py @@ -126,12 +126,15 @@ class MergeOrderTestCase(TestCase): "virtual/libc-0" : { "RDEPEND" : "sys-libs/glibc", }, + "sys-devel/gcc-4.5.2" : {}, + "sys-devel/binutils-2.18" : {}, + "sys-devel/binutils-2.20.1" : {}, "sys-libs/glibc-2.11" : { - "DEPEND" : "virtual/os-headers", + "DEPEND" : "virtual/os-headers sys-devel/gcc sys-devel/binutils", "RDEPEND": "", }, "sys-libs/glibc-2.13" : { - "DEPEND" : "virtual/os-headers", + "DEPEND" : "virtual/os-headers sys-devel/gcc sys-devel/binutils", "RDEPEND": "", }, "virtual/os-headers-0" : { @@ -185,8 +188,9 @@ class MergeOrderTestCase(TestCase): "virtual/libc-0" : { "RDEPEND" : "sys-libs/glibc", }, + "sys-devel/binutils-2.18" : {}, "sys-libs/glibc-2.11" : { - "DEPEND" : "virtual/os-headers", + "DEPEND" : "virtual/os-headers sys-devel/gcc sys-devel/binutils", "RDEPEND": "", }, "virtual/os-headers-0" : { @@ -329,13 +333,15 @@ class MergeOrderTestCase(TestCase): mergelist = ['app-admin/eselect-python-20100321', 'sys-apps/portage-2.1.9.49', 'dev-lang/python-3.2']), # Test that OS_HEADERS_PACKAGE_ATOM and LIBC_PACKAGE_ATOM # are merged asap, in order to account for implicit - # dependencies. See bug #303567. + # dependencies. See bug #303567. Optimally, satisfied deps + # are always merged after the asap nodes that depend on them. ResolverPlaygroundTestCase( - ["app-arch/xz-utils", "sys-kernel/linux-headers", "sys-libs/glibc"], + ["app-arch/xz-utils", "sys-kernel/linux-headers", "sys-devel/binutils", "sys-libs/glibc"], options = {"--complete-graph" : True}, success = True, all_permutations = True, - mergelist = ['sys-kernel/linux-headers-2.6.39', 'sys-libs/glibc-2.13', 'app-arch/xz-utils-5.0.2']), + ambiguous_merge_order = True, + mergelist = ['sys-kernel/linux-headers-2.6.39', 'sys-devel/gcc-4.5.2', 'sys-libs/glibc-2.13', ('app-arch/xz-utils-5.0.2', 'sys-devel/binutils-2.20.1')]), ) playground = ResolverPlayground(ebuilds=ebuilds, installed=installed)