Index: head/net-im/telepathy-gabble/Makefile =================================================================== --- head/net-im/telepathy-gabble/Makefile (revision 550444) +++ head/net-im/telepathy-gabble/Makefile (revision 550445) @@ -1,53 +1,53 @@ # Created by: Florent Thoumie # $FreeBSD$ PORTNAME= telepathy-gabble PORTVERSION= 0.18.3 PORTREVISION= 5 CATEGORIES= net-im MASTER_SITES= http://telepathy.freedesktop.org/releases/${PORTNAME}/ MAINTAINER= gnome@FreeBSD.org COMMENT= Jabber Connection Manager for Telepathy Framework LICENSE= LGPL21+ LICENSE_FILE= ${WRKSRC}/COPYING BUILD_DEPENDS= telepathy-glib>=0.22.0:net-im/telepathy-glib \ ca_root_nss>=0:security/ca_root_nss LIB_DEPENDS= libsoup-2.4.so:devel/libsoup \ libnice.so:net-im/libnice \ libtelepathy-glib.so:net-im/telepathy-glib \ libdbus-glib-1.so:devel/dbus-glib \ libdbus-1.so:devel/dbus \ libgnutls.so:security/gnutls \ libuuid.so:misc/e2fsprogs-libuuid \ libloudmouth-1.so:net-im/loudmouth RUN_DEPENDS= ca_root_nss>=0:security/ca_root_nss \ libnice-gst1>=0:net-im/libnice-gst1 PORTSCOUT= limitw:1,even -USES= alias gmake gnome libtool pathfix pkgconfig python:2.7,build \ +USES= alias gmake gnome libtool pathfix pkgconfig python:build \ shebangfix sqlite ssl USE_GNOME= glib20 gtksourceview3 libxslt:build GNU_CONFIGURE= yes CONFIGURE_ARGS= --with-ca-certificates=${LOCALBASE}/share/certs/ca-root-nss.crt CONFIGURE_ENV= LIBS="-pthread" INSTALL_TARGET= install-strip SHEBANG_FILES= plugins/telepathy-gabble-xmpp-console PLIST_SUB= PVERSION=${PORTVERSION} .include .if ${SSL_DEFAULT} == base CONFIGURE_ENV+= OPENSSL_LIBS="-L/usr/lib -ssl -crypto" OPENSSL_CFLAGS="-I/usr/include" .endif post-patch: @${REINPLACE_CMD} -e 's|-Werror||g' \ ${WRKSRC}/lib/ext/wocky/configure .include Index: head/net-im/telepathy-gabble/distinfo =================================================================== --- head/net-im/telepathy-gabble/distinfo (revision 550444) +++ head/net-im/telepathy-gabble/distinfo (revision 550445) @@ -1,2 +1,3 @@ +TIMESTAMP = 1600948310 SHA256 (telepathy-gabble-0.18.3.tar.gz) = 8ec714607e9bcb8d5a3f44adf871e7b07d5db8e326e47536e74e09cba59989c2 SIZE (telepathy-gabble-0.18.3.tar.gz) = 2793195 Index: head/net-im/telepathy-gabble/files/patch-Makefile.in =================================================================== --- head/net-im/telepathy-gabble/files/patch-Makefile.in (revision 550444) +++ head/net-im/telepathy-gabble/files/patch-Makefile.in (revision 550445) @@ -1,11 +1,11 @@ ---- Makefile.in.orig 2010-09-18 17:29:38.000000000 +0000 -+++ Makefile.in 2010-09-18 17:29:53.000000000 +0000 -@@ -267,7 +267,7 @@ +--- Makefile.in.orig 2020-09-24 11:51:08 UTC ++++ Makefile.in +@@ -349,7 +349,7 @@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ ACLOCAL_AMFLAGS = -I m4 -SUBDIRS = docs tools extensions lib src data m4 plugins tests gabble +SUBDIRS = docs tools extensions lib src data m4 plugins gabble DISTCHECK_CONFIGURE_FLAGS = --disable-debug --enable-gtk-doc CLEANFILES = FIXME.out LCOV_CHECK_ARGS = CHECK_TWISTED_SLEEP=6 Index: head/net-im/telepathy-gabble/files/patch-lib_gibber_gibber-unix-transport.c =================================================================== --- head/net-im/telepathy-gabble/files/patch-lib_gibber_gibber-unix-transport.c (revision 550444) +++ head/net-im/telepathy-gabble/files/patch-lib_gibber_gibber-unix-transport.c (revision 550445) @@ -1,181 +1,181 @@ ---- lib/gibber/gibber-unix-transport.c.orig 2010-06-09 16:09:58.000000000 +0000 -+++ lib/gibber/gibber-unix-transport.c 2010-09-18 21:24:44.000000000 +0000 -@@ -375,6 +375,167 @@ gibber_unix_transport_recv_credentials ( +--- lib/gibber/gibber-unix-transport.c.orig 2013-10-04 15:51:47 UTC ++++ lib/gibber/gibber-unix-transport.c +@@ -374,6 +374,167 @@ gibber_unix_transport_recv_credentials (GibberUnixTran return TRUE; } +/* End Linux part */ +#elif defined(__FreeBSD__) + +gboolean +gibber_unix_transport_send_credentials (GibberUnixTransport *transport, + const guint8 *data, + gsize size) +{ + int fd, ret; + struct msghdr msg; + struct iovec iov; + union { + struct cmsghdr hdr; + char cred[CMSG_SPACE (sizeof (struct cmsgcred))]; + } cmsg; + + DEBUG ("send credentials"); + fd = GIBBER_FD_TRANSPORT (transport)->fd; + + /* Set the message payload */ + memset (&iov, 0, sizeof (iov)); + iov.iov_base = (void *) data; + iov.iov_len = size; + + memset (&msg, 0, sizeof (msg)); + msg.msg_iov = &iov; + msg.msg_iovlen = 1; + msg.msg_control = (caddr_t) &cmsg; + msg.msg_controllen = CMSG_SPACE (sizeof (struct cmsgcred)); + memset (&cmsg, 0, sizeof (cmsg)); + cmsg.hdr.cmsg_len = CMSG_LEN (sizeof (struct cmsgcred)); + cmsg.hdr.cmsg_level = SOL_SOCKET; + cmsg.hdr.cmsg_type = SCM_CREDS; + + ret = sendmsg (fd, &msg, 0); + if (ret == -1) + { + DEBUG ("sendmsg failed: %s", g_strerror (errno)); + return FALSE; + } + + return TRUE; +} + +gboolean +gibber_unix_transport_recv_credentials (GibberUnixTransport *self, + GibberUnixTransportRecvCredentialsCb callback, + gpointer user_data) +{ + GibberUnixTransportPrivate *priv = GIBBER_UNIX_TRANSPORT_GET_PRIVATE (self); + + if (priv->recv_creds_cb != NULL) + { + DEBUG ("already waiting for credentials"); + return FALSE; + } + + priv->recv_creds_cb = callback; + priv->recv_creds_data = user_data; + return TRUE; +} + +gboolean +gibber_unix_transport_supports_credentials (void) +{ + return TRUE; +} + +#define BUFSIZE 1024 + +static GibberFdIOResult +gibber_unix_transport_read (GibberFdTransport *transport, + GIOChannel *channel, + GError **error) +{ + GibberUnixTransport *self = GIBBER_UNIX_TRANSPORT (transport); + GibberUnixTransportPrivate *priv = GIBBER_UNIX_TRANSPORT_GET_PRIVATE (self); + int fd; + guint8 buffer[BUFSIZE]; + ssize_t bytes_read; + GibberBuffer buf; + struct iovec iov; + struct msghdr msg; + struct cmsgcred *cred; + union { + struct cmsghdr hdr; + char cred[CMSG_SPACE (sizeof *cred)]; + } cmsg; + int opt; + + if (priv->recv_creds_cb == NULL) + return gibber_fd_transport_read (transport, channel, error); + + /* We are waiting for credentials */ + fd = transport->fd; + + memset (buffer, 0, sizeof (buffer)); + memset (&iov, 0, sizeof (iov)); + iov.iov_base = buffer; + iov.iov_len = sizeof (buffer); + + memset (&msg, 0, sizeof (msg)); + msg.msg_iov = &iov; + msg.msg_iovlen = 1; + msg.msg_control = (caddr_t) &cmsg; + msg.msg_controllen = CMSG_SPACE (sizeof *cred); + + bytes_read = recvmsg (fd, &msg, 0); + + if (bytes_read == -1) + { + GError *err = NULL; + + g_set_error_literal (&err, G_IO_CHANNEL_ERROR, + g_io_channel_error_from_errno (errno), "recvmsg failed"); + + priv->recv_creds_cb (self, NULL, NULL, err, priv->recv_creds_data); + g_propagate_error (error, err); + + priv->recv_creds_cb = NULL; + priv->recv_creds_data = NULL; + return GIBBER_FD_IO_RESULT_ERROR; + } + + buf.data = buffer; + buf.length = bytes_read; + + /* extract the credentials */ + if (cmsg.hdr.cmsg_len < CMSG_LEN (sizeof *cred) || + cmsg.hdr.cmsg_type != SCM_CREDS) + { + GError *err = NULL; + + DEBUG ("Message doesn't contain credentials"); + + g_set_error_literal (&err, GIBBER_UNIX_TRANSPORT_ERROR, + GIBBER_UNIX_TRANSPORT_ERROR_NO_CREDENTIALS, + "no credentials received"); + + priv->recv_creds_cb (self, &buf, NULL, err, priv->recv_creds_data); + g_error_free (err); + } + else + { + GibberCredentials credentials; + + cred = (struct cmsgcred *) CMSG_DATA (&cmsg.hdr); + credentials.pid = cred->cmcred_pid; + credentials.uid = cred->cmcred_uid; + credentials.gid = cred->cmcred_gid; + + priv->recv_creds_cb (self, &buf, &credentials, NULL, + priv->recv_creds_data); + } + + priv->recv_creds_cb = NULL; + priv->recv_creds_data = NULL; + return GIBBER_FD_IO_RESULT_SUCCESS; +} + +/* End FreeBSD part */ #else /* OSs where we have no implementation */ gboolean -@@ -393,9 +554,7 @@ gibber_unix_transport_recv_credentials ( +@@ -392,9 +553,7 @@ gibber_unix_transport_recv_credentials (GibberUnixTran } gboolean -gibber_unix_transport_send_credentials (GibberUnixTransport *transport, - const guint8 *data, - gsize size) +gibber_unix_transport_send_credentials (void) { DEBUG ("stub implementation, failing"); return FALSE; Index: head/net-im/telepathy-gabble/files/patch-tools_c-constants-gen.py =================================================================== --- head/net-im/telepathy-gabble/files/patch-tools_c-constants-gen.py (nonexistent) +++ head/net-im/telepathy-gabble/files/patch-tools_c-constants-gen.py (revision 550445) @@ -0,0 +1,24 @@ +--- tools/c-constants-gen.py.orig 2014-05-07 14:28:43 UTC ++++ tools/c-constants-gen.py +@@ -12,7 +12,7 @@ class Generator(object): + self.prefix = prefix + '_' + self.spec = get_by_path(dom, "spec")[0] + +- self.output_base = output_base ++ self.output_base = output_base + self.__header = [] + self.__docs = [] + +@@ -25,10 +25,10 @@ class Generator(object): + file_set_contents(self.output_base + '-gtk-doc.h', ''.join(self.__docs)) + + def write(self, code): +- self.__header.append(code.encode('utf-8')) ++ self.__header.append(code) + + def d(self, code): +- self.__docs.append(code.encode('utf-8')) ++ self.__docs.append(code) + + # Header + def do_header(self): Property changes on: head/net-im/telepathy-gabble/files/patch-tools_c-constants-gen.py ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/net-im/telepathy-gabble/files/patch-tools_glib-client-gen.py =================================================================== --- head/net-im/telepathy-gabble/files/patch-tools_glib-client-gen.py (nonexistent) +++ head/net-im/telepathy-gabble/files/patch-tools_glib-client-gen.py (revision 550445) @@ -0,0 +1,23 @@ +--- tools/glib-client-gen.py.orig 2014-05-07 14:28:02 UTC ++++ tools/glib-client-gen.py +@@ -74,17 +74,17 @@ class Generator(object): + self.guard = opts.get('--guard', None) + + def h(self, s): +- if isinstance(s, unicode): ++ if isinstance(s, str): + s = s.encode('utf-8') + self.__header.append(s) + + def b(self, s): +- if isinstance(s, unicode): ++ if isinstance(s, str): + s = s.encode('utf-8') + self.__body.append(s) + + def d(self, s): +- if isinstance(s, unicode): ++ if isinstance(s, str): + s = s.encode('utf-8') + self.__docs.append(s) + Property changes on: head/net-im/telepathy-gabble/files/patch-tools_glib-client-gen.py ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/net-im/telepathy-gabble/files/patch-tools_glib-client-marshaller-gen.py =================================================================== --- head/net-im/telepathy-gabble/files/patch-tools_glib-client-marshaller-gen.py (nonexistent) +++ head/net-im/telepathy-gabble/files/patch-tools_glib-client-marshaller-gen.py (revision 550445) @@ -0,0 +1,37 @@ +--- tools/glib-client-marshaller-gen.py.orig 2014-05-07 14:28:02 UTC ++++ tools/glib-client-marshaller-gen.py +@@ -31,23 +31,23 @@ 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 = list(self.marshallers.keys()) ++ sorted(all) + for marshaller in all: + rhs = self.marshallers[marshaller] + +- print ' dbus_g_object_register_marshaller (' +- print ' g_cclosure_marshal_generic,' +- print ' G_TYPE_NONE, /* return */' ++ print(' dbus_g_object_register_marshaller (') ++ print(' g_cclosure_marshal_generic,') ++ 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): Property changes on: head/net-im/telepathy-gabble/files/patch-tools_glib-client-marshaller-gen.py ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/net-im/telepathy-gabble/files/patch-tools_glib-errors-str-gen.py =================================================================== --- head/net-im/telepathy-gabble/files/patch-tools_glib-errors-str-gen.py (nonexistent) +++ head/net-im/telepathy-gabble/files/patch-tools_glib-errors-str-gen.py (revision 550445) @@ -0,0 +1,23 @@ +--- tools/glib-errors-str-gen.py.orig 2014-05-07 14:28:02 UTC ++++ tools/glib-errors-str-gen.py +@@ -17,17 +17,17 @@ class Generator(object): + self.__docs = [] + + def h(self, s): +- if isinstance(s, unicode): ++ if isinstance(s, str): + s = s.encode('utf-8') + self.__header.append(s) + + def b(self, s): +- if isinstance(s, unicode): ++ if isinstance(s, str): + s = s.encode('utf-8') + self.__body.append(s) + + def d(self, s): +- if isinstance(s, unicode): ++ if isinstance(s, str): + s = s.encode('utf-8') + self.__docs.append(s) + Property changes on: head/net-im/telepathy-gabble/files/patch-tools_glib-errors-str-gen.py ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/net-im/telepathy-gabble/files/patch-tools_glib-ginterface-gen.py =================================================================== --- head/net-im/telepathy-gabble/files/patch-tools_glib-ginterface-gen.py (nonexistent) +++ head/net-im/telepathy-gabble/files/patch-tools_glib-ginterface-gen.py (revision 550445) @@ -0,0 +1,63 @@ +--- tools/glib-ginterface-gen.py.orig 2014-05-07 14:28:02 UTC ++++ tools/glib-ginterface-gen.py +@@ -27,7 +27,7 @@ import os.path + import xml.dom.minidom + + from libtpcodegen import file_set_contents +-from libglibcodegen import Signature, type_to_gtype, cmp_by_name, \ ++from libglibcodegen import Signature, type_to_gtype, \ + NS_TP, dbus_gutils_wincaps_to_uscore + + +@@ -85,18 +85,18 @@ class Generator(object): + self.allow_havoc = allow_havoc + + def h(self, s): +- if isinstance(s, unicode): +- s = s.encode('utf-8') ++ if isinstance(s, bytes): ++ s = str(s, 'ascii') + self.__header.append(s) + + def b(self, s): +- if isinstance(s, unicode): +- s = s.encode('utf-8') ++ if isinstance(s, bytes): ++ s = str(s, 'ascii') + self.__body.append(s) + + def d(self, s): +- if isinstance(s, unicode): +- s = s.encode('utf-8') ++ if isinstance(s, bytes): ++ s = str(s, 'ascii') + self.__docs.append(s) + + def do_node(self, node): +@@ -733,7 +733,7 @@ class Generator(object): + + def __call__(self): + nodes = self.dom.getElementsByTagName('node') +- nodes.sort(cmp_by_name) ++ nodes.sort(key=lambda node : node.getAttributeNode('name').nodeValue) + + self.h('#include ') + self.h('#include ') +@@ -766,7 +766,7 @@ class Generator(object): + file_set_contents(self.basename + '-gtk-doc.h', '\n'.join(self.__docs)) + + def cmdline_error(): +- print """\ ++ print("""\ + usage: + gen-ginterface [OPTIONS] xmlfile Prefix_ + options: +@@ -786,7 +786,7 @@ options: + void symbol (DBusGMethodInvocation *context) + and return some sort of "not implemented" error via + dbus_g_method_return_error (context, ...) +-""" ++""") + sys.exit(1) + + Property changes on: head/net-im/telepathy-gabble/files/patch-tools_glib-ginterface-gen.py ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/net-im/telepathy-gabble/files/patch-tools_glib-gtypes-generator.py =================================================================== --- head/net-im/telepathy-gabble/files/patch-tools_glib-gtypes-generator.py (nonexistent) +++ head/net-im/telepathy-gabble/files/patch-tools_glib-gtypes-generator.py (revision 550445) @@ -0,0 +1,19 @@ +--- tools/glib-gtypes-generator.py.orig 2014-05-07 14:28:02 UTC ++++ tools/glib-gtypes-generator.py +@@ -68,13 +68,13 @@ class GTypesGenerator(object): + self.need_other_arrays = {} + + def h(self, code): +- self.header.append(code.encode("utf-8")) ++ self.header.append(code) + + def c(self, code): +- self.body.append(code.encode("utf-8")) ++ self.body.append(code) + + def d(self, code): +- self.docs.append(code.encode('utf-8')) ++ self.docs.append(code) + + def do_mapping_header(self, mapping): + members = mapping.getElementsByTagNameNS(NS_TP, 'member') Property changes on: head/net-im/telepathy-gabble/files/patch-tools_glib-gtypes-generator.py ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/net-im/telepathy-gabble/files/patch-tools_glib-interfaces-gen.py =================================================================== --- head/net-im/telepathy-gabble/files/patch-tools_glib-interfaces-gen.py (nonexistent) +++ head/net-im/telepathy-gabble/files/patch-tools_glib-interfaces-gen.py (revision 550445) @@ -0,0 +1,19 @@ +--- tools/glib-interfaces-gen.py.orig 2014-05-07 14:28:02 UTC ++++ tools/glib-interfaces-gen.py +@@ -24,13 +24,13 @@ class Generator(object): + self.spec = get_by_path(dom, "spec")[0] + + def h(self, code): +- self.decls.append(code.encode('utf-8')) ++ self.decls.append(code) + + def c(self, code): +- self.impls.append(code.encode('utf-8')) ++ self.impls.append(code) + + def d(self, code): +- self.docs.append(code.encode('utf-8')) ++ self.docs.append(code) + + def __call__(self): + for f in self.h, self.c: Property changes on: head/net-im/telepathy-gabble/files/patch-tools_glib-interfaces-gen.py ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/net-im/telepathy-gabble/files/patch-tools_gobject-foo.py =================================================================== --- head/net-im/telepathy-gabble/files/patch-tools_gobject-foo.py (nonexistent) +++ head/net-im/telepathy-gabble/files/patch-tools_gobject-foo.py (revision 550445) @@ -0,0 +1,8 @@ +--- tools/gobject-foo.py.orig 2014-05-07 14:28:02 UTC ++++ tools/gobject-foo.py +@@ -87,4 +87,4 @@ if __name__ == '__main__': + + head, tail = argv + +- print '\n'.join(gobject_header(head, tail, as_interface=as_interface)) ++ print('\n'.join(gobject_header(head, tail, as_interface=as_interface))) Property changes on: head/net-im/telepathy-gabble/files/patch-tools_gobject-foo.py ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/net-im/telepathy-gabble/files/patch-tools_libglibcodegen.py =================================================================== --- head/net-im/telepathy-gabble/files/patch-tools_libglibcodegen.py (nonexistent) +++ head/net-im/telepathy-gabble/files/patch-tools_libglibcodegen.py (revision 550445) @@ -0,0 +1,25 @@ +--- tools/libglibcodegen.py.orig 2014-05-07 14:28:02 UTC ++++ tools/libglibcodegen.py +@@ -23,7 +23,6 @@ please make any changes there. + + from libtpcodegen import NS_TP, \ + Signature, \ +- cmp_by_name, \ + escape_as_identifier, \ + get_by_path, \ + get_descendant_text, \ +@@ -154,7 +153,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) +@@ -169,4 +168,4 @@ 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) Property changes on: head/net-im/telepathy-gabble/files/patch-tools_libglibcodegen.py ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/net-im/telepathy-gabble/files/patch-tools_libtpcodegen.py =================================================================== --- head/net-im/telepathy-gabble/files/patch-tools_libtpcodegen.py (nonexistent) +++ head/net-im/telepathy-gabble/files/patch-tools_libtpcodegen.py (revision 550445) @@ -0,0 +1,14 @@ +--- tools/libtpcodegen.py.orig 2014-05-07 14:28:02 UTC ++++ tools/libtpcodegen.py +@@ -167,7 +167,10 @@ class _SignatureIter: + def __init__(self, string): + self.remaining = string + +- def next(self): ++ def __iter__(self): ++ self ++ ++ def __next__(self): + if self.remaining == '': + raise StopIteration + Property changes on: head/net-im/telepathy-gabble/files/patch-tools_libtpcodegen.py ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/net-im/telepathy-gabble/files/patch-tools_make-release-mail.py =================================================================== --- head/net-im/telepathy-gabble/files/patch-tools_make-release-mail.py (nonexistent) +++ head/net-im/telepathy-gabble/files/patch-tools_make-release-mail.py (revision 550445) @@ -0,0 +1,39 @@ +--- tools/make-release-mail.py.orig 2013-10-09 23:29:36 UTC ++++ tools/make-release-mail.py +@@ -28,8 +28,8 @@ def extract_description(package, version, news_path): + break + + # Skip the ====== line, and the first blank line +- lines.next() +- lines.next() ++ next(lines) ++ next(lines) + + got_release_name = False + +@@ -59,7 +59,7 @@ GIT_URL = 'http://cgit.freedesktop.org/telepathy' + def main(package, version, news_path): + release_name, details = extract_description(package, version, news_path) + +- print """ ++ print(""" + %(release_name)s + + tarball: %(base_url)s/%(package)s/%(package)s-%(version)s.tar.gz +@@ -73,14 +73,14 @@ git: %(git_url)s/%(package)s + 'version': version, + 'release_name': release_name, + 'details': details, +- } ++ }) + + if __name__ == '__main__': + try: + package, version, news_path = sys.argv[1:] + + main(package, version, news_path) +- except ValueError, e: ++ except ValueError as e: + sys.stderr.write( + 'Usage: %s package-name package.version.number path/to/NEWS\n' % + sys.argv[0]) Property changes on: head/net-im/telepathy-gabble/files/patch-tools_make-release-mail.py ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/net-im/telepathy-gabble/files/patch-tools_manager-file.py =================================================================== --- head/net-im/telepathy-gabble/files/patch-tools_manager-file.py (nonexistent) +++ head/net-im/telepathy-gabble/files/patch-tools_manager-file.py (revision 550445) @@ -0,0 +1,77 @@ +--- tools/manager-file.py.orig 2014-05-07 14:16:47 UTC ++++ tools/manager-file.py +@@ -87,18 +87,18 @@ gflags = { + + def write_manager(f, manager, protos): + # pointless backwards compat section +- print >> f, '[ConnectionManager]' +- print >> f, 'BusName=org.freedesktop.Telepathy.ConnectionManager.' + manager +- print >> f, 'ObjectPath=/org/freedesktop/Telepathy/ConnectionManager/' + manager ++ print('[ConnectionManager]', file=f) ++ print('BusName=org.freedesktop.Telepathy.ConnectionManager.' + manager, file=f) ++ print('ObjectPath=/org/freedesktop/Telepathy/ConnectionManager/' + manager, file=f) + + # protocols +- for proto, params in protos.iteritems(): +- print >> f +- print >> f, '[Protocol %s]' % proto ++ for proto, params in protos.items(): ++ print(file=f) ++ print('[Protocol %s]' % proto, file=f) + + defaults = {} + +- for param, info in params.iteritems(): ++ for param, info in params.items(): + dtype = info['dtype'] + flags = info.get('flags', '').split() + struct_field = info.get('struct_field', param.replace('-', '_')) +@@ -115,15 +115,15 @@ def write_manager(f, manager, protos): + else: + flags = '' + +- print >> f, 'param-%s=%s%s' % (param, desktop_string(dtype), flags) ++ print('param-%s=%s%s' % (param, desktop_string(dtype), flags), file=f) + +- for param, default in defaults.iteritems(): +- print >> f, 'default-%s=%s' % (param, default) ++ for param, default in defaults.items(): ++ print('default-%s=%s' % (param, default), file=f) + + def write_c_params(f, manager, proto, struct, params): +- print >> f, "static const TpCMParamSpec %s_%s_params[] = {" % (manager, proto) ++ print("static const TpCMParamSpec %s_%s_params[] = {" % (manager, proto), file=f) + +- for param, info in params.iteritems(): ++ for param, info in params.items(): + dtype = info['dtype'] + flags = info.get('flags', '').split() + struct_field = info.get('struct_field', param.replace('-', '_')) +@@ -146,7 +146,7 @@ def write_c_params(f, manager, proto, struct, params): + else: + struct_offset = 'G_STRUCT_OFFSET (%s, %s)' % (struct, struct_field) + +- print >> f, (''' { %s, %s, %s, ++ print((''' { %s, %s, %s, + %s, + %s, /* default */ + %s, /* struct offset */ +@@ -154,14 +154,14 @@ def write_c_params(f, manager, proto, struct, params): + %s, /* filter data */ + %s /* setter data */ },''' % + (c_string(param), c_string(dtype), gtypes[dtype], flags, +- default, struct_offset, filter, filter_data, setter_data)) ++ default, struct_offset, filter, filter_data, setter_data)), file=f) + +- print >> f, " { NULL }" +- print >> f, "};" ++ print(" { NULL }", file=f) ++ print("};", file=f) + + if __name__ == '__main__': + environment = {} +- execfile(sys.argv[1], environment) ++ exec(compile(open(sys.argv[1], "rb").read(), sys.argv[1], 'exec'), environment) + + filename = '%s/%s.manager' % (sys.argv[2], environment['MANAGER']) + try: Property changes on: head/net-im/telepathy-gabble/files/patch-tools_manager-file.py ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/net-im/telepathy-gabble/files/patch-tools_xincludator.py =================================================================== --- head/net-im/telepathy-gabble/files/patch-tools_xincludator.py (nonexistent) +++ head/net-im/telepathy-gabble/files/patch-tools_xincludator.py (revision 550445) @@ -0,0 +1,32 @@ +--- tools/xincludator.py.orig 2014-05-07 14:28:02 UTC ++++ tools/xincludator.py +@@ -1,17 +1,17 @@ + #!/usr/bin/python + + from sys import argv, stdout, stderr +-import codecs, locale +-import os ++import locale ++import os, sys + import xml.dom.minidom + +-stdout = codecs.getwriter('utf-8')(stdout) ++sys.stdout.reconfigure(encoding='utf-8') + + NS_XI = 'http://www.w3.org/2001/XInclude' + + def xincludate(dom, base, dropns = []): + remove_attrs = [] +- for i in xrange(dom.documentElement.attributes.length): ++ for i in range(dom.documentElement.attributes.length): + attr = dom.documentElement.attributes.item(i) + if attr.prefix == 'xmlns': + if attr.localName in dropns: +@@ -35,5 +35,5 @@ if __name__ == '__main__': + dom = xml.dom.minidom.parse(argv[0]) + xincludate(dom, argv[0]) + xml = dom.toxml() +- stdout.write(xml) +- stdout.write('\n') ++ sys.stdout.write(xml) ++ sys.stdout.write('\n') Property changes on: head/net-im/telepathy-gabble/files/patch-tools_xincludator.py ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/net-im/telepathy-glib/Makefile =================================================================== --- head/net-im/telepathy-glib/Makefile (revision 550444) +++ head/net-im/telepathy-glib/Makefile (revision 550445) @@ -1,30 +1,30 @@ # Created by: gnome@freebsd.org # $FreeBSD$ # $MCom: ports/trunk/net-im/telepathy-glib/Makefile 20031 2014-11-02 21:47:55Z kwm $ PORTNAME= telepathy-glib PORTVERSION= 0.24.1 PORTREVISION= 1 CATEGORIES= net-im MASTER_SITES= http://telepathy.freedesktop.org/releases/${PORTNAME}/ MAINTAINER= gnome@FreeBSD.org COMMENT= GLib utility library for the Telepathy framework LICENSE= LGPL21+ LICENSE_FILE= ${WRKSRC}/COPYING BUILD_DEPENDS= vapigen:lang/vala LIB_DEPENDS= libdbus-glib-1.so:devel/dbus-glib RUN_DEPENDS= vapigen:lang/vala PORTSCOUT= limitw:1,even -USES= gmake gnome libtool pathfix pkgconfig python:2.7,build +USES= gmake gnome libtool pathfix pkgconfig python:build USE_GNOME= glib20 introspection:build libxslt:build USE_LDCONFIG= yes GNU_CONFIGURE= yes CONFIGURE_ARGS= --enable-vala-bindings INSTALL_TARGET= install-strip .include Index: head/net-im/telepathy-idle/Makefile =================================================================== --- head/net-im/telepathy-idle/Makefile (revision 550444) +++ head/net-im/telepathy-idle/Makefile (revision 550445) @@ -1,35 +1,35 @@ # Created by: Florent Thoumie # $FreeBSD$ # $MCom: ports/trunk/net-im/telepathy-idle/Makefile 20041 2014-11-04 11:13:49Z kwm $ PORTNAME= telepathy-idle PORTVERSION= 0.2.0 PORTREVISION= 1 CATEGORIES= net-im MASTER_SITES= http://telepathy.freedesktop.org/releases/${PORTNAME}/ MAINTAINER= gnome@FreeBSD.org COMMENT= IRC Connection Manager for Telepathy Framework LIB_DEPENDS= libdbus-glib-1.so:devel/dbus-glib \ libtelepathy-glib.so:net-im/telepathy-glib -USES= gmake gnome libtool pathfix pkgconfig python:2.7,build ssl +USES= gmake gnome libtool pathfix pkgconfig python:build ssl USE_GNOME= glib20 libxslt:build GNU_CONFIGURE= yes CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib INSTALL_TARGET= install-strip .include .if ${SSL_DEFAULT} == base CONFIGURE_ENV+= OPENSSL_LIBS="-L/usr/lib -lssl -lcrypto" OPENSSL_CFLAGS="-I/usr/include" .endif post-patch: @${REINPLACE_CMD} -e 's|strnlen(\([^,]*\), [^)]*)|strlen(\1)|' \ ${WRKSRC}/src/idle-connection.c \ ${WRKSRC}/src/idle-parser.c .include Index: head/net-im/telepathy-idle/files/patch-tools_glib-ginterface-gen.py =================================================================== --- head/net-im/telepathy-idle/files/patch-tools_glib-ginterface-gen.py (nonexistent) +++ head/net-im/telepathy-idle/files/patch-tools_glib-ginterface-gen.py (revision 550445) @@ -0,0 +1,56 @@ +--- tools/glib-ginterface-gen.py.orig 2020-09-28 19:59:50 UTC ++++ tools/glib-ginterface-gen.py +@@ -22,6 +22,7 @@ + # License along with this library; if not, write to the Free Software + # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + ++import functools + import sys + import os.path + import xml.dom.minidom +@@ -85,18 +86,12 @@ class Generator(object): + self.allow_havoc = allow_havoc + + def h(self, s): +- if isinstance(s, unicode): +- s = s.encode('utf-8') + self.__header.append(s) + + def b(self, s): +- if isinstance(s, unicode): +- s = s.encode('utf-8') + self.__body.append(s) + + def d(self, s): +- if isinstance(s, unicode): +- s = s.encode('utf-8') + self.__docs.append(s) + + def do_node(self, node): +@@ -733,7 +728,7 @@ class Generator(object): + + def __call__(self): + nodes = self.dom.getElementsByTagName('node') +- nodes.sort(cmp_by_name) ++ nodes.sort(key=functools.cmp_to_key(cmp_by_name)) + + self.h('#include ') + self.h('#include ') +@@ -768,7 +763,7 @@ class Generator(object): + file_set_contents(self.basename + '-gtk-doc.h', '\n'.join(self.__docs)) + + def cmdline_error(): +- print """\ ++ print ("""\ + usage: + gen-ginterface [OPTIONS] xmlfile Prefix_ + options: +@@ -788,7 +783,7 @@ options: + void symbol (DBusGMethodInvocation *context) + and return some sort of "not implemented" error via + dbus_g_method_return_error (context, ...) +-""" ++""") + sys.exit(1) + + Property changes on: head/net-im/telepathy-idle/files/patch-tools_glib-ginterface-gen.py ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/net-im/telepathy-idle/files/patch-tools_libglibcodegen.py =================================================================== --- head/net-im/telepathy-idle/files/patch-tools_libglibcodegen.py (nonexistent) +++ head/net-im/telepathy-idle/files/patch-tools_libglibcodegen.py (revision 550445) @@ -0,0 +1,17 @@ +--- tools/libglibcodegen.py.orig 2013-09-19 15:01:59 UTC ++++ tools/libglibcodegen.py +@@ -154,7 +154,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) +@@ -169,4 +169,4 @@ 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) Property changes on: head/net-im/telepathy-idle/files/patch-tools_libglibcodegen.py ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/net-im/telepathy-logger/Makefile =================================================================== --- head/net-im/telepathy-logger/Makefile (revision 550444) +++ head/net-im/telepathy-logger/Makefile (revision 550445) @@ -1,33 +1,34 @@ # Created by: Koop Mast # $FreeBSD$ # $MCom: ports/trunk/net-im/telepathy-logger/Makefile 19955 2014-10-15 10:15:00Z gusi $ PORTNAME= telepathy-logger PORTVERSION= 0.8.2 PORTREVISION= 1 CATEGORIES= net-im MASTER_SITES= http://telepathy.freedesktop.org/releases/${PORTNAME}/ MAINTAINER= gnome@FreeBSD.org COMMENT= Logger utility library for the Telepathy framework LICENSE= LGPL21+ LICENSE_FILE= ${WRKSRC}/COPYING LIB_DEPENDS= libdbus-glib-1.so:devel/dbus-glib \ libtelepathy-glib.so:net-im/telepathy-glib USES= gettext-tools gmake gnome libtool pathfix pkgconfig \ - python:2.7,build sqlite tar:bzip2 + python:build sqlite tar:bzip2 GNU_CONFIGURE= yes USE_LDCONFIG= yes USE_GNOME= glib20 intltool libxml2 \ libxslt:build introspection:build GLIB_SCHEMAS= org.freedesktop.Telepathy.Logger.gschema.xml INSTALL_TARGET= install-strip +MAKE_ENV= PYTHONDONTWRITEBYTECODE=1 post-patch: @${REINPLACE_CMD} -e 's|/usr/bin/python|/usr/bin/env python|g' \ ${WRKSRC}/tools/*.py .include Index: head/net-im/telepathy-logger/files/patch-configure =================================================================== --- head/net-im/telepathy-logger/files/patch-configure (revision 550444) +++ head/net-im/telepathy-logger/files/patch-configure (revision 550445) @@ -1,13 +1,13 @@ ---- configure.orig 2010-08-18 14:48:05.000000000 +0200 -+++ configure 2010-08-18 14:49:13.000000000 +0200 -@@ -13281,8 +13281,8 @@ +--- configure.orig 2015-04-30 11:32:10 UTC ++++ configure +@@ -14348,8 +14348,8 @@ install-data-am: install-gsettings-schemas .SECONDARY: $(gsettings_SCHEMAS) gsettings__base_list = \ - sed "$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g" | \ - sed "$$!N;$$!N;$$!N;$$!N;s/\n/ /g" + sed '\''$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g'\'' | \ + sed '\''$$!N;$$!N;$$!N;$$!N;s/\n/ /g'\'' install-gsettings-schemas: $(gsettings_SCHEMAS:.xml=.valid) $(gsettings__enum_file) @$(NORMAL_INSTALL) Index: head/net-im/telepathy-logger/files/patch-tools_c-constants-gen.py =================================================================== --- head/net-im/telepathy-logger/files/patch-tools_c-constants-gen.py (nonexistent) +++ head/net-im/telepathy-logger/files/patch-tools_c-constants-gen.py (revision 550445) @@ -0,0 +1,39 @@ +--- tools/c-constants-gen.py.orig 2020-09-23 16:17:54 UTC ++++ tools/c-constants-gen.py +@@ -3,7 +3,7 @@ + from sys import argv, stdout, stderr + import xml.dom.minidom + +-from libtpcodegen import file_set_contents ++from libtpcodegen import file_set_contents, u + from libglibcodegen import NS_TP, get_docstring, \ + get_descendant_text, get_by_path + +@@ -12,7 +12,7 @@ class Generator(object): + self.prefix = prefix + '_' + self.spec = get_by_path(dom, "spec")[0] + +- self.output_base = output_base ++ self.output_base = output_base + self.__header = [] + self.__docs = [] + +@@ -21,14 +21,14 @@ class Generator(object): + self.do_body() + self.do_footer() + +- file_set_contents(self.output_base + '.h', ''.join(self.__header)) +- file_set_contents(self.output_base + '-gtk-doc.h', ''.join(self.__docs)) ++ file_set_contents(self.output_base + '.h', u('').join(self.__header).encode('utf-8')) ++ file_set_contents(self.output_base + '-gtk-doc.h', u('').join(self.__docs).encode('utf-8')) + + def write(self, code): +- self.__header.append(code.encode('utf-8')) ++ self.__header.append(code) + + def d(self, code): +- self.__docs.append(code.encode('utf-8')) ++ self.__docs.append(code) + + # Header + def do_header(self): Property changes on: head/net-im/telepathy-logger/files/patch-tools_c-constants-gen.py ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/net-im/telepathy-logger/files/patch-tools_glib-client-gen.py =================================================================== --- head/net-im/telepathy-logger/files/patch-tools_glib-client-gen.py (nonexistent) +++ head/net-im/telepathy-logger/files/patch-tools_glib-client-gen.py (revision 550445) @@ -0,0 +1,54 @@ +--- tools/glib-client-gen.py.orig 2020-09-23 16:17:54 UTC ++++ tools/glib-client-gen.py +@@ -27,8 +27,8 @@ import os.path + import xml.dom.minidom + from getopt import gnu_getopt + +-from libtpcodegen import file_set_contents +-from libglibcodegen import Signature, type_to_gtype, cmp_by_name, \ ++from libtpcodegen import file_set_contents, key_by_name, u ++from libglibcodegen import Signature, type_to_gtype, \ + get_docstring, xml_escape, get_deprecated + + +@@ -74,18 +74,12 @@ class Generator(object): + self.guard = opts.get('--guard', None) + + def h(self, s): +- if isinstance(s, unicode): +- s = s.encode('utf-8') + self.__header.append(s) + + def b(self, s): +- if isinstance(s, unicode): +- s = s.encode('utf-8') + self.__body.append(s) + + def d(self, s): +- if isinstance(s, unicode): +- s = s.encode('utf-8') + self.__docs.append(s) + + def get_iface_quark(self): +@@ -1187,7 +1181,7 @@ class Generator(object): + self.b('') + + nodes = self.dom.getElementsByTagName('node') +- nodes.sort(cmp_by_name) ++ nodes.sort(key=key_by_name) + + for node in nodes: + self.do_interface(node) +@@ -1240,9 +1234,9 @@ class Generator(object): + self.h('#endif /* defined (%s) */' % self.guard) + self.h('') + +- file_set_contents(self.basename + '.h', '\n'.join(self.__header)) +- file_set_contents(self.basename + '-body.h', '\n'.join(self.__body)) +- file_set_contents(self.basename + '-gtk-doc.h', '\n'.join(self.__docs)) ++ file_set_contents(self.basename + '.h', u('\n').join(self.__header).encode('utf-8')) ++ file_set_contents(self.basename + '-body.h', u('\n').join(self.__body).encode('utf-8')) ++ file_set_contents(self.basename + '-gtk-doc.h', u('\n').join(self.__docs).encode('utf-8')) + + def types_to_gtypes(types): + return [type_to_gtype(t)[1] for t in types] Property changes on: head/net-im/telepathy-logger/files/patch-tools_glib-client-gen.py ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/net-im/telepathy-logger/files/patch-tools_glib-client-marshaller-gen.py =================================================================== --- head/net-im/telepathy-logger/files/patch-tools_glib-client-marshaller-gen.py (nonexistent) +++ head/net-im/telepathy-logger/files/patch-tools_glib-client-marshaller-gen.py (revision 550445) @@ -0,0 +1,36 @@ +--- tools/glib-client-marshaller-gen.py.orig 2020-09-23 16:17:54 UTC ++++ tools/glib-client-marshaller-gen.py +@@ -31,23 +31,23 @@ 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 = list(self.marshallers.keys()) + all.sort() + for marshaller in all: + rhs = self.marshallers[marshaller] + +- print ' dbus_g_object_register_marshaller (' +- print ' g_cclosure_marshal_generic,' +- print ' G_TYPE_NONE, /* return */' ++ print(' dbus_g_object_register_marshaller (') ++ print(' g_cclosure_marshal_generic,') ++ 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): Property changes on: head/net-im/telepathy-logger/files/patch-tools_glib-client-marshaller-gen.py ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/net-im/telepathy-logger/files/patch-tools_glib-ginterface-gen.py =================================================================== --- head/net-im/telepathy-logger/files/patch-tools_glib-ginterface-gen.py (nonexistent) +++ head/net-im/telepathy-logger/files/patch-tools_glib-ginterface-gen.py (revision 550445) @@ -0,0 +1,67 @@ +--- tools/glib-ginterface-gen.py.orig 2020-09-23 16:17:54 UTC ++++ tools/glib-ginterface-gen.py +@@ -26,8 +26,8 @@ import sys + import os.path + import xml.dom.minidom + +-from libtpcodegen import file_set_contents +-from libglibcodegen import Signature, type_to_gtype, cmp_by_name, \ ++from libtpcodegen import file_set_contents, key_by_name, u ++from libglibcodegen import Signature, type_to_gtype, \ + NS_TP, dbus_gutils_wincaps_to_uscore + + +@@ -85,18 +85,12 @@ class Generator(object): + self.allow_havoc = allow_havoc + + def h(self, s): +- if isinstance(s, unicode): +- s = s.encode('utf-8') + self.__header.append(s) + + def b(self, s): +- if isinstance(s, unicode): +- s = s.encode('utf-8') + self.__body.append(s) + + def d(self, s): +- if isinstance(s, unicode): +- s = s.encode('utf-8') + self.__docs.append(s) + + def do_node(self, node): +@@ -733,7 +727,7 @@ class Generator(object): + + def __call__(self): + nodes = self.dom.getElementsByTagName('node') +- nodes.sort(cmp_by_name) ++ nodes.sort(key=key_by_name) + + self.h('#include ') + self.h('#include ') +@@ -763,12 +757,12 @@ class Generator(object): + + self.h('') + self.b('') +- file_set_contents(self.basename + '.h', '\n'.join(self.__header)) +- file_set_contents(self.basename + '.c', '\n'.join(self.__body)) +- file_set_contents(self.basename + '-gtk-doc.h', '\n'.join(self.__docs)) ++ file_set_contents(self.basename + '.h', u('\n').join(self.__header).encode('utf-8')) ++ file_set_contents(self.basename + '.c', u('\n').join(self.__body).encode('utf-8')) ++ file_set_contents(self.basename + '-gtk-doc.h', u('\n').join(self.__docs).encode('utf-8')) + + def cmdline_error(): +- print """\ ++ print("""\ + usage: + gen-ginterface [OPTIONS] xmlfile Prefix_ + options: +@@ -788,7 +782,7 @@ options: + void symbol (DBusGMethodInvocation *context) + and return some sort of "not implemented" error via + dbus_g_method_return_error (context, ...) +-""" ++""") + sys.exit(1) + + Property changes on: head/net-im/telepathy-logger/files/patch-tools_glib-ginterface-gen.py ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/net-im/telepathy-logger/files/patch-tools_glib-gtypes-generator.py =================================================================== --- head/net-im/telepathy-logger/files/patch-tools_glib-gtypes-generator.py (nonexistent) +++ head/net-im/telepathy-logger/files/patch-tools_glib-gtypes-generator.py (revision 550445) @@ -0,0 +1,41 @@ +--- tools/glib-gtypes-generator.py.orig 2020-09-23 16:17:54 UTC ++++ tools/glib-gtypes-generator.py +@@ -23,7 +23,7 @@ + import sys + import xml.dom.minidom + +-from libtpcodegen import file_set_contents ++from libtpcodegen import file_set_contents, u + from libglibcodegen import escape_as_identifier, \ + get_docstring, \ + NS_TP, \ +@@ -68,13 +68,13 @@ class GTypesGenerator(object): + self.need_other_arrays = {} + + def h(self, code): +- self.header.append(code.encode("utf-8")) ++ self.header.append(code) + + def c(self, code): +- self.body.append(code.encode("utf-8")) ++ self.body.append(code) + + def d(self, code): +- self.docs.append(code.encode('utf-8')) ++ self.docs.append(code) + + def do_mapping_header(self, mapping): + members = mapping.getElementsByTagNameNS(NS_TP, 'member') +@@ -292,9 +292,9 @@ class GTypesGenerator(object): + self.c(' return t;\n') + self.c('}\n\n') + +- file_set_contents(self.output + '.h', ''.join(self.header)) +- file_set_contents(self.output + '-body.h', ''.join(self.body)) +- file_set_contents(self.output + '-gtk-doc.h', ''.join(self.docs)) ++ file_set_contents(self.output + '.h', u('').join(self.header).encode('utf-8')) ++ file_set_contents(self.output + '-body.h', u('').join(self.body).encode('utf-8')) ++ file_set_contents(self.output + '-gtk-doc.h', u('').join(self.docs).encode('utf-8')) + + if __name__ == '__main__': + argv = sys.argv[1:] Property changes on: head/net-im/telepathy-logger/files/patch-tools_glib-gtypes-generator.py ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/net-im/telepathy-logger/files/patch-tools_glib-interfaces-gen.py =================================================================== --- head/net-im/telepathy-logger/files/patch-tools_glib-interfaces-gen.py (nonexistent) +++ head/net-im/telepathy-logger/files/patch-tools_glib-interfaces-gen.py (revision 550445) @@ -0,0 +1,40 @@ +--- tools/glib-interfaces-gen.py.orig 2020-09-23 16:17:54 UTC ++++ tools/glib-interfaces-gen.py +@@ -3,7 +3,7 @@ + from sys import argv, stdout, stderr + import xml.dom.minidom + +-from libtpcodegen import file_set_contents ++from libtpcodegen import file_set_contents, u + from libglibcodegen import NS_TP, get_docstring, \ + get_descendant_text, get_by_path + +@@ -24,22 +24,22 @@ class Generator(object): + self.spec = get_by_path(dom, "spec")[0] + + def h(self, code): +- self.decls.append(code.encode('utf-8')) ++ self.decls.append(code) + + def c(self, code): +- self.impls.append(code.encode('utf-8')) ++ self.impls.append(code) + + def d(self, code): +- self.docs.append(code.encode('utf-8')) ++ self.docs.append(code) + + def __call__(self): + for f in self.h, self.c: + self.do_header(f) + self.do_body() + +- file_set_contents(self.implfile, ''.join(self.impls)) +- file_set_contents(self.declfile, ''.join(self.decls)) +- file_set_contents(self.docfile, ''.join(self.docs)) ++ file_set_contents(self.implfile, u('').join(self.impls).encode('utf-8')) ++ file_set_contents(self.declfile, u('').join(self.decls).encode('utf-8')) ++ file_set_contents(self.docfile, u('').join(self.docs).encode('utf-8')) + + # Header + def do_header(self, f): Property changes on: head/net-im/telepathy-logger/files/patch-tools_glib-interfaces-gen.py ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/net-im/telepathy-logger/files/patch-tools_libglibcodegen.py =================================================================== --- head/net-im/telepathy-logger/files/patch-tools_libglibcodegen.py (nonexistent) +++ head/net-im/telepathy-logger/files/patch-tools_libglibcodegen.py (revision 550445) @@ -0,0 +1,17 @@ +--- tools/libglibcodegen.py.orig 2020-09-23 16:17:54 UTC ++++ tools/libglibcodegen.py +@@ -154,7 +154,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) +@@ -169,4 +169,4 @@ 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) Property changes on: head/net-im/telepathy-logger/files/patch-tools_libglibcodegen.py ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/net-im/telepathy-logger/files/patch-tools_libtpcodegen.py =================================================================== --- head/net-im/telepathy-logger/files/patch-tools_libtpcodegen.py (nonexistent) +++ head/net-im/telepathy-logger/files/patch-tools_libtpcodegen.py (revision 550445) @@ -0,0 +1,58 @@ +--- tools/libtpcodegen.py.orig 2020-09-23 16:17:54 UTC ++++ tools/libtpcodegen.py +@@ -21,6 +21,7 @@ please make any changes there. + # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + import os ++import sys + from string import ascii_letters, digits + + +@@ -28,6 +29,20 @@ NS_TP = "http://telepathy.freedesktop.org/wiki/DbusSpe + + _ASCII_ALNUM = ascii_letters + digits + ++if sys.version_info[0] >= 3: ++ def u(s): ++ """Return s, which must be a str literal with no non-ASCII characters. ++ This is like a more restricted form of the Python 2 u'' syntax. ++ """ ++ return s.encode('ascii').decode('ascii') ++else: ++ def u(s): ++ """Return a Unicode version of s, which must be a str literal ++ (a bytestring) in which each byte is an ASCII character. ++ This is like a more restricted form of the u'' syntax. ++ """ ++ return s.decode('ascii') ++ + def file_set_contents(filename, contents): + try: + os.remove(filename) +@@ -38,13 +53,15 @@ def file_set_contents(filename, contents): + except OSError: + pass + +- open(filename + '.tmp', 'w').write(contents) ++ open(filename + '.tmp', 'wb').write(contents) + os.rename(filename + '.tmp', filename) + + def cmp_by_name(node1, node2): + return cmp(node1.getAttributeNode("name").nodeValue, + node2.getAttributeNode("name").nodeValue) + ++def key_by_name(node): ++ return node.getAttributeNode("name").nodeValue + + def escape_as_identifier(identifier): + """Escape the given string to be a valid D-Bus object path or service +@@ -168,6 +185,9 @@ class _SignatureIter: + self.remaining = string + + def next(self): ++ return self.__next__() ++ ++ def __next__(self): + if self.remaining == '': + raise StopIteration + Property changes on: head/net-im/telepathy-logger/files/patch-tools_libtpcodegen.py ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/net-im/telepathy-logger/files/patch-tools_xincludator.py =================================================================== --- head/net-im/telepathy-logger/files/patch-tools_xincludator.py (nonexistent) +++ head/net-im/telepathy-logger/files/patch-tools_xincludator.py (revision 550445) @@ -0,0 +1,37 @@ +--- tools/xincludator.py.orig 2020-09-23 16:17:54 UTC ++++ tools/xincludator.py +@@ -1,17 +1,19 @@ + #!/usr/bin/env python + ++import sys + from sys import argv, stdout, stderr + import codecs, locale + import os + import xml.dom.minidom + +-stdout = codecs.getwriter('utf-8')(stdout) ++if sys.version_info[0] < 3: ++ stdout = codecs.getwriter('utf-8')(stdout) + + NS_XI = 'http://www.w3.org/2001/XInclude' + + def xincludate(dom, base, dropns = []): + remove_attrs = [] +- for i in xrange(dom.documentElement.attributes.length): ++ for i in range(dom.documentElement.attributes.length): + attr = dom.documentElement.attributes.item(i) + if attr.prefix == 'xmlns': + if attr.localName in dropns: +@@ -34,6 +36,11 @@ if __name__ == '__main__': + argv = argv[1:] + dom = xml.dom.minidom.parse(argv[0]) + xincludate(dom, argv[0]) +- xml = dom.toxml() ++ ++ if sys.version_info[0] >= 3: ++ xml = dom.toxml(encoding=None) ++ else: ++ xml = dom.toxml() ++ + stdout.write(xml) + stdout.write('\n') Property changes on: head/net-im/telepathy-logger/files/patch-tools_xincludator.py ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/net-im/telepathy-mission-control/Makefile =================================================================== --- head/net-im/telepathy-mission-control/Makefile (revision 550444) +++ head/net-im/telepathy-mission-control/Makefile (revision 550445) @@ -1,33 +1,33 @@ # Created by: Michael Johnson # $FreeBSD$ # $MCom: ports/trunk/net-im/telepathy-mission-control/Makefile 19955 2014-10-15 10:15:00Z gusi $ PORTNAME= telepathy-mission-control -PORTVERSION= 5.16.3 -PORTREVISION= 1 +PORTVERSION= 5.16.6 CATEGORIES= net-im devel MASTER_SITES= http://telepathy.freedesktop.org/releases/telepathy-mission-control/ MAINTAINER= gnome@FreeBSD.org COMMENT= Telepathy component to apps to abstract details of connection managers -LIB_DEPENDS= libtelepathy.so:net-im/libtelepathy \ - libdbus-glib-1.so:devel/dbus-glib +LIB_DEPENDS= libtelepathy-glib.so:net-im/telepathy-glib \ + libdbus-glib-1.so:devel/dbus-glib \ + libdbus-1.so:devel/dbus -USES= gmake gnome libtool pathfix pkgconfig python:2.7,build +USES= gmake gnome libtool pathfix pkgconfig python:build USE_GNOME= glib20 libxslt GNU_CONFIGURE= yes CPPFLAGS+= -I${LOCALBASE}/include LIBS+= -L${LOCALBASE}/lib CONFIGURE_ARGS+=--disable-upower USE_LDCONFIG= yes GLIB_SCHEMAS= im.telepathy.MissionControl.FromEmpathy.gschema.xml INSTALL_TARGET= install-strip PLIST_SUB= VERSION=${PORTVERSION} post-patch: @${REINPLACE_CMD} -e 's|$${datadir}/gtk-doc/html|${DOCSDIR}|' \ ${WRKSRC}/configure .include Index: head/net-im/telepathy-mission-control/distinfo =================================================================== --- head/net-im/telepathy-mission-control/distinfo (revision 550444) +++ head/net-im/telepathy-mission-control/distinfo (revision 550445) @@ -1,2 +1,3 @@ -SHA256 (telepathy-mission-control-5.16.3.tar.gz) = 71575d2ff8aa7337aca355e3d921eba5cd2ff050fabc01e51577343093e98b7d -SIZE (telepathy-mission-control-5.16.3.tar.gz) = 1096019 +TIMESTAMP = 1600879605 +SHA256 (telepathy-mission-control-5.16.6.tar.gz) = 2df8ae3995e919a7670e01aa3568215ef0777e34961ace1cac1c6477cb297a45 +SIZE (telepathy-mission-control-5.16.6.tar.gz) = 1127785 Index: head/net-im/telepathy-mission-control/pkg-plist =================================================================== --- head/net-im/telepathy-mission-control/pkg-plist (revision 550444) +++ head/net-im/telepathy-mission-control/pkg-plist (revision 550445) @@ -1,46 +1,48 @@ bin/mc-tool bin/mc-wait-for-name include/mission-control-5.5/mission-control-plugins/account-storage.h include/mission-control-5.5/mission-control-plugins/account.h include/mission-control-5.5/mission-control-plugins/dbus-acl.h include/mission-control-5.5/mission-control-plugins/debug.h include/mission-control-5.5/mission-control-plugins/dispatch-operation-policy.h include/mission-control-5.5/mission-control-plugins/dispatch-operation.h include/mission-control-5.5/mission-control-plugins/loader.h include/mission-control-5.5/mission-control-plugins/mcp-signals-marshal.h include/mission-control-5.5/mission-control-plugins/mission-control-plugins.h include/mission-control-5.5/mission-control-plugins/request-policy.h include/mission-control-5.5/mission-control-plugins/request.h lib/libmission-control-plugins.a lib/libmission-control-plugins.so lib/libmission-control-plugins.so.0 lib/libmission-control-plugins.so.0.5.1 libdata/pkgconfig/mission-control-plugins.pc libexec/mission-control-5 man/man1/mc-tool.1.gz man/man1/mc-wait-for-name.1.gz man/man8/mission-control-5.8.gz -share/doc/telepathy-mission-control/mission-control-plugins/McpAccountManager.html -share/doc/telepathy-mission-control/mission-control-plugins/McpDispatchOperation.html -share/doc/telepathy-mission-control/mission-control-plugins/McpRequest.html -share/doc/telepathy-mission-control/mission-control-plugins/annotation-glossary.html -share/doc/telepathy-mission-control/mission-control-plugins/api-index-full.html -share/doc/telepathy-mission-control/mission-control-plugins/ch01.html -share/doc/telepathy-mission-control/mission-control-plugins/ch02.html -share/doc/telepathy-mission-control/mission-control-plugins/ch03.html -share/doc/telepathy-mission-control/mission-control-plugins/ch04.html -share/doc/telepathy-mission-control/mission-control-plugins/home.png -share/doc/telepathy-mission-control/mission-control-plugins/index.html -share/doc/telepathy-mission-control/mission-control-plugins/index.sgml -share/doc/telepathy-mission-control/mission-control-plugins/left.png -share/doc/telepathy-mission-control/mission-control-plugins/mission-control-plugins-McpAccountStorage.html -share/doc/telepathy-mission-control/mission-control-plugins/mission-control-plugins-McpDispatchOperationPolicy.html -share/doc/telepathy-mission-control/mission-control-plugins/mission-control-plugins-McpRequestPolicy.html -share/doc/telepathy-mission-control/mission-control-plugins/mission-control-plugins-Plugin-loader-and-global-functions.html -share/doc/telepathy-mission-control/mission-control-plugins/mission-control-plugins.devhelp2 -share/doc/telepathy-mission-control/mission-control-plugins/object-tree.html -share/doc/telepathy-mission-control/mission-control-plugins/right.png -share/doc/telepathy-mission-control/mission-control-plugins/style.css -share/doc/telepathy-mission-control/mission-control-plugins/up.png +%%DOCSDIR%%/mission-control-plugins/McpAccountManager.html +%%DOCSDIR%%/mission-control-plugins/McpDispatchOperation.html +%%DOCSDIR%%/mission-control-plugins/McpDispatchOperationPolicy.html +%%DOCSDIR%%/mission-control-plugins/McpRequest.html +%%DOCSDIR%%/mission-control-plugins/McpRequestPolicy.html +%%DOCSDIR%%/mission-control-plugins/annotation-glossary.html +%%DOCSDIR%%/mission-control-plugins/api-index-full.html +%%DOCSDIR%%/mission-control-plugins/ch01.html +%%DOCSDIR%%/mission-control-plugins/ch02.html +%%DOCSDIR%%/mission-control-plugins/ch03.html +%%DOCSDIR%%/mission-control-plugins/ch04.html +%%DOCSDIR%%/mission-control-plugins/home.png +%%DOCSDIR%%/mission-control-plugins/index.html +%%DOCSDIR%%/mission-control-plugins/left-insensitive.png +%%DOCSDIR%%/mission-control-plugins/left.png +%%DOCSDIR%%/mission-control-plugins/mission-control-plugins-McpAccountStorage.html +%%DOCSDIR%%/mission-control-plugins/mission-control-plugins-Plugin-loader-and-global-functions.html +%%DOCSDIR%%/mission-control-plugins/mission-control-plugins.devhelp2 +%%DOCSDIR%%/mission-control-plugins/object-tree.html +%%DOCSDIR%%/mission-control-plugins/right-insensitive.png +%%DOCSDIR%%/mission-control-plugins/right.png +%%DOCSDIR%%/mission-control-plugins/style.css +%%DOCSDIR%%/mission-control-plugins/up-insensitive.png +%%DOCSDIR%%/mission-control-plugins/up.png share/dbus-1/services/org.freedesktop.Telepathy.AccountManager.service share/dbus-1/services/org.freedesktop.Telepathy.MissionControl5.service Index: head/net-im/telepathy-salut/Makefile =================================================================== --- head/net-im/telepathy-salut/Makefile (revision 550444) +++ head/net-im/telepathy-salut/Makefile (revision 550445) @@ -1,35 +1,35 @@ # Created by: Florent Thoumie # $FreeBSD$ # $MCom: ports/trunk/net-im/telepathy-salut/Makefile 19802 2014-08-13 12:13:08Z gusi $ PORTNAME= telepathy-salut PORTVERSION= 0.8.1 PORTREVISION= 2 CATEGORIES= net-im MASTER_SITES= http://telepathy.freedesktop.org/releases/${PORTNAME}/ MAINTAINER= gnome@FreeBSD.org COMMENT= Link-local Connection Manager for Telepathy Framework LICENSE= LGPL21+ LICENSE_FILE= ${WRKSRC}/COPYING LIB_DEPENDS= libavahi-glib.so:net/avahi-app \ libtelepathy-glib.so:net-im/telepathy-glib \ libsoup-2.4.so:devel/libsoup GNU_CONFIGURE= yes -USES= gmake gnome libtool pathfix pkgconfig python:2.7,build sqlite ssl +USES= gmake gnome libtool pathfix pkgconfig python:build sqlite ssl USE_GNOME= glib20 libxslt:build CONFIGURE_ARGS= --disable-Werror --enable-avahi-tests=no LDFLAGS+= -lpthread INSTALL_TARGET= install-strip PLIST_SUB+= VERSION=${PORTVERSION} post-patch: @${REINPLACE_CMD} -e 's|make -C|${GMAKE} -C|g' \ ${WRKSRC}/src/Makefile.in \ ${WRKSRC}/tests/Makefile.in .include Index: head/net-im/telepathy-salut/files/patch-lib_gibber_gibber-bytestream-oob.h =================================================================== --- head/net-im/telepathy-salut/files/patch-lib_gibber_gibber-bytestream-oob.h (revision 550444) +++ head/net-im/telepathy-salut/files/patch-lib_gibber_gibber-bytestream-oob.h (revision 550445) @@ -1,10 +1,10 @@ ---- lib/gibber/gibber-bytestream-oob.h.orig 2010-05-20 06:10:39.000000000 -0400 -+++ lib/gibber/gibber-bytestream-oob.h 2010-07-24 20:41:19.000000000 -0400 +--- lib/gibber/gibber-bytestream-oob.h.orig 2010-10-22 15:15:56 UTC ++++ lib/gibber/gibber-bytestream-oob.h @@ -20,6 +20,7 @@ #ifndef __GIBBER_BYTESTREAM_OOB_H__ #define __GIBBER_BYTESTREAM_OOB_H__ +#include #include #include "gibber-bytestream-iface.h" Index: head/net-im/telepathy-salut/files/patch-lib_gibber_gibber-muc-connection.c =================================================================== --- head/net-im/telepathy-salut/files/patch-lib_gibber_gibber-muc-connection.c (revision 550444) +++ head/net-im/telepathy-salut/files/patch-lib_gibber_gibber-muc-connection.c (revision 550445) @@ -1,10 +1,10 @@ ---- lib/gibber/gibber-muc-connection.c.orig Sun Jun 24 15:48:48 2007 -+++ lib/gibber/gibber-muc-connection.c Sun Jun 24 15:49:19 2007 +--- lib/gibber/gibber-muc-connection.c.orig 2012-11-12 14:13:18 UTC ++++ lib/gibber/gibber-muc-connection.c @@ -18,6 +18,7 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include #include #include Index: head/net-im/telepathy-salut/files/patch-lib_gibber_gibber-tcp-transport.c =================================================================== --- head/net-im/telepathy-salut/files/patch-lib_gibber_gibber-tcp-transport.c (revision 550444) +++ head/net-im/telepathy-salut/files/patch-lib_gibber_gibber-tcp-transport.c (revision 550445) @@ -1,10 +1,10 @@ ---- lib/gibber/gibber-tcp-transport.c.orig 2010-05-20 06:10:39.000000000 -0400 -+++ lib/gibber/gibber-tcp-transport.c 2010-07-24 20:42:16.000000000 -0400 +--- lib/gibber/gibber-tcp-transport.c.orig 2010-10-22 15:15:56 UTC ++++ lib/gibber/gibber-tcp-transport.c @@ -20,6 +20,7 @@ #include +#include #include #include Index: head/net-im/telepathy-salut/files/patch-lib_gibber_gibber-unix-transport.c =================================================================== --- head/net-im/telepathy-salut/files/patch-lib_gibber_gibber-unix-transport.c (revision 550444) +++ head/net-im/telepathy-salut/files/patch-lib_gibber_gibber-unix-transport.c (revision 550445) @@ -1,117 +1,118 @@ ---- lib/gibber/gibber-unix-transport.c.orig 2010-05-20 06:10:39.000000000 -0400 -+++ lib/gibber/gibber-unix-transport.c 2010-07-24 20:47:17.000000000 -0400 -@@ -217,11 +217,12 @@ gibber_unix_transport_send_credentials ( +--- lib/gibber/gibber-unix-transport.c.orig 2010-10-22 15:15:56 UTC ++++ lib/gibber/gibber-unix-transport.c +@@ -217,11 +217,12 @@ gibber_unix_transport_send_credentials (GibberUnixTran gsize size) { int fd, ret; - struct ucred *cred; struct msghdr msg; - struct cmsghdr *ch; struct iovec iov; - char buffer[CMSG_SPACE (sizeof (struct ucred))]; + union { + struct cmsghdr hdr; + char cred[CMSG_SPACE (sizeof (struct cmsgcred))]; + } buffer; DEBUG ("send credentials"); fd = GIBBER_FD_TRANSPORT (transport)->fd; -@@ -234,20 +235,14 @@ gibber_unix_transport_send_credentials ( +@@ -234,21 +235,15 @@ gibber_unix_transport_send_credentials (GibberUnixTran memset (&msg, 0, sizeof (msg)); msg.msg_iov = &iov; msg.msg_iovlen = 1; - msg.msg_control = buffer; - msg.msg_controllen = sizeof (buffer); + msg.msg_control = (caddr_t) &buffer; + msg.msg_controllen = CMSG_SPACE (sizeof (struct cmsgcred)); memset (buffer, 0, sizeof (buffer)); /* Set the credentials */ - ch = CMSG_FIRSTHDR (&msg); - ch->cmsg_len = CMSG_LEN (sizeof (struct ucred)); - ch->cmsg_level = SOL_SOCKET; - ch->cmsg_type = SCM_CREDENTIALS; -- -- cred = (struct ucred *) CMSG_DATA (ch); -- cred->pid = getpid (); -- cred->uid = getuid (); -- cred->gid = getgid (); + buffer.hdr.cmsg_len = CMSG_LEN (sizeof (struct cmsgcred)); + buffer.hdr.cmsg_level = SOL_SOCKET; + buffer.hdr.cmsg_type = SCM_CREDS; +- cred = (struct ucred *) CMSG_DATA (ch); +- cred->pid = getpid (); +- cred->uid = getuid (); +- cred->gid = getgid (); +- ret = sendmsg (fd, &msg, 0); if (ret == -1) -@@ -274,10 +269,10 @@ gibber_unix_transport_read (GibberFdTran + { +@@ -274,10 +269,10 @@ gibber_unix_transport_read (GibberFdTransport *transpo GibberBuffer buf; struct iovec iov; struct msghdr msg; - char control[CMSG_SPACE (sizeof (struct ucred))]; - struct cmsghdr *ch; - struct ucred *cred; - int opt; + union { + struct cmsghdr hdr; + char cred[CMSG_SPACE (sizeof (struct cmsgcred))]; + } control; if (priv->recv_creds_cb == NULL) return gibber_fd_transport_read (transport, channel, error); -@@ -285,10 +280,6 @@ gibber_unix_transport_read (GibberFdTran +@@ -285,10 +280,6 @@ gibber_unix_transport_read (GibberFdTransport *transpo /* We are waiting for credentials */ fd = transport->fd; - /* set SO_PASSCRED flag */ - opt = 1; - setsockopt (fd, SOL_SOCKET, SO_PASSCRED, &opt, sizeof (opt)); - memset (buffer, 0, sizeof (buffer)); memset (&iov, 0, sizeof (iov)); iov.iov_base = buffer; -@@ -297,8 +288,9 @@ gibber_unix_transport_read (GibberFdTran +@@ -297,8 +288,9 @@ gibber_unix_transport_read (GibberFdTransport *transpo memset (&msg, 0, sizeof (msg)); msg.msg_iov = &iov; msg.msg_iovlen = 1; - msg.msg_control = control; - msg.msg_controllen = sizeof (control); + memset (&control, 0, sizeof (control)); + msg.msg_control = (caddr_t) &control; + msg.msg_controllen = CMSG_SPACE (sizeof (struct cmsgcred)); bytes_read = recvmsg (fd, &msg, 0); -@@ -317,16 +309,11 @@ gibber_unix_transport_read (GibberFdTran +@@ -317,16 +309,11 @@ gibber_unix_transport_read (GibberFdTransport *transpo return GIBBER_FD_IO_RESULT_ERROR; } - /* unset SO_PASSCRED flag */ - opt = 0; - setsockopt (fd, SOL_SOCKET, SO_PASSCRED, &opt, sizeof (opt)); - buf.data = buffer; buf.length = bytes_read; /* extract the credentials */ - ch = CMSG_FIRSTHDR (&msg); - if (ch == NULL) + if (control.hdr.cmsg_len < CMSG_LEN (sizeof (struct cmsgcred)) || control.hdr.cmsg_type != SCM_CREDS) { GError *err = NULL; -@@ -342,11 +329,12 @@ gibber_unix_transport_read (GibberFdTran +@@ -342,11 +329,12 @@ gibber_unix_transport_read (GibberFdTransport *transpo else { GibberCredentials credentials; + struct cmsgcred *cred; - cred = (struct ucred *) CMSG_DATA (ch); - credentials.pid = cred->pid; - credentials.uid = cred->uid; - credentials.gid = cred->gid; + cred = (struct cmsgcred *) CMSG_DATA (&control); + credentials.pid = cred->cmcred_pid; + credentials.uid = cred->cmcred_uid; + credentials.gid = cred->cmcred_gid; priv->recv_creds_cb (self, &buf, &credentials, NULL, priv->recv_creds_data); Index: head/net-im/telepathy-salut/files/patch-tools_glib-client-marshaller-gen.py =================================================================== --- head/net-im/telepathy-salut/files/patch-tools_glib-client-marshaller-gen.py (nonexistent) +++ head/net-im/telepathy-salut/files/patch-tools_glib-client-marshaller-gen.py (revision 550445) @@ -0,0 +1,35 @@ +--- tools/glib-client-marshaller-gen.py.orig 2011-08-16 11:04:41 UTC ++++ tools/glib-client-marshaller-gen.py +@@ -31,22 +31,22 @@ 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 = list(self.marshallers.keys()) ++ sorted(all) + 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): Property changes on: head/net-im/telepathy-salut/files/patch-tools_glib-client-marshaller-gen.py ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/net-im/telepathy-salut/files/patch-tools_glib-ginterface-gen.py =================================================================== --- head/net-im/telepathy-salut/files/patch-tools_glib-ginterface-gen.py (nonexistent) +++ head/net-im/telepathy-salut/files/patch-tools_glib-ginterface-gen.py (revision 550445) @@ -0,0 +1,38 @@ +--- tools/glib-ginterface-gen.py.orig 2011-08-16 11:04:41 UTC ++++ tools/glib-ginterface-gen.py +@@ -26,7 +26,7 @@ import sys + import os.path + import xml.dom.minidom + +-from libglibcodegen import Signature, type_to_gtype, cmp_by_name, \ ++from libglibcodegen import Signature, type_to_gtype, \ + camelcase_to_lower, NS_TP, dbus_gutils_wincaps_to_uscore, \ + signal_to_marshal_name, method_to_glue_marshal_name + +@@ -620,7 +620,7 @@ class Generator(object): + self.b('') + + nodes = self.dom.getElementsByTagName('node') +- nodes.sort(cmp_by_name) ++ nodes.sort(key=lambda node : node.getAttributeNode('name').nodeValue) + + for node in nodes: + self.do_node(node) +@@ -639,7 +639,7 @@ class Generator(object): + + + def cmdline_error(): +- print """\ ++ print("""\ + usage: + gen-ginterface [OPTIONS] xmlfile Prefix_ + options: +@@ -659,7 +659,7 @@ options: + void symbol (DBusGMethodInvocation *context) + and return some sort of "not implemented" error via + dbus_g_method_return_error (context, ...) +-""" ++""") + sys.exit(1) + + Property changes on: head/net-im/telepathy-salut/files/patch-tools_glib-ginterface-gen.py ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/net-im/telepathy-salut/files/patch-tools_glib-signals-marshal-gen.py =================================================================== --- head/net-im/telepathy-salut/files/patch-tools_glib-signals-marshal-gen.py (nonexistent) +++ head/net-im/telepathy-salut/files/patch-tools_glib-signals-marshal-gen.py (revision 550445) @@ -0,0 +1,16 @@ +--- tools/glib-signals-marshal-gen.py.orig 2011-08-16 11:04:41 UTC ++++ tools/glib-signals-marshal-gen.py +@@ -42,11 +42,11 @@ class Generator(object): + self.do_signal(signal) + + all = self.marshallers.keys() +- all.sort() ++ sorted(all) + 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:] Property changes on: head/net-im/telepathy-salut/files/patch-tools_glib-signals-marshal-gen.py ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/net-im/telepathy-salut/files/patch-tools_libglibcodegen.py =================================================================== --- head/net-im/telepathy-salut/files/patch-tools_libglibcodegen.py (nonexistent) +++ head/net-im/telepathy-salut/files/patch-tools_libglibcodegen.py (revision 550445) @@ -0,0 +1,32 @@ +--- tools/libglibcodegen.py.orig 2011-07-07 15:24:48 UTC ++++ tools/libglibcodegen.py +@@ -191,7 +191,10 @@ class _SignatureIter: + def __init__(self, string): + self.remaining = string + +- def next(self): ++ def __iter__(self): ++ self ++ ++ def __next__(self): + if self.remaining == '': + raise StopIteration + +@@ -297,7 +300,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 +315,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): Property changes on: head/net-im/telepathy-salut/files/patch-tools_libglibcodegen.py ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/net-im/telepathy-salut/files/patch-tools_make-release-mail.py =================================================================== --- head/net-im/telepathy-salut/files/patch-tools_make-release-mail.py (nonexistent) +++ head/net-im/telepathy-salut/files/patch-tools_make-release-mail.py (revision 550445) @@ -0,0 +1,19 @@ +--- tools/make-release-mail.py.orig 2012-11-12 14:13:18 UTC ++++ tools/make-release-mail.py +@@ -50,14 +50,14 @@ GIT_URL = 'http://cgit.freedesktop.org/telepathy' + def main(package, version, news_path): + release_name, details = extract_description(package, version, news_path) + +- print """ ++ print(""" + %(release_name)s + + tarball: %(base_url)s/%(package)s/%(package)s-%(version)s.tar.gz + signature: %(base_url)s/%(package)s/%(package)s-%(version)s.tar.gz.asc + git: %(git_url)s/%(package)s + +-%(details)s""".strip().rstrip() % { ++%(details)s""").strip().rstrip() % { + 'base_url': BASE_URL, + 'git_url': GIT_URL, + 'package': package, Property changes on: head/net-im/telepathy-salut/files/patch-tools_make-release-mail.py ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property