View | Details | Raw Unified | Return to bug 249570
Collapse All | Expand All

(-)net-im/telepathy-gabble/Makefile (-1 / +1 lines)
Lines 28-34 RUN_DEPENDS= ca_root_nss>=0:security/ca_root_nss \ Link Here
28
28
29
PORTSCOUT=	limitw:1,even
29
PORTSCOUT=	limitw:1,even
30
30
31
USES=		alias gmake gnome libtool pathfix pkgconfig python:2.7,build \
31
USES=		alias gmake gnome libtool pathfix pkgconfig python:build \
32
		shebangfix sqlite ssl
32
		shebangfix sqlite ssl
33
USE_GNOME=	glib20 gtksourceview3 libxslt:build
33
USE_GNOME=	glib20 gtksourceview3 libxslt:build
34
GNU_CONFIGURE=	yes
34
GNU_CONFIGURE=	yes
(-)net-im/telepathy-gabble/distinfo (+1 lines)
Lines 1-2 Link Here
1
TIMESTAMP = 1600948310
1
SHA256 (telepathy-gabble-0.18.3.tar.gz) = 8ec714607e9bcb8d5a3f44adf871e7b07d5db8e326e47536e74e09cba59989c2
2
SHA256 (telepathy-gabble-0.18.3.tar.gz) = 8ec714607e9bcb8d5a3f44adf871e7b07d5db8e326e47536e74e09cba59989c2
2
SIZE (telepathy-gabble-0.18.3.tar.gz) = 2793195
3
SIZE (telepathy-gabble-0.18.3.tar.gz) = 2793195
(-)net-im/telepathy-gabble/files/patch-Makefile.in (-3 / +3 lines)
Lines 1-6 Link Here
1
--- Makefile.in.orig	2010-09-18 17:29:38.000000000 +0000
1
--- Makefile.in.orig	2020-09-24 11:51:08 UTC
2
+++ Makefile.in	2010-09-18 17:29:53.000000000 +0000
2
+++ Makefile.in
3
@@ -267,7 +267,7 @@
3
@@ -349,7 +349,7 @@ top_build_prefix = @top_build_prefix@
4
 top_builddir = @top_builddir@
4
 top_builddir = @top_builddir@
5
 top_srcdir = @top_srcdir@
5
 top_srcdir = @top_srcdir@
6
 ACLOCAL_AMFLAGS = -I m4
6
 ACLOCAL_AMFLAGS = -I m4
(-)net-im/telepathy-gabble/files/patch-lib_gibber_gibber-unix-transport.c (-4 / +4 lines)
Lines 1-6 Link Here
1
--- lib/gibber/gibber-unix-transport.c.orig	2010-06-09 16:09:58.000000000 +0000
1
--- lib/gibber/gibber-unix-transport.c.orig	2013-10-04 15:51:47 UTC
2
+++ lib/gibber/gibber-unix-transport.c	2010-09-18 21:24:44.000000000 +0000
2
+++ lib/gibber/gibber-unix-transport.c
3
@@ -375,6 +375,167 @@ gibber_unix_transport_recv_credentials (
3
@@ -374,6 +374,167 @@ gibber_unix_transport_recv_credentials (GibberUnixTran
4
   return TRUE;
4
   return TRUE;
5
 }
5
 }
6
 
6
 
Lines 168-174 Link Here
168
 #else /* OSs where we have no implementation */
168
 #else /* OSs where we have no implementation */
169
 
169
 
170
 gboolean
170
 gboolean
171
@@ -393,9 +554,7 @@ gibber_unix_transport_recv_credentials (
171
@@ -392,9 +553,7 @@ gibber_unix_transport_recv_credentials (GibberUnixTran
172
 }
172
 }
173
 
173
 
174
 gboolean
174
 gboolean
(-)net-im/telepathy-gabble/files/patch-tools_c-constants-gen.py (+24 lines)
Added Link Here
1
--- tools/c-constants-gen.py.orig	2014-05-07 14:28:43 UTC
2
+++ tools/c-constants-gen.py
3
@@ -12,7 +12,7 @@ class Generator(object):
4
         self.prefix = prefix + '_'
5
         self.spec = get_by_path(dom, "spec")[0]
6
 
7
-	self.output_base = output_base
8
+        self.output_base = output_base
9
         self.__header = []
10
         self.__docs = []
11
 
12
@@ -25,10 +25,10 @@ class Generator(object):
13
         file_set_contents(self.output_base + '-gtk-doc.h', ''.join(self.__docs))
14
 
15
     def write(self, code):
16
-        self.__header.append(code.encode('utf-8'))
17
+        self.__header.append(code)
18
 
19
     def d(self, code):
20
-        self.__docs.append(code.encode('utf-8'))
21
+        self.__docs.append(code)
22
 
23
     # Header
24
     def do_header(self):
(-)net-im/telepathy-gabble/files/patch-tools_glib-client-gen.py (+23 lines)
Added Link Here
1
--- tools/glib-client-gen.py.orig	2014-05-07 14:28:02 UTC
2
+++ tools/glib-client-gen.py
3
@@ -74,17 +74,17 @@ class Generator(object):
4
         self.guard = opts.get('--guard', None)
5
 
6
     def h(self, s):
7
-        if isinstance(s, unicode):
8
+        if isinstance(s, str):
9
             s = s.encode('utf-8')
10
         self.__header.append(s)
11
 
12
     def b(self, s):
13
-        if isinstance(s, unicode):
14
+        if isinstance(s, str):
15
             s = s.encode('utf-8')
16
         self.__body.append(s)
17
 
18
     def d(self, s):
19
-        if isinstance(s, unicode):
20
+        if isinstance(s, str):
21
             s = s.encode('utf-8')
22
         self.__docs.append(s)
23
 
(-)net-im/telepathy-gabble/files/patch-tools_glib-client-marshaller-gen.py (+37 lines)
Added Link Here
1
--- tools/glib-client-marshaller-gen.py.orig	2014-05-07 14:28:02 UTC
2
+++ tools/glib-client-marshaller-gen.py
3
@@ -31,23 +31,23 @@ class Generator(object):
4
         for signal in signals:
5
             self.do_signal(signal)
6
 
7
-        print 'void'
8
-        print '%s_register_dbus_glib_marshallers (void)' % self.prefix
9
-        print '{'
10
+        print('void')
11
+        print('%s_register_dbus_glib_marshallers (void)' % self.prefix)
12
+        print('{')
13
 
14
-        all = self.marshallers.keys()
15
-        all.sort()
16
+        all = list(self.marshallers.keys())
17
+        sorted(all)
18
         for marshaller in all:
19
             rhs = self.marshallers[marshaller]
20
 
21
-            print '  dbus_g_object_register_marshaller ('
22
-            print '      g_cclosure_marshal_generic,'
23
-            print '      G_TYPE_NONE,       /* return */'
24
+            print('  dbus_g_object_register_marshaller (')
25
+            print('      g_cclosure_marshal_generic,')
26
+            print('      G_TYPE_NONE,       /* return */')
27
             for type in rhs:
28
-                print '      G_TYPE_%s,' % type.replace('VOID', 'NONE')
29
-            print '      G_TYPE_INVALID);'
30
+                print('      G_TYPE_%s,' % type.replace('VOID', 'NONE'))
31
+            print('      G_TYPE_INVALID);')
32
 
33
-        print '}'
34
+        print('}')
35
 
36
 
37
 def types_to_gtypes(types):
(-)net-im/telepathy-gabble/files/patch-tools_glib-errors-str-gen.py (+23 lines)
Added Link Here
1
--- tools/glib-errors-str-gen.py.orig	2014-05-07 14:28:02 UTC
2
+++ tools/glib-errors-str-gen.py
3
@@ -17,17 +17,17 @@ class Generator(object):
4
         self.__docs = []
5
 
6
     def h(self, s):
7
-        if isinstance(s, unicode):
8
+        if isinstance(s, str):
9
             s = s.encode('utf-8')
10
         self.__header.append(s)
11
 
12
     def b(self, s):
13
-        if isinstance(s, unicode):
14
+        if isinstance(s, str):
15
             s = s.encode('utf-8')
16
         self.__body.append(s)
17
 
18
     def d(self, s):
19
-        if isinstance(s, unicode):
20
+        if isinstance(s, str):
21
             s = s.encode('utf-8')
22
         self.__docs.append(s)
23
 
(-)net-im/telepathy-gabble/files/patch-tools_glib-ginterface-gen.py (+63 lines)
Added Link Here
1
--- tools/glib-ginterface-gen.py.orig	2014-05-07 14:28:02 UTC
2
+++ tools/glib-ginterface-gen.py
3
@@ -27,7 +27,7 @@ import os.path
4
 import xml.dom.minidom
5
 
6
 from libtpcodegen import file_set_contents
7
-from libglibcodegen import Signature, type_to_gtype, cmp_by_name, \
8
+from libglibcodegen import Signature, type_to_gtype, \
9
         NS_TP, dbus_gutils_wincaps_to_uscore
10
 
11
 
12
@@ -85,18 +85,18 @@ class Generator(object):
13
         self.allow_havoc = allow_havoc
14
 
15
     def h(self, s):
16
-        if isinstance(s, unicode):
17
-            s = s.encode('utf-8')
18
+        if isinstance(s, bytes):
19
+            s = str(s, 'ascii')
20
         self.__header.append(s)
21
 
22
     def b(self, s):
23
-        if isinstance(s, unicode):
24
-            s = s.encode('utf-8')
25
+        if isinstance(s, bytes):
26
+            s = str(s, 'ascii')
27
         self.__body.append(s)
28
 
29
     def d(self, s):
30
-        if isinstance(s, unicode):
31
-            s = s.encode('utf-8')
32
+        if isinstance(s, bytes):
33
+            s = str(s, 'ascii')
34
         self.__docs.append(s)
35
 
36
     def do_node(self, node):
37
@@ -733,7 +733,7 @@ class Generator(object):
38
 
39
     def __call__(self):
40
         nodes = self.dom.getElementsByTagName('node')
41
-        nodes.sort(cmp_by_name)
42
+        nodes.sort(key=lambda node : node.getAttributeNode('name').nodeValue)
43
 
44
         self.h('#include <glib-object.h>')
45
         self.h('#include <dbus/dbus-glib.h>')
46
@@ -766,7 +766,7 @@ class Generator(object):
47
         file_set_contents(self.basename + '-gtk-doc.h', '\n'.join(self.__docs))
48
 
49
 def cmdline_error():
50
-    print """\
51
+    print("""\
52
 usage:
53
     gen-ginterface [OPTIONS] xmlfile Prefix_
54
 options:
55
@@ -786,7 +786,7 @@ options:
56
             void symbol (DBusGMethodInvocation *context)
57
         and return some sort of "not implemented" error via
58
             dbus_g_method_return_error (context, ...)
59
-"""
60
+""")
61
     sys.exit(1)
62
 
63
 
(-)net-im/telepathy-gabble/files/patch-tools_glib-gtypes-generator.py (+19 lines)
Added Link Here
1
--- tools/glib-gtypes-generator.py.orig	2014-05-07 14:28:02 UTC
2
+++ tools/glib-gtypes-generator.py
3
@@ -68,13 +68,13 @@ class GTypesGenerator(object):
4
         self.need_other_arrays = {}
5
 
6
     def h(self, code):
7
-        self.header.append(code.encode("utf-8"))
8
+        self.header.append(code)
9
 
10
     def c(self, code):
11
-        self.body.append(code.encode("utf-8"))
12
+        self.body.append(code)
13
 
14
     def d(self, code):
15
-        self.docs.append(code.encode('utf-8'))
16
+        self.docs.append(code)
17
 
18
     def do_mapping_header(self, mapping):
19
         members = mapping.getElementsByTagNameNS(NS_TP, 'member')
(-)net-im/telepathy-gabble/files/patch-tools_glib-interfaces-gen.py (+19 lines)
Added Link Here
1
--- tools/glib-interfaces-gen.py.orig	2014-05-07 14:28:02 UTC
2
+++ tools/glib-interfaces-gen.py
3
@@ -24,13 +24,13 @@ class Generator(object):
4
         self.spec = get_by_path(dom, "spec")[0]
5
 
6
     def h(self, code):
7
-        self.decls.append(code.encode('utf-8'))
8
+        self.decls.append(code)
9
 
10
     def c(self, code):
11
-        self.impls.append(code.encode('utf-8'))
12
+        self.impls.append(code)
13
 
14
     def d(self, code):
15
-        self.docs.append(code.encode('utf-8'))
16
+        self.docs.append(code)
17
 
18
     def __call__(self):
19
         for f in self.h, self.c:
(-)net-im/telepathy-gabble/files/patch-tools_gobject-foo.py (+8 lines)
Added Link Here
1
--- tools/gobject-foo.py.orig	2014-05-07 14:28:02 UTC
2
+++ tools/gobject-foo.py
3
@@ -87,4 +87,4 @@ if __name__ == '__main__':
4
 
5
     head, tail = argv
6
 
7
-    print '\n'.join(gobject_header(head, tail, as_interface=as_interface))
8
+    print('\n'.join(gobject_header(head, tail, as_interface=as_interface)))
(-)net-im/telepathy-gabble/files/patch-tools_libglibcodegen.py (+25 lines)
Added Link Here
1
--- tools/libglibcodegen.py.orig	2014-05-07 14:28:02 UTC
2
+++ tools/libglibcodegen.py
3
@@ -23,7 +23,6 @@ please make any changes there.
4
 
5
 from libtpcodegen import NS_TP, \
6
                          Signature, \
7
-                         cmp_by_name, \
8
                          escape_as_identifier, \
9
                          get_by_path, \
10
                          get_descendant_text, \
11
@@ -154,7 +153,7 @@ def type_to_gtype(s):
12
         return ("GHashTable *", "DBUS_TYPE_G_STRING_STRING_HASHTABLE", "BOXED", False)
13
     elif s[:2] == 'a{':  #some arbitrary hash tables
14
         if s[2] not in ('y', 'b', 'n', 'q', 'i', 'u', 's', 'o', 'g'):
15
-            raise Exception, "can't index a hashtable off non-basic type " + s
16
+            raise Exception("can't index a hashtable off non-basic type " + s)
17
         first = type_to_gtype(s[2])
18
         second = type_to_gtype(s[3:-1])
19
         return ("GHashTable *", "(dbus_g_type_get_map (\"GHashTable\", " + first[1] + ", " + second[1] + "))", "BOXED", False)
20
@@ -169,4 +168,4 @@ def type_to_gtype(s):
21
         return ("GValueArray *", gtype, "BOXED", True)
22
 
23
     # we just don't know ..
24
-    raise Exception, "don't know the GType for " + s
25
+    raise Exception("don't know the GType for " + s)
(-)net-im/telepathy-gabble/files/patch-tools_libtpcodegen.py (+14 lines)
Added Link Here
1
--- tools/libtpcodegen.py.orig	2014-05-07 14:28:02 UTC
2
+++ tools/libtpcodegen.py
3
@@ -167,7 +167,10 @@ class _SignatureIter:
4
     def __init__(self, string):
5
         self.remaining = string
6
 
7
-    def next(self):
8
+    def __iter__(self):
9
+        self
10
+
11
+    def __next__(self):
12
         if self.remaining == '':
13
             raise StopIteration
14
 
(-)net-im/telepathy-gabble/files/patch-tools_make-release-mail.py (+39 lines)
Added Link Here
1
--- tools/make-release-mail.py.orig	2013-10-09 23:29:36 UTC
2
+++ tools/make-release-mail.py
3
@@ -28,8 +28,8 @@ def extract_description(package, version, news_path):
4
                 break
5
 
6
         # Skip the ====== line, and the first blank line
7
-        lines.next()
8
-        lines.next()
9
+        next(lines)
10
+        next(lines)
11
 
12
         got_release_name = False
13
 
14
@@ -59,7 +59,7 @@ GIT_URL = 'http://cgit.freedesktop.org/telepathy'
15
 def main(package, version, news_path):
16
     release_name, details = extract_description(package, version, news_path)
17
 
18
-    print """
19
+    print("""
20
 %(release_name)s
21
 
22
 tarball: %(base_url)s/%(package)s/%(package)s-%(version)s.tar.gz
23
@@ -73,14 +73,14 @@ git: %(git_url)s/%(package)s
24
         'version': version,
25
         'release_name': release_name,
26
         'details': details,
27
-    }
28
+    })
29
 
30
 if __name__ == '__main__':
31
     try:
32
         package, version, news_path = sys.argv[1:]
33
 
34
         main(package, version, news_path)
35
-    except ValueError, e:
36
+    except ValueError as e:
37
         sys.stderr.write(
38
             'Usage: %s package-name package.version.number path/to/NEWS\n' %
39
             sys.argv[0])
(-)net-im/telepathy-gabble/files/patch-tools_manager-file.py (+77 lines)
Added Link Here
1
--- tools/manager-file.py.orig	2014-05-07 14:16:47 UTC
2
+++ tools/manager-file.py
3
@@ -87,18 +87,18 @@ gflags = {
4
 
5
 def write_manager(f, manager, protos):
6
     # pointless backwards compat section
7
-    print >> f, '[ConnectionManager]'
8
-    print >> f, 'BusName=org.freedesktop.Telepathy.ConnectionManager.' + manager
9
-    print >> f, 'ObjectPath=/org/freedesktop/Telepathy/ConnectionManager/' + manager
10
+    print('[ConnectionManager]', file=f)
11
+    print('BusName=org.freedesktop.Telepathy.ConnectionManager.' + manager, file=f)
12
+    print('ObjectPath=/org/freedesktop/Telepathy/ConnectionManager/' + manager, file=f)
13
 
14
     # protocols
15
-    for proto, params in protos.iteritems():
16
-        print >> f
17
-        print >> f, '[Protocol %s]' % proto
18
+    for proto, params in protos.items():
19
+        print(file=f)
20
+        print('[Protocol %s]' % proto, file=f)
21
 
22
         defaults = {}
23
 
24
-        for param, info in params.iteritems():
25
+        for param, info in params.items():
26
             dtype = info['dtype']
27
             flags = info.get('flags', '').split()
28
             struct_field = info.get('struct_field', param.replace('-', '_'))
29
@@ -115,15 +115,15 @@ def write_manager(f, manager, protos):
30
             else:
31
                 flags = ''
32
 
33
-            print >> f, 'param-%s=%s%s' % (param, desktop_string(dtype), flags)
34
+            print('param-%s=%s%s' % (param, desktop_string(dtype), flags), file=f)
35
 
36
-        for param, default in defaults.iteritems():
37
-            print >> f, 'default-%s=%s' % (param, default)
38
+        for param, default in defaults.items():
39
+            print('default-%s=%s' % (param, default), file=f)
40
 
41
 def write_c_params(f, manager, proto, struct, params):
42
-    print >> f, "static const TpCMParamSpec %s_%s_params[] = {" % (manager, proto)
43
+    print("static const TpCMParamSpec %s_%s_params[] = {" % (manager, proto), file=f)
44
 
45
-    for param, info in params.iteritems():
46
+    for param, info in params.items():
47
         dtype = info['dtype']
48
         flags = info.get('flags', '').split()
49
         struct_field = info.get('struct_field', param.replace('-', '_'))
50
@@ -146,7 +146,7 @@ def write_c_params(f, manager, proto, struct, params):
51
         else:
52
             struct_offset = 'G_STRUCT_OFFSET (%s, %s)' % (struct, struct_field)
53
 
54
-        print >> f, ('''  { %s, %s, %s,
55
+        print(('''  { %s, %s, %s,
56
     %s,
57
     %s, /* default */
58
     %s, /* struct offset */
59
@@ -154,14 +154,14 @@ def write_c_params(f, manager, proto, struct, params):
60
     %s, /* filter data */
61
     %s /* setter data */ },''' %
62
                 (c_string(param), c_string(dtype), gtypes[dtype], flags,
63
-                    default, struct_offset, filter, filter_data, setter_data))
64
+                    default, struct_offset, filter, filter_data, setter_data)), file=f)
65
 
66
-    print >> f, "  { NULL }"
67
-    print >> f, "};"
68
+    print("  { NULL }", file=f)
69
+    print("};", file=f)
70
 
71
 if __name__ == '__main__':
72
     environment = {}
73
-    execfile(sys.argv[1], environment)
74
+    exec(compile(open(sys.argv[1], "rb").read(), sys.argv[1], 'exec'), environment)
75
 
76
     filename = '%s/%s.manager' % (sys.argv[2], environment['MANAGER'])
77
     try:
(-)net-im/telepathy-gabble/files/patch-tools_xincludator.py (+32 lines)
Added Link Here
1
--- tools/xincludator.py.orig	2014-05-07 14:28:02 UTC
2
+++ tools/xincludator.py
3
@@ -1,17 +1,17 @@
4
 #!/usr/bin/python
5
 
6
 from sys import argv, stdout, stderr
7
-import codecs, locale
8
-import os
9
+import locale
10
+import os, sys
11
 import xml.dom.minidom
12
 
13
-stdout = codecs.getwriter('utf-8')(stdout)
14
+sys.stdout.reconfigure(encoding='utf-8')
15
 
16
 NS_XI = 'http://www.w3.org/2001/XInclude'
17
 
18
 def xincludate(dom, base, dropns = []):
19
     remove_attrs = []
20
-    for i in xrange(dom.documentElement.attributes.length):
21
+    for i in range(dom.documentElement.attributes.length):
22
         attr = dom.documentElement.attributes.item(i)
23
         if attr.prefix == 'xmlns':
24
             if attr.localName in dropns:
25
@@ -35,5 +35,5 @@ if __name__ == '__main__':
26
     dom = xml.dom.minidom.parse(argv[0])
27
     xincludate(dom, argv[0])
28
     xml = dom.toxml()
29
-    stdout.write(xml)
30
-    stdout.write('\n')
31
+    sys.stdout.write(xml)
32
+    sys.stdout.write('\n')

Return to bug 249570