https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: app-emulation/libvirt-10.3.0 fails tests. Discovered on: amd64 (internal ref: ci) Info about the issue: https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0015
Created attachment 892183 [details] build.log.xz build log and emerge --info (compressed because it exceeds attachment limit, use 'xzless' to read it)
Created attachment 892184 [details] 1-testlog.txt.xz 1-testlog.txt (compressed because it exceeds attachment limit, use 'xzless' to read it)
Error(s) that match a know pattern in addition to what has been reported in the summary: 119/129 libvirt:bin / libvirtd fail with missing config EXPECTEDFAIL 0.10s exit status 1 126/129 libvirt:bin / virshtest FAIL 2.12s exit status 1 126/129 libvirt:bin / virshtest FAIL 2.12s exit status 1 Actual [error: Failed to create '/var/lib/portage/home/.cache/libvirt/virsh': Permission denied ... FAILED Program augparse found: NO Program black found: NO Program flake8 found: NO Program iscsiadm found: NO Program mdevctl found: NO Program mm-ctl found: NO Program ovs-vsctl found: NO Program pdwtags found: NO Program pytest found: NO Program showmount found: NO Program slirp-helper found: NO Run-time dependency devmapper found: NO (tried pkgconfig and cmake) Run-time dependency fuse3 found: NO (tried pkgconfig and cmake) Run-time dependency libiscsi found: NO (tried pkgconfig and cmake) Run-time dependency parallels-sdk found: NO (tried pkgconfig and cmake) Actual [error: Failed to create '/var/lib/portage/home/.cache/libvirt/virsh': Permission denied
It should use ${T} as HOME during tests.
That can be workaround, but in fact it's a libvirt bug. libvirt's test suite (or any other for that matter) should NOT touch host's real data or anything outside build/src dirs. I was buried with some other work yesterday, but I'll try to post patches soon.
Oh, yes, of course - thank you!
Patch posted onto the libvirt's upstream list: https://lists.libvirt.org/archives/list/devel@lists.libvirt.org/thread/IJRBXYFQNV3E2QFVUGKUUXIDX3OQQ6FK/ I'll backport it once it's merged.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=726b7b95509b9582694a8ae4a755922196ab7010 commit 726b7b95509b9582694a8ae4a755922196ab7010 Author: Michal Privoznik <michal.privoznik@gmail.com> AuthorDate: 2024-05-06 11:47:30 +0000 Commit: Joonas Niilola <juippis@gentoo.org> CommitDate: 2024-05-10 07:54:20 +0000 app-emulation/libvirt: 10.3.0: Fix virshtest failure In libvirt-10.3.0 the virshtest was rewritten and unfortunately, it caused a bug in which it tried to access user's $HOME. Backport the upstream fix to make the test pass again. Closes: https://bugs.gentoo.org/931109 Signed-off-by: Michal Privoznik <michal.privoznik@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/36584 Signed-off-by: Joonas Niilola <juippis@gentoo.org> ...3.0-vsh-Don-t-init-history-in-cmdComplete.patch | 84 ++++++++++++++++++++++ ...virt-10.3.0.ebuild => libvirt-10.3.0-r1.ebuild} | 1 + 2 files changed, 85 insertions(+)