[PATCH] spec: fix build with `%define with_qemu 0`

Cole Robinson via Devel posted 1 patch 3 days, 4 hours ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/7ea8cc51c9a0e7387b19de81b15b5d195168a7cf.1759343140.git.crobinso@redhat.com
libvirt.spec.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] spec: fix build with `%define with_qemu 0`
Posted by Cole Robinson via Devel 3 days, 4 hours ago
test_libvirt_sanlock.aug is dependent on WITH_QEMU in meson config

Signed-off-by: Cole Robinson <crobinso@redhat.com>
---
 libvirt.spec.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libvirt.spec.in b/libvirt.spec.in
index aff2707705..7cb558770f 100644
--- a/libvirt.spec.in
+++ b/libvirt.spec.in
@@ -2444,13 +2444,13 @@ exit 0
 %files daemon-plugin-sanlock
         %if %{with_qemu}
 %config(noreplace) %{_sysconfdir}/libvirt/qemu-sanlock.conf
+%{_datadir}/augeas/lenses/tests/test_libvirt_sanlock.aug
         %endif
         %if %{with_libxl}
 %config(noreplace) %{_sysconfdir}/libvirt/libxl-sanlock.conf
         %endif
 %attr(0755, root, root) %{_libdir}/libvirt/lock-driver/sanlock.so
 %{_datadir}/augeas/lenses/libvirt_sanlock.aug
-%{_datadir}/augeas/lenses/tests/test_libvirt_sanlock.aug
 %dir %attr(0770, root, sanlock) %{_localstatedir}/lib/libvirt/sanlock
 %{_sbindir}/virt-sanlock-cleanup
 %{_mandir}/man8/virt-sanlock-cleanup.8*
-- 
2.51.0
Re: [PATCH] spec: fix build with `%define with_qemu 0`
Posted by Daniel P. Berrangé via Devel 1 day, 11 hours ago
On Wed, Oct 01, 2025 at 02:26:53PM -0400, Cole Robinson via Devel wrote:
> test_libvirt_sanlock.aug is dependent on WITH_QEMU in meson config
> 
> Signed-off-by: Cole Robinson <crobinso@redhat.com>
> ---
>  libvirt.spec.in | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

This looks like a duplicate of the bug I was fixing but in a different
way:

  https://lists.libvirt.org/archives/list/devel@lists.libvirt.org/thread/IFKRFBWS267IHPQKFBT6TYTMO6B5U7QI/

> 
> diff --git a/libvirt.spec.in b/libvirt.spec.in
> index aff2707705..7cb558770f 100644
> --- a/libvirt.spec.in
> +++ b/libvirt.spec.in
> @@ -2444,13 +2444,13 @@ exit 0
>  %files daemon-plugin-sanlock
>          %if %{with_qemu}
>  %config(noreplace) %{_sysconfdir}/libvirt/qemu-sanlock.conf
> +%{_datadir}/augeas/lenses/tests/test_libvirt_sanlock.aug
>          %endif
>          %if %{with_libxl}
>  %config(noreplace) %{_sysconfdir}/libvirt/libxl-sanlock.conf
>          %endif
>  %attr(0755, root, root) %{_libdir}/libvirt/lock-driver/sanlock.so
>  %{_datadir}/augeas/lenses/libvirt_sanlock.aug
> -%{_datadir}/augeas/lenses/tests/test_libvirt_sanlock.aug
>  %dir %attr(0770, root, sanlock) %{_localstatedir}/lib/libvirt/sanlock
>  %{_sbindir}/virt-sanlock-cleanup
>  %{_mandir}/man8/virt-sanlock-cleanup.8*
> -- 
> 2.51.0
> 

With 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 :|
Re: [PATCH] spec: fix build with `%define with_qemu 0`
Posted by Martin Kletzander via Devel 1 day, 11 hours ago
On Wed, Oct 01, 2025 at 02:26:53PM -0400, Cole Robinson via Devel wrote:
>test_libvirt_sanlock.aug is dependent on WITH_QEMU in meson config
>

Makes sense,

Reviewed-by: Martin Kletzander <mkletzan@redhat.com>

>Signed-off-by: Cole Robinson <crobinso@redhat.com>
>---
> libvirt.spec.in | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
>diff --git a/libvirt.spec.in b/libvirt.spec.in
>index aff2707705..7cb558770f 100644
>--- a/libvirt.spec.in
>+++ b/libvirt.spec.in
>@@ -2444,13 +2444,13 @@ exit 0
> %files daemon-plugin-sanlock
>         %if %{with_qemu}
> %config(noreplace) %{_sysconfdir}/libvirt/qemu-sanlock.conf
>+%{_datadir}/augeas/lenses/tests/test_libvirt_sanlock.aug
>         %endif
>         %if %{with_libxl}
> %config(noreplace) %{_sysconfdir}/libvirt/libxl-sanlock.conf
>         %endif
> %attr(0755, root, root) %{_libdir}/libvirt/lock-driver/sanlock.so
> %{_datadir}/augeas/lenses/libvirt_sanlock.aug
>-%{_datadir}/augeas/lenses/tests/test_libvirt_sanlock.aug
> %dir %attr(0770, root, sanlock) %{_localstatedir}/lib/libvirt/sanlock
> %{_sbindir}/virt-sanlock-cleanup
> %{_mandir}/man8/virt-sanlock-cleanup.8*
>-- 
>2.51.0
>