[libvirt] 'make check' fails (qemuhotplugTest) with libvirt fakeroot build, starting with 3.1.0 release

Predrag Ivanovic predivan at mts.rs
Mon Mar 6 11:05:58 UTC 2017


On Mon, 06 Mar 2017 07:06:22 +0100
Michal Privoznik wrote:

>This is the problem. fakeroot tells the test that it is running under
>root user therefore it tries to access some dirs there (which is denied
>because of fakeroot). Well, we shouldn't mkdir() from our test suite
>neither - will look into that.
>BTW: why do you run tests under fakeroot? why not run them under your
>regular user?

When I build the libvirt package (or any other package on the system), all stages (configure, make, make check, make install) run under fakeroot, 
for security reasons and to catch if the port is broken so it tries to do something silly :)
I am OK making the exception and building libvirt as root, if that makes your life easier, though, 
it's not that big of the deal.
Or I could just skip the 'make check' altogether, I haven't decided yet.

Pedja




More information about the libvir-list mailing list