Package: qemu
Version: 0.8.2-1

Hi,

The attached patch fixes a cleanup bug when "debuild -S" is run after
building a package. QEMU's Makefile does not properly remove some
files generated during the build, so the .diff.gz file generated by
dpkg-buildpackage ends up containing some garbage.

Note: this patch also reverts part of the patch in #356279 as it's not
needed anymore (the docs are now always generated during make).

Regards,
--
Anderson Lizardo
diff -u qemu-0.8.2/debian/rules qemu-0.8.2/debian/rules
--- qemu-0.8.2/debian/rules
+++ qemu-0.8.2/debian/rules
@@ -43,11 +43,6 @@
 build: patch config-host.mak
 	dh_testdir
 	
-	# Force documentation rebuild
-	-for f in $(qemu_docs); do \
-	  mv -f $$f $$f.keep; \
-	done
-	
 	$(MAKE)
 	$(MAKE) -C pc-bios
 
@@ -57,11 +52,8 @@
 	
 	-$(MAKE) -C pc-bios clean
 	-$(MAKE) distclean
-	
-	# Move original qemu docs back
-	-for f in $(qemu_docs); do \
-	  mv -f $$f.keep $$f; \
-	done
+	rm -f hw/acpi-dsdt.hex hw/acpi-dsdt.aml
+	rm -f $(qemu_docs)
 	
 	dh_clean
 

Reply via email to