[libvirt] [PATCH] build: Fix RPM build for non-x86 platforms
Eric Blake
eblake at redhat.com
Thu Nov 1 02:46:44 UTC 2012
On 10/31/2012 03:21 PM, Viktor Mihajlovski wrote:
> Make the post install script for the lock-sanlock package optional
> to prevent break on non-x86 platforms.
>
> Signed-off-by: Viktor Mihajlovski <mihajlov at linux.vnet.ibm.com>
> ---
> libvirt.spec.in | 3 ++-
> 1 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/libvirt.spec.in b/libvirt.spec.in
> index 41d2628..f8ede3f 100644
> --- a/libvirt.spec.in
> +++ b/libvirt.spec.in
> @@ -1568,12 +1568,13 @@ fi
> /bin/systemctl try-restart libvirt-guests.service >/dev/null 2>&1 || :
> %endif
>
> +%if %{with_sanlock}
> %post lock-sanlock
> if getent group sanlock > /dev/null ; then
> chmod 0770 %{_localstatedir}/lib/libvirt/sanlock
> chown root:sanlock %{_localstatedir}/lib/libvirt/sanlock
> fi
> -
> +%endif
ACK and pushed.
--
Eric Blake eblake at redhat.com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 617 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20121031/242088a7/attachment-0001.sig>
More information about the libvir-list
mailing list