[libvirt] question about libvirt.spec

Jim Fehlig jfehlig at suse.com
Tue Dec 3 20:40:38 UTC 2013


While installing a libvirt-daemon package build from a slightly modified
upstream spec file (e.g. fedora and rhel replaced with suse_version and
sles_version), I noticed warnings such as "warning: user qemu does not
exist - using root".

%files of libvirt-daemon has several hypervisor-specific files and
directories, e.g.

  %dir %attr(0750, %{qemu_user}, %{qemu_group}) ...

but afaict libvirt-daemon has no dependency on a package that creates
the qemu user:group (e.g. qemu or qemu-kvm).

I thought about moving hypervisor-specific files to the
libvirt-daemon-driver-<hypervisor> packages, but have a hunch they are
in the libvirt-daemon package for a reason I'm not considering.  Should
these files and directories be moved to their respective
libvirt-daemon-driver-<hypervisor> packages, making libvirt-daemon more
hypervisor-neutral?

Regards,
Jim




More information about the libvir-list mailing list