]> xenbits.xensource.com Git - libvirt.git/commitdiff
spec: Build virt-login-shell iff LXC driver is enabled
authorJiri Denemark <jdenemar@redhat.com>
Wed, 14 Feb 2018 13:49:28 +0000 (14:49 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Wed, 14 Feb 2018 14:55:18 +0000 (15:55 +0100)
Building virt-login-shell doesn't really make any sense without LXC and
doing so even breaks "make rpm" since the associated files are installed
but unpackaged (the login-shell sub package already depends on LXC).

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
libvirt.spec.in

index 4821da826e954d9cc2366a39c822fa56c90ca8dc..5d05acd620839390590d8f3c42d3567b01f5c092 100644 (file)
@@ -1182,8 +1182,10 @@ exit 1
 
 %if %{with_lxc}
     %define arg_lxc --with-lxc
+    %define arg_login_shell --with-login-shell
 %else
     %define arg_lxc --without-lxc
+    %define arg_login_shell --without-login-shell
 %endif
 
 %if %{with_vbox}
@@ -1393,7 +1395,8 @@ rm -f po/stamp-po
            %{?arg_loader_nvram} \
            %{?enable_werror} \
            --enable-expensive-tests \
-           %{arg_init_script}
+           %{arg_init_script} \
+           %{?arg_login_shell}
 make %{?_smp_mflags} V=1
 gzip -9 ChangeLog