]> xenbits.xensource.com Git - libvirt.git/commitdiff
Fix rpm build failures
authorDaniel Veillard <veillard@redhat.com>
Wed, 1 Aug 2012 08:10:36 +0000 (16:10 +0800)
committerDaniel Veillard <veillard@redhat.com>
Wed, 1 Aug 2012 08:10:36 +0000 (16:10 +0800)
The 'make check' was rebuilding the binaries just overrided,
so for more safety also override the C program
Also daemon-conf isn't built anymore so remove it from the list

libvirt.spec.in

index c642f805726ae35d88d2cf7e1efebb9c361ef770..2d86e3cab0c4a26f6699ac12a3e7e8811ee49e41 100644 (file)
@@ -1323,11 +1323,13 @@ rm -fr %{buildroot}
 
 %check
 cd tests
-# These 3 tests don't current work in a mock build root
-for i in nodeinfotest daemon-conf seclabeltest
+make
+# These tests don't current work in a mock build root
+for i in nodeinfotest seclabeltest
 do
   rm -f $i
-  printf "#!/bin/sh\nexit 0\n" > $i
+  printf 'int main(void) { return(0); }' > $i.c
+  printf '#!/bin/sh\nexit 0\n' > $i
   chmod +x $i
 done
 make check