Package: galternatives
Version: 1.0.7
Tags: patch

When attempting to build galternatives with sbuild, I run into:

dh clean --buildsystem=pybuild
   dh_auto_clean -O--buildsystem=pybuild
I: pybuild base:217: python3.8 setup.py clean
Traceback (most recent call last):
  File "setup.py", line 2, in <module>
    from galternatives import PACKAGE, INFO
  File "/<<PKGBUILDDIR>>/galternatives/__init__.py", line 32, in <module>
    gi.require_version('Gdk', '3.0')
  File "/usr/lib/python3/dist-packages/gi/__init__.py", line 129, in
require_version
    raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace Gdk not available
E: pybuild pybuild:352: clean: plugin distutils failed with: exit code=1:
python3.8 setup.py clean
dh_auto_clean: error: pybuild --clean -i python{version} -p 3.8 returned
exit code 13

The attached patch fixes this.
Description: Make galternatives depend on gir1.2-gdk3.0, needed to run "clean"
Author: Sven Mueller <sven.muelle...@gmail.com>
Last-Update: 2020-11-18
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
Index: galternatives-1.0.5/debian/control
===================================================================
--- galternatives-1.0.5.orig/debian/control
+++ galternatives-1.0.5/debian/control
@@ -11,6 +11,7 @@ Build-Depends:
  intltool,
  python3,
  python3-distutils,
+ gir1.2-gdk-3.0,
 Rules-Requires-Root: no
 Standards-Version: 4.3.0
 Vcs-Git: https://salsa.debian.org/chinese-team/galternatives.git

Reply via email to