]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
spec: add dmidecode as prereq
authorEric Blake <eblake@redhat.com>
Mon, 5 Dec 2011 17:32:41 +0000 (10:32 -0700)
committerEric Blake <eblake@redhat.com>
Wed, 16 May 2012 23:11:43 +0000 (17:11 -0600)
https://bugzilla.redhat.com/show_bug.cgi?id=754909 complains that
because libvirt didn't require dmidecode, that the logs are noisy
and virConnectGetSysinfo needlessly fails.  Even 'virt-what' requires
dmidecode, so it's not that onerous of a dependency.  We may be
able to drop this in the future when we move to parsing sysfs data,
but for now, listing the dependency will help matters.

* libvirt.spec.in (Requires): Sort Requires before BuildRequires.
Add dmidecode.
(cherry picked from commit e7dfa468f9de796430a4cc9594eb256109a517bf)
extra requires for with_systemd removed, since the patch that adds
that hasn't been backported

libvirt.spec.in

index 5cb87fb9b245d95815ebdd04774bc01a8cf19a54..ba950c62445aab74ef1e62b75d30376d24773025 100644 (file)
@@ -326,6 +326,8 @@ Requires: device-mapper
 %if %{with_cgconfig}
 Requires: libcgroup
 %endif
+# For virConnectGetSysinfo
+Requires: dmidecode
 
 # All build-time requirements
 BuildRequires: python-devel