[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#692379: pyppd: Incorrect shebang used



Package: pyppd
Severity: normal
Version: 1.0.0-1
User: debian-python@lists.debian.org
Usertags: python3.3
Tags: patch

Pyppd currently generates a versioned shebang
#!/usr/bin/python3.2

Thus it results in an extra python3.2 dependency, instead of simple
python3 (>= 3.2) dependency.

This is incorrect shebang and instead should be
#!/usr/bin/python3

There are a couple of ways to implement this, a quick way is to apply
the attached patch.

diff -Nru pyppd-1.0.0/debian/changelog pyppd-1.0.0/debian/changelog
--- pyppd-1.0.0/debian/changelog	2012-07-11 00:24:52.000000000 +0000
+++ pyppd-1.0.0/debian/changelog	2012-10-26 17:45:08.000000000 +0000
@@ -1,3 +1,10 @@
+pyppd (1.0.0-1.1) UNRELEASED; urgency=low
+
+  * Use python3 shebang
+  * Clean up builds in clean target
+
+ -- Dmitrijs Ledkovs <dmitrij.ledkov@ubuntu.com>  Fri, 26 Oct 2012 18:44:44 +0100
+
 pyppd (1.0.0-1) experimental; urgency=low
 
   * New upstream version 1.0.0.
diff -Nru pyppd-1.0.0/debian/rules pyppd-1.0.0/debian/rules
--- pyppd-1.0.0/debian/rules	2012-07-11 00:21:52.000000000 +0000
+++ pyppd-1.0.0/debian/rules	2012-10-26 17:42:59.000000000 +0000
@@ -20,6 +20,10 @@
 		$$python setup.py install --root=$(CURDIR)/debian/pyppd --install-layout=deb; \
 	done
 
+override_dh_python3:
+	dh_python3 --shebang=/usr/bin/python3
+
 override_dh_auto_clean:
 	dh_auto_clean
 	rm -f debian/dh_pyppd.1
+	rm -rf build
Regards,

Dmitrijs.

Reply to: