What packaging rules for an arch-independent GEdit plugin?

Ben Finney bignose at debian.org
Tue Feb 6 08:26:27 UTC 2018


Howdy all,

I am attempting to package a GEdit plugin [0], written in
architecture-independent Python.

The build dependencies are all architecture-independent, and as far as I
can tell the build and installation process is architecture-independent.

The upstream install script consists essentially of copying some files
to ‘/usr/lib/gedit/plugins/’.

When I do this in the Debian package, though, the resulting plug-in
fails to load because it can't find ‘gi.repository.Gedit’.

      File "/usr/lib/gedit/plugins/editorconfig_gedit3.py", line 1, in <module>
        from editorconfig_plugin.gedit3 import *
      File "/usr/lib/gedit/plugins/editorconfig_plugin/gedit3.py", line 26, in <module>
        from gi.repository import GObject, Gedit
      File "/usr/lib/python3/dist-packages/gi/importer.py", line 127, in find_module
        'introspection typelib not found' % namespace)
    ImportError: cannot import name Gedit, introspection typelib not found

Every other GEdit plug-in packaged in Debian, even the pure Python ones,
appears to be installed to an architecture-specific location, not
‘/usr/lib/gedit/plugins/’. Why the difference?

What do I need to do in the packaging to convince Gedit to see the
files? What Debhelper (or other) tools are there in Debian to help make
this simple?


[0] ‘editorconfig-gedit’ <URL:bugs.debian.org/889696>.

-- 
 \           “I do not believe in immortality of the individual, and I |
  `\        consider ethics to be an exclusively human concern with no |
_o__)  superhuman authority behind it.” —Albert Einstein, letter, 1953 |
Ben Finney




More information about the pkg-gnome-maintainers mailing list