This is actually easier than I first thought.  All we need to do is move the
Python loaders to separate binary packages and update dependents which ship
Python support to Depends on the appropriate loader package.

This is an important fix so that we can provide images which only have Python
3 support.  See the attached patch.  For a list of packages which will need
updated Depends, see

https://bugs.launchpad.net/ubuntu/+source/libpeas/+bug/1440504/comments/6

and

https://bugs.launchpad.net/ubuntu/+source/libpeas/+bug/1440504/comments/9
Index: debian/control.in
===================================================================
--- debian/control.in	(revision 47232)
+++ debian/control.in	(working copy)
@@ -34,6 +34,26 @@
 Description: Application plugin library
  libpeas is a library that allows applications to support plugins.
 
+Package: libpeas-1.0-0-python3loader
+Section: libs
+Architecture: any
+Depends: ${misc:Depends},
+         ${shlibs:Depends},
+         libpeas-common
+Description: Application plugin library
+ libpeas is a library that allows applications to support plugins.
+ This packages contains the Python 3 loader shared library.
+
+Package: libpeas-1.0-0-python2loader
+Section: libs
+Architecture: any
+Depends: ${misc:Depends},
+         ${shlibs:Depends},
+         libpeas-common
+Description: Application plugin library
+ libpeas is a library that allows applications to support plugins.
+ This package contains the Python 2 loader shared library.
+
 Package: libpeas-dev
 Section: libdevel
 Architecture: any
Index: debian/libpeas-1.0-0-python2loader.install
===================================================================
--- debian/libpeas-1.0-0-python2loader.install	(nonexistent)
+++ debian/libpeas-1.0-0-python2loader.install	(working copy)
@@ -0,0 +1 @@
+usr/lib/libpeas-1.0/loaders/libpythonloader.so
Index: debian/libpeas-1.0-0-python3loader.install
===================================================================
--- debian/libpeas-1.0-0-python3loader.install	(nonexistent)
+++ debian/libpeas-1.0-0-python3loader.install	(working copy)
@@ -0,0 +1 @@
+usr/lib/libpeas-1.0/loaders/libpython3loader.so
Index: debian/libpeas-1.0-0.install
===================================================================
--- debian/libpeas-1.0-0.install	(revision 47232)
+++ debian/libpeas-1.0-0.install	(working copy)
@@ -1,2 +1 @@
 usr/lib/*.so.*
-usr/lib/libpeas-1.0/loaders/*.so

Reply via email to