Package: cdbs
Version: 0.4.111ubuntu1
Severity: normal

Dear cdbs Maintainers,

As the ftp Team decided not to allow to ship a waf blob in source
tarballs [0] it is necessary to use the python source code of waf. This
then leads though to python creating pyc files which get added to the
debian diff.

So I want to suggest that the waf.mk class clean phase is also cleaning
up those?

I have attached a patch which does so.

Thanks,
Oliver

[0] http://wiki.debian.org/UnpackWaf

>From 53f0386d083f43bf69d6a0fc2852a95f754774e7 Mon Sep 17 00:00:00 2001
From: Oliver Sauder <o...@esite.ch>
Date: Fri, 11 Jan 2013 22:40:40 +0200
Subject: [PATCH] remove pyc files created by waf (unpacked version) while
 building

---
 1/class/waf.mk.in |    1 +
 1 file changed, 1 insertion(+)

diff --git a/1/class/waf.mk.in b/1/class/waf.mk.in
index 3e78311..479f6d8 100644
--- a/1/class/waf.mk.in
+++ b/1/class/waf.mk.in
@@ -98,6 +98,7 @@ clean:: cdbs-waf-clean
 cdbs-waf-clean:
 	$(cdbs_waf_invoke) $(cdbs_waf_clean_target) $(cdbs_waf_options)
 	rm -rf debian/stamp-waf-*
+	find -name '*.pyc' -delete
 
 common-install-arch common-install-indep:: common-install-impl
 common-install-impl::
-- 
1.7.10.4


Reply via email to