Control: tags 943237 + pending Dear maintainer,
I've prepared an NMU for telepathy-rakia (versioned as 0.8.0-4.1) and uploaded it to DELAYED/14. Please feel free to tell me if I should cancel it. cu Adrian
diff -Nru telepathy-rakia-0.8.0/debian/changelog telepathy-rakia-0.8.0/debian/changelog --- telepathy-rakia-0.8.0/debian/changelog 2020-12-02 16:44:50.000000000 +0200 +++ telepathy-rakia-0.8.0/debian/changelog 2022-09-13 22:16:31.000000000 +0300 @@ -1,3 +1,10 @@ +telepathy-rakia (0.8.0-4.1) unstable; urgency=low + + * Non-maintainer upload. + * Add proposed patch for building with Python 3. (Closes: #943237) + + -- Adrian Bunk <b...@debian.org> Tue, 13 Sep 2022 22:16:31 +0300 + telepathy-rakia (0.8.0-4) unstable; urgency=medium [ Simon McVittie ] diff -Nru telepathy-rakia-0.8.0/debian/control telepathy-rakia-0.8.0/debian/control --- telepathy-rakia-0.8.0/debian/control 2020-12-02 16:44:50.000000000 +0200 +++ telepathy-rakia-0.8.0/debian/control 2022-09-13 22:16:31.000000000 +0300 @@ -12,7 +12,7 @@ libsofia-sip-ua-glib-dev (>= 1.12.11), libtelepathy-glib-dev (>= 0.17.7), libssl-dev, - python2, + python3, xsltproc Standards-Version: 4.5.1 Vcs-Git: https://salsa.debian.org/telepathy-team/telepathy-rakia.git diff -Nru telepathy-rakia-0.8.0/debian/patches/0001-Migrate-tools-to-python3-to-be-able-to-build-on-mode.patch telepathy-rakia-0.8.0/debian/patches/0001-Migrate-tools-to-python3-to-be-able-to-build-on-mode.patch --- telepathy-rakia-0.8.0/debian/patches/0001-Migrate-tools-to-python3-to-be-able-to-build-on-mode.patch 1970-01-01 02:00:00.000000000 +0200 +++ telepathy-rakia-0.8.0/debian/patches/0001-Migrate-tools-to-python3-to-be-able-to-build-on-mode.patch 2022-09-13 22:15:50.000000000 +0300 @@ -0,0 +1,124 @@ +From b34225eeef0da38f41708c2fbf40ab196163c708 Mon Sep 17 00:00:00 2001 +From: Phillip Schichtel <phil...@schich.tel> +Date: Sat, 30 Nov 2019 19:33:23 +0100 +Subject: Migrate tools to python3 to be able to build on modern systems + +--- + tools/glib-client-marshaller-gen.py | 19 +++++++++---------- + tools/glib-ginterface-gen.py | 7 +++---- + tools/glib-signals-marshal-gen.py | 5 ++--- + tools/libglibcodegen.py | 4 ++-- + 4 files changed, 16 insertions(+), 19 deletions(-) + +diff --git a/tools/glib-client-marshaller-gen.py b/tools/glib-client-marshaller-gen.py +index 5444725..675c545 100644 +--- a/tools/glib-client-marshaller-gen.py ++++ b/tools/glib-client-marshaller-gen.py +@@ -31,22 +31,21 @@ class Generator(object): + for signal in signals: + self.do_signal(signal) + +- print 'void' +- print '%s_register_dbus_glib_marshallers (void)' % self.prefix +- print '{' ++ print('void') ++ print('%s_register_dbus_glib_marshallers (void)' % self.prefix) ++ print('{') + +- all = self.marshallers.keys() +- all.sort() ++ all = sorted(self.marshallers.keys()) + for marshaller in all: + rhs = self.marshallers[marshaller] + +- print ' dbus_g_object_register_marshaller (%s,' % marshaller +- print ' G_TYPE_NONE, /* return */' ++ print(' dbus_g_object_register_marshaller (%s,' % marshaller) ++ print(' G_TYPE_NONE, /* return */') + for type in rhs: +- print ' G_TYPE_%s,' % type.replace('VOID', 'NONE') +- print ' G_TYPE_INVALID);' ++ print(' G_TYPE_%s,' % type.replace('VOID', 'NONE')) ++ print(' G_TYPE_INVALID);') + +- print '}' ++ print('}') + + + def types_to_gtypes(types): +diff --git a/tools/glib-ginterface-gen.py b/tools/glib-ginterface-gen.py +index a8180b7..414a1f9 100644 +--- a/tools/glib-ginterface-gen.py ++++ b/tools/glib-ginterface-gen.py +@@ -619,8 +619,7 @@ class Generator(object): + self.b('#include %s' % header) + self.b('') + +- nodes = self.dom.getElementsByTagName('node') +- nodes.sort(cmp_by_name) ++ nodes = sorted(self.dom.getElementsByTagName('node')) + + for node in nodes: + self.do_node(node) +@@ -639,7 +638,7 @@ class Generator(object): + + + def cmdline_error(): +- print """\ ++ print("""\ + usage: + gen-ginterface [OPTIONS] xmlfile Prefix_ + options: +@@ -659,7 +658,7 @@ options: + void symbol (DBusGMethodInvocation *context) + and return some sort of "not implemented" error via + dbus_g_method_return_error (context, ...) +-""" ++""") + sys.exit(1) + + +diff --git a/tools/glib-signals-marshal-gen.py b/tools/glib-signals-marshal-gen.py +index 0d02c13..c76ff5e 100644 +--- a/tools/glib-signals-marshal-gen.py ++++ b/tools/glib-signals-marshal-gen.py +@@ -41,12 +41,11 @@ class Generator(object): + for signal in signals: + self.do_signal(signal) + +- all = self.marshallers.keys() +- all.sort() ++ all = sorted(self.marshallers.keys()) + for marshaller in all: + rhs = self.marshallers[marshaller] + if not marshaller.startswith('g_cclosure'): +- print 'VOID:' + ','.join(rhs) ++ print('VOID:' + ','.join(rhs)) + + if __name__ == '__main__': + argv = sys.argv[1:] +diff --git a/tools/libglibcodegen.py b/tools/libglibcodegen.py +index 090e8de..80042ba 100644 +--- a/tools/libglibcodegen.py ++++ b/tools/libglibcodegen.py +@@ -297,7 +297,7 @@ def type_to_gtype(s): + return ("GHashTable *", "DBUS_TYPE_G_STRING_STRING_HASHTABLE", "BOXED", False) + elif s[:2] == 'a{': #some arbitrary hash tables + if s[2] not in ('y', 'b', 'n', 'q', 'i', 'u', 's', 'o', 'g'): +- raise Exception, "can't index a hashtable off non-basic type " + s ++ raise Exception("can't index a hashtable off non-basic type " + s) + first = type_to_gtype(s[2]) + second = type_to_gtype(s[3:-1]) + return ("GHashTable *", "(dbus_g_type_get_map (\"GHashTable\", " + first[1] + ", " + second[1] + "))", "BOXED", False) +@@ -312,7 +312,7 @@ def type_to_gtype(s): + return ("GValueArray *", gtype, "BOXED", True) + + # we just don't know .. +- raise Exception, "don't know the GType for " + s ++ raise Exception("don't know the GType for " + s) + + + def xml_escape(s): +-- +2.30.2 + diff -Nru telepathy-rakia-0.8.0/debian/patches/series telepathy-rakia-0.8.0/debian/patches/series --- telepathy-rakia-0.8.0/debian/patches/series 1970-01-01 02:00:00.000000000 +0200 +++ telepathy-rakia-0.8.0/debian/patches/series 2022-09-13 22:16:30.000000000 +0300 @@ -0,0 +1 @@ +0001-Migrate-tools-to-python3-to-be-able-to-build-on-mode.patch diff -Nru telepathy-rakia-0.8.0/debian/rules telepathy-rakia-0.8.0/debian/rules --- telepathy-rakia-0.8.0/debian/rules 2020-12-02 16:44:50.000000000 +0200 +++ telepathy-rakia-0.8.0/debian/rules 2022-09-13 22:16:31.000000000 +0300 @@ -11,7 +11,7 @@ --libdir="\$${prefix}/lib" \ --libexecdir="\$${libdir}/telepathy" \ --disable-static \ - PYTHON=python2 \ + PYTHON=python3 \ $(NULL) # The regression tests are too prone to race conditions for the buildds,