On Sunday, June 08, 2014 15:00:00 Stefan Bühler wrote:
> Package: attic
> Version: 0.10-1
> Severity: grave
> 
> Hi,
> 
> attic uses #!/usr/bin/python3 as interpreter, but has native (cython)
> modules that were compiled with a certain python3 version (3.3 in the
> archive, but depends on python3-dev version at build time).
...
> Rebuilding the package with python3-dev from current testing also fixes
> the problem.

Just rebuilding doesn't solve the entire problem.  The package depends are 
still wrong and it'll just break again the next time we change python3 
versions.  NMU debdiff attached.  I intend to upload this to delay/3.
diff -Nru attic-0.10/debian/changelog attic-0.10/debian/changelog
--- attic-0.10/debian/changelog	2014-02-06 11:47:23.000000000 -0500
+++ attic-0.10/debian/changelog	2014-06-12 01:39:14.000000000 -0400
@@ -1,3 +1,16 @@
+attic (0.10-1.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Generate correct python interpreter dependencies with dh_python3
+    (Closes: #750920)
+    - Add dh-python to build-depends
+    - Add python3:Depends
+    - Add dh_python3 to debian/rules
+    - Add additional dpkg-gencontrol call to expand python3:Depends generated
+      by dh_python3
+
+ -- Scott Kitterman <[email protected]>  Wed, 11 Jun 2014 14:57:18 -0400
+
 attic (0.10-1) unstable; urgency=medium
 
   * New upstream version.
diff -Nru attic-0.10/debian/control attic-0.10/debian/control
--- attic-0.10/debian/control	2014-02-06 11:47:37.000000000 -0500
+++ attic-0.10/debian/control	2014-06-12 01:38:11.000000000 -0400
@@ -2,7 +2,7 @@
 Section: admin
 Priority: extra
 Maintainer: Clint Adams <[email protected]>
-Build-Depends: python3-dev, python3-openssl, python3-msgpack
+Build-Depends: dh-python, python3-dev, python3-openssl, python3-msgpack
 Standards-Version: 3.9.5
 Homepage: https://pythonhosted.org/Attic/
 Vcs-Git: git://git.debian.org/collab-maint/attic.git
@@ -10,7 +10,7 @@
 
 Package: attic
 Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}, python3, python3-openssl, python3-msgpack
+Depends: ${shlibs:Depends}, ${misc:Depends}, ${python3:Depends}, python3-openssl, python3-msgpack
 Recommends: python3-llfuse
 Description: deduplicating backup program
  Attic is a deduplicating backup program written in Python. The main
diff -Nru attic-0.10/debian/rules attic-0.10/debian/rules
--- attic-0.10/debian/rules	2013-11-25 09:15:01.000000000 -0500
+++ attic-0.10/debian/rules	2014-06-12 01:41:52.000000000 -0400
@@ -14,6 +14,7 @@
 	$(checkdir)
 	rm -f debian/substvars debian/files build-arch
 	rm -rf debian/attic debian/tmp attic/__pycache__ build __pycache__
+	rm -rf debian/attic.*
 
 build: build-arch build-indep
 build-indep:
@@ -26,6 +27,7 @@
 binary: binary-indep binary-arch
 binary-indep: checkroot
 binary-arch: checkroot install
+	dh_python3 -a
 	$(INSTALL_DIR) debian/$(package)/DEBIAN \
 		debian/$(package)/usr/share/doc/$(package)
 	$(INSTALL_FILE) debian/copyright debian/$(package)/usr/share/doc/$(package)
@@ -37,6 +39,7 @@
 	cd debian/$(package) && find * -type f ! -regex '^DEBIAN/.*' -print0 | xargs -r0 md5sum > DEBIAN/md5sums
 	dpkg-shlibdeps debian/$(package)/usr/lib/python3/dist-packages/$(package)/*.so
 	dpkg-gencontrol -Pdebian/$(package)
+	dpkg-gencontrol -Pdebian/$(package) -Tdebian/attic.substvars
 	dpkg --build debian/$(package) ..
 
 install: build

Reply via email to