diff --git a/debian/control b/debian/control index 1998bd2..2259f29 100644 --- a/debian/control +++ b/debian/control @@ -20,7 +20,6 @@ libx11-dev, libxkbfile-dev, meson (>= 0.40.0), - python, python-gi-dev, python3, valac, @@ -35,7 +34,6 @@ Depends: ${gir:Depends}, ${misc:Depends}, - ${python:Depends}, ${python3:Depends} Description: Introspection data for Xapp Xapp provides components which are common to multiple desktop environments diff --git a/debian/patches/disable-python2-gir b/debian/patches/disable-python2-gir new file mode 100644 index 0000000..fa8cc3b --- /dev/null +++ b/debian/patches/disable-python2-gir @@ -0,0 +1,15 @@ +--- + pygobject/meson.build | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- xapp.git.orig/pygobject/meson.build ++++ xapp.git/pygobject/meson.build +@@ -3,7 +3,7 @@ pygobject = dependency('pygobject-3.0', + required: true, + ) + +-foreach exec : ['python2', 'python3'] ++foreach exec : ['python3'] + r = run_command(exec, '-c', 'import gi;print(gi._overridesdir)') + + if r.returncode() == 0 diff --git a/debian/patches/series b/debian/patches/series index e69de29..f6d0917 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -0,0 +1 @@ +disable-python2-gir diff --git a/debian/rules b/debian/rules index 8a41b75..95fbe11 100755 --- a/debian/rules +++ b/debian/rules @@ -3,7 +3,7 @@ export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed -Wl,-z,now %: - dh $@ --with=gir,python2,python3 + dh $@ --with=gir,python3 override_dh_auto_configure: dh_auto_configure -- \