[libvirt] [PATCH] spec: fix vpath build on RHEL 7
Daniel P. Berrangé
berrange at redhat.com
Tue Nov 12 13:31:56 UTC 2019
On Mon, Nov 11, 2019 at 03:24:33PM +0100, Pavel Hrdina wrote:
> Macro _vpath_builddir is not defined so we have to define it ourselves.
>
> Signed-off-by: Pavel Hrdina <phrdina at redhat.com>
> ---
> libvirt.spec.in | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/libvirt.spec.in b/libvirt.spec.in
> index eb8b2df055..2374668722 100644
> --- a/libvirt.spec.in
> +++ b/libvirt.spec.in
> @@ -36,6 +36,11 @@
> %define qemu_kvm_arches x86_64 %{power64} aarch64 s390x
> %endif
>
> +# On RHEL 7 and older macro _vpath_builddir is not defined.
> +%if 0%{?rhel} <= 7
> + %define _vpath_builddir %{_target_platform}
> +%endif
> +
> %ifarch %{qemu_kvm_arches}
> %define with_qemu_kvm %{with_qemu}
> %else
If you've not already pushed as a build fix...
Reviewed-by: Daniel P. Berrangé <berrange at redhat.com>
Regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
More information about the libvir-list
mailing list