Source: totem-plugins
Version: 3.18.1-2
Severity: important
Tags: patch

Currently, totem-plugins gets python3 interpreter depends like this (when
built with python3.4 as default python3):

python3 (<< 3.5), python3 (>= 3.4~), python3.4

As a result, totem-plugins became uninstallable once the default was updated
to python3.5.  While a binNMU corrected this, it's entirely unnecessary. I
looked and there's no compiled python extensions in the plugins, it's all
arch all python that does not need rebuilding when the version changes.

Ths problem is that because dh_python3 was being called for all plugins, some
of which are compiled, dh_python treated them as python3 extensions for
dependency calculation.

Please see the attached patch that addresses this issue.  With it the python3
interpreter depend is:

python3:any (>= 3.3.2-2~)

No more trouble during transitions, the package is always installable.

Scott K
diff -Nru totem-3.18.1/debian/changelog totem-3.18.1/debian/changelog
--- totem-3.18.1/debian/changelog	2015-12-05 18:55:54.000000000 -0500
+++ totem-3.18.1/debian/changelog	2016-01-15 02:34:56.000000000 -0500
@@ -1,3 +1,11 @@
+totem (3.18.1-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Relax excessively tight python interpreter depends for totem-plugins
+    - Only run dh_python3 for plugins with actual python content
+
+ -- Scott Kitterman <sc...@kitterman.com>  Fri, 15 Jan 2016 02:33:49 -0500
+
 totem (3.18.1-2) unstable; urgency=medium
 
   * Switch to python3 for the plugins
diff -Nru totem-3.18.1/debian/rules totem-3.18.1/debian/rules
--- totem-3.18.1/debian/rules	2015-12-05 18:49:59.000000000 -0500
+++ totem-3.18.1/debian/rules	2016-01-15 02:43:43.000000000 -0500
@@ -27,7 +27,10 @@
 DEB_DH_MAKESHLIBS_ARGS_libtotem0 += -V'libtotem0 (>= $(DEB_VERSION)), libtotem0 (<< $(DEB_GNOME_NEXTVERSION))'
 
 binary-install/totem-plugins::
-	dh_python3 --no-ext-rename -ptotem-plugins /usr/lib/totem/plugins
+	dh_python3 -ptotem-plugins /usr/lib/totem/plugins/pythonplugins
+	rm -rf $(CURDIR)/debian/totem-plugins/usr/lib/totem/plugins/pythonconsole/__pycache__
+	dh_python3 -ptotem-plugins /usr/lib/totem/plugins/dbus
+	dh_python3 -ptotem-plugins /usr/lib/totem/plugins/opensubtitles
 
 common-binary-predeb-arch::
 	find debian -name '*.a' -delete

Reply via email to