Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 894472 Details for
Bug 922629
binary coreutils[acl] installed before binary acl, breaking mv and with that further operation
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
test_tar_merge_order.py
file_922629.txt (text/plain), 9.19 KB, created by
Sam James
on 2024-05-26 15:10:20 UTC
(
hide
)
Description:
test_tar_merge_order.py
Filename:
MIME Type:
Creator:
Sam James
Created:
2024-05-26 15:10:20 UTC
Size:
9.19 KB
patch
obsolete
># Copyright 2024 Gentoo Authors ># Distributed under the terms of the GNU General Public License v2 > >import os > >from portage.tests import TestCase >from portage.tests.resolver.ResolverPlayground import ( > ResolverPlayground, > ResolverPlaygroundTestCase, >) > >class TarMergeOrderTestCase(TestCase): > def testTarMergeOrder(self): > """ > Test for bug #922629 where binary app-arch/tar[acl] was merged > before its dependency sys-apps/acl (with virtual/acl merged but > unsatisfied). > > It poorly interacted with @system containing app-alternatives/tar > as a circular dependency on app-arch/tar. > """ > ebuilds = { > "app-alternatives/tar-0-1": { > "EAPI": "8", > "RDEPEND": """ > !<app-arch/tar-1.34-r2 > gnu? ( >=app-arch/tar-1.34-r2 ) > libarchive? ( app-arch/libarchive ) > """, > "IUSE": "+gnu libarchive", > "REQUIRED_USE": "^^ ( gnu libarchive )" > }, > "app-arch/tar-1.35": { > "EAPI": "8", > "RDEPEND": """ > acl? ( virtual/acl ) > """, > "DEPEND": """ > acl? ( virtual/acl ) > xattr? ( sys-apps/attr ) > """, > "BDEPEND": """ > nls? ( sys-devel/gettext ) > """, > "IUSE": "acl nls xattr", > }, > "virtual/acl-0-r2": { > "EAPI": "8", > "RDEPEND": ">=sys-apps/acl-2.2.52-r1", > }, > "sys-devel/gettext-0.22.4": { > "EAPI": "8", > "RDEPEND": """ > acl? ( virtual/acl ) > xattr? ( sys-apps/attr ) > """, > "DEPEND": """ > acl? ( virtual/acl ) > xattr? ( sys-apps/attr ) > """, > "IUSE": "acl nls xattr" > }, > "sys-apps/attr-2.5.2-r1": { > "EAPI": "8", > "BDEPEND": "nls? ( sys-devel/gettext )", > "IUSE": "nls" > }, > "sys-apps/acl-2.3.2-r1": { > "EAPI": "8", > "DEPEND": ">=sys-apps/attr-2.4.47-r1", > "RDEPEND": ">=sys-apps/attr-2.4.47-r1", > "BDEPEND": "nls? ( sys-devel/gettext )", > "IUSE": "nls" > }, > } > > installed = { > "app-alternatives/tar-0-1": { > "EAPI": "8", > "RDEPEND": """ > !<app-arch/tar-1.34-r2 > gnu? ( >=app-arch/tar-1.34-r2 ) > libarchive? ( app-arch/libarchive ) > """, > "IUSE": "+gnu libarchive", > "USE": "gnu", > "REQUIRED_USE": "^^ ( gnu libarchive )" > }, > "app-arch/tar-1.35": { > "EAPI": "8", > "RDEPEND": """ > acl? ( virtual/acl ) > """, > "DEPEND": """ > acl? ( virtual/acl ) > xattr? ( sys-apps/attr ) > """, > "BDEPEND": """ > nls? ( sys-devel/gettext ) > """, > "IUSE": "acl nls xattr", > "USE": "", > }, > "sys-devel/gettext-0.22.4": { > "EAPI": "8", > "RDEPEND": """ > acl? ( virtual/acl ) > xattr? ( sys-apps/attr ) > """, > "DEPEND": """ > acl? ( virtual/acl ) > xattr? ( sys-apps/attr ) > """, > "IUSE": "acl nls xattr", > "USE": "xattr" > }, > "sys-apps/attr-2.5.2-r1": { > "EAPI": "8", > "BDEPEND": "nls? ( sys-devel/gettext )", > "IUSE": "nls", > "USE": "", > }, > } > > binpkgs={ > "app-alternatives/tar-0-1": { > "EAPI": "8", > "RDEPEND": """ > !<app-arch/tar-1.34-r2 > gnu? ( >=app-arch/tar-1.34-r2 ) > libarchive? ( app-arch/libarchive ) > """, > "IUSE": "+gnu libarchive", > "USE": "gnu", > "REQUIRED_USE": "^^ ( gnu libarchive )" > }, > "app-arch/tar-1.35": { > "EAPI": "8", > "RDEPEND": """ > acl? ( virtual/acl ) > """, > "DEPEND": """ > acl? ( virtual/acl ) > xattr? ( sys-apps/attr ) > """, > "BDEPEND": """ > nls? ( sys-devel/gettext ) > """, > "IUSE": "acl nls xattr", > "USE": "acl nls xattr", > }, > "virtual/acl-0-r2": { > "EAPI": "8", > "RDEPEND": ">=sys-apps/acl-2.2.52-r1", > }, > "sys-devel/gettext-0.22.4": { > "EAPI": "8", > "RDEPEND": """ > acl? ( virtual/acl ) > xattr? ( sys-apps/attr ) > """, > "DEPEND": """ > acl? ( virtual/acl ) > xattr? ( sys-apps/attr ) > """, > "IUSE": "acl nls xattr", > "USE": "acl nls xattr" > }, > "sys-apps/attr-2.5.2-r1": { > "EAPI": "8", > "BDEPEND": "nls? ( sys-devel/gettext )", > "IUSE": "nls", > "USE": "nls", > }, > } > > world = [] > > user_config = { > "package.use": ( > "app-arch/tar acl nls xattr", > "sys-apps/acl nls", > "sys-apps/attr nls", > "sys-devel/gettext acl nls xattr", > ), > } > > playground = ResolverPlayground( > ebuilds=ebuilds, > installed=installed, > binpkgs=binpkgs, > world=world, > user_config=user_config, > debug=True > ) > > settings = playground.settings > profile_path = settings.profile_path > with open(os.path.join(profile_path, "packages"), "w") as f: > f.writelines([ > "*app-alternatives/tar\n", > "*app-arch/tar\n" > ]) > > test_cases = ( > # Check without binpkgs first > ResolverPlaygroundTestCase( > ["@world"], > success=True, > options={ > "--emptytree": True, > "--verbose": True > }, > mergelist=[ > "sys-apps/acl-2.3.2-r1", > "virtual/acl-0-r2", > "sys-apps/attr-2.5.2-r1", > "sys-devel/gettext-0.22.4", > "app-arch/tar-1.35", > "app-alternatives/tar-0" > ], > ), > > # In the bug, only --emptytree was broken, so check > # some cases without it. > ResolverPlaygroundTestCase( > ["@world"], > success=True, > options={ > "--usepkg": True, > "--verbose": True, > }, > mergelist=[ > "sys-apps/acl-2.3.2-r1", > "[binary]virtual/acl-0-r2", > "[binary]app-arch/tar-1.35", > "[binary]app-alternatives/tar-0" > ], > ), > ResolverPlaygroundTestCase( > ["app-arch/tar"], > success=True, > options={ > "--oneshot": True, > "--usepkg": True, > "--verbose": True, > }, > mergelist=[ > "sys-apps/acl-2.3.2-r1", > "[binary]virtual/acl-0-r2", > "[binary]app-arch/tar-1.35", > ], > ), > > # binpkg --emptytree case which broke > ResolverPlaygroundTestCase( > ["@world"], > success=True, > options={ > "--emptytree": True, > "--usepkg": True, > "--verbose": True, > }, > mergelist=[ > "[binary]sys-apps/attr-2.5.2-r1", > "[binary]virtual/acl-0-r2", > "[binary]sys-devel/gettext-0.22.4", > "sys-apps/acl-2.3.2-r1", > "[binary]app-arch/tar-1.35", > "[binary]app-alternatives/tar-0" > ], > ), > ) > > try: > for test_case in test_cases: > playground.run_TestCase(test_case) > self.assertEqual(test_case.test_success, True, test_case.fail_msg) > finally: > playground.cleanup()
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 922629
:
882781
|
884435
|
884505
|
884506
|
894430
| 894472