mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-24 22:55:23 +00:00
build: avoid stranded polkit file in client-only build
daemon/Makefile.am installs a .policy file if WITH_LIBVIRTD and WITH_POLKIT are both set. src/Makefile.am, on the other hand, installs a .policy file if WITH_POLKIT1 is set, but without checking WITH_LIBVIRTD. When running 'make rpm' with client_only manually set, on a Fedora 19 box, that leads to a failure: RPM build errors: Installed (but unpackaged) file(s) found: /usr/share/polkit-1/actions/org.libvirt.api.policy Fix it by adding another conditional. * src/Makefile.am (polkitaction_DATA): Make conditional. Signed-off-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
parent
b420df72a8
commit
bf3d9811e2
@ -1497,7 +1497,9 @@ if WITH_POLKIT1
|
|||||||
libvirt_driver_access_la_SOURCES += $(ACCESS_DRIVER_POLKIT_SOURCES)
|
libvirt_driver_access_la_SOURCES += $(ACCESS_DRIVER_POLKIT_SOURCES)
|
||||||
|
|
||||||
polkitactiondir = $(datadir)/polkit-1/actions
|
polkitactiondir = $(datadir)/polkit-1/actions
|
||||||
|
if WITH_LIBVIRTD
|
||||||
polkitaction_DATA = $(ACCESS_DRIVER_POLKIT_POLICY)
|
polkitaction_DATA = $(ACCESS_DRIVER_POLKIT_POLICY)
|
||||||
|
endif WITH_LIBVIRTD
|
||||||
|
|
||||||
$(ACCESS_DRIVER_POLKIT_POLICY): $(srcdir)/access/viraccessperm.h \
|
$(ACCESS_DRIVER_POLKIT_POLICY): $(srcdir)/access/viraccessperm.h \
|
||||||
$(srcdir)/access/genpolkit.pl Makefile.am
|
$(srcdir)/access/genpolkit.pl Makefile.am
|
||||||
|
Loading…
Reference in New Issue
Block a user