Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 880693 - sys-apps/pkgcore-0.12.17 fails tests
Summary: sys-apps/pkgcore-0.12.17 fails tests
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: PkgCore project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-10 06:52 UTC by Agostino Sarubbo
Modified: 2022-11-10 19:22 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log.xz (build.log.xz,54.84 KB, application/x-xz)
2022-11-10 06:52 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2022-11-10 06:52:53 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: sys-apps/pkgcore-0.12.17 fails tests.
Discovered on: amd64 (internal ref: ci)
Comment 1 Agostino Sarubbo gentoo-dev 2022-11-10 06:52:56 UTC
Created attachment 830263 [details]
build.log.xz

build log and emerge --info (compressed because it exceeds attachment limit, use 'xzless' to read it)
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-11-10 06:55:21 UTC
FAILED tests/ebuild/test_portage_conf.py::TestMakeConf::test_load_defaults - ...
FAILED tests/ebuild/test_portage_conf.py::TestMakeConf::test_overrides_incrementals
FAILED tests/ebuild/test_portage_conf.py::TestMakeConf::test_load_make_conf_dir
FAILED tests/ebuild/test_portage_conf.py::TestReposConf::test_load_defaults
FAILED tests/ebuild/test_portage_conf.py::TestReposConf::test_load_repos_conf_dir
FAILED tests/ebuild/test_repository.py::TestUnconfiguredTree::test_path_restrict
FAILED tests/ebuild/test_repository.py::TestSlavedTree::test_path_restrict - ...
===== 7 failed, 1219 passed, 6 skipped, 2 deselected, 7 warnings in 42.79s =====
 * ERROR: sys-apps/pkgcore-0.12.17::gentoo failed (test phase):
 *   pytest failed with python3.9
 * 

----
Comment 3 Arthur Zamarin archtester Gentoo Infrastructure gentoo-dev Security 2022-11-10 18:37:41 UTC
OK, I see the origin for the failure, it is because of the sed line, and it fails when pkgcore isn't installed at all before hand.
Comment 4 Larry the Git Cow gentoo-dev 2022-11-10 19:17:56 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/pkgcore/pkgcore.git/commit/?id=cdcb2e592c011254b55f5261ffc7b2c827b7c2ef

commit cdcb2e592c011254b55f5261ffc7b2c827b7c2ef
Author:     Arthur Zamarin <arthurzam@gentoo.org>
AuthorDate: 2022-11-10 19:17:00 +0000
Commit:     Arthur Zamarin <arthurzam@gentoo.org>
CommitDate: 2022-11-10 19:17:00 +0000

    _const: fallback to sys.base_prefix when installed in venv
    
    Bug: https://bugs.gentoo.org/880693
    Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>

 py_build.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
Comment 5 Larry the Git Cow gentoo-dev 2022-11-10 19:22:19 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=82a820e1928aec58b1850addfb7767e5de14edf9

commit 82a820e1928aec58b1850addfb7767e5de14edf9
Author:     Arthur Zamarin <arthurzam@gentoo.org>
AuthorDate: 2022-11-10 19:18:38 +0000
Commit:     Arthur Zamarin <arthurzam@gentoo.org>
CommitDate: 2022-11-10 19:20:25 +0000

    sys-apps/pkgcore: fix sys.prefix testing
    
    Closes: https://bugs.gentoo.org/880693
    Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>

 .../pkgcore/files/pkgcore-0.12.17-fix-prefix.patch     | 18 ++++++++++++++++++
 ...kgcore-0.12.17.ebuild => pkgcore-0.12.17-r1.ebuild} | 15 +++------------
 sys-apps/pkgcore/pkgcore-9999.ebuild                   | 15 +--------------
 3 files changed, 22 insertions(+), 26 deletions(-)