On Fri, Jun 14, 2013 at 04:43:11PM +0500, dmitry.sensei wrote: > Hi! > > net/psi 0.15 from packages does not connect to any jabber server. > for exapmple vk.com jabber.ru xmpp.yandex.ru talkr.im xmpp.odnoklassniki.ru > chat.facebook.com. > [snip]
I'm sorry for the long answer, too little time. This diff should solve this issue. Now _res has minimal support: not define nsaddr_list, only nscount, therefore jdns could not determine dns server. Comments ? Ok ? -- Alexandr Shadchin Index: Makefile =================================================================== RCS file: /cvs/ports/net/psi/Makefile,v retrieving revision 1.19 diff -u -p -r1.19 Makefile --- Makefile 16 May 2013 17:20:12 -0000 1.19 +++ Makefile 14 Jul 2013 16:18:19 -0000 @@ -3,7 +3,7 @@ COMMENT= multiplatform Jabber client DISTNAME= psi-0.15 -REVISION= 0 +REVISION= 1 CATEGORIES= net HOMEPAGE= http://psi-im.org/ Index: patches/patch-iris_src_jdns_jdns_sys_c =================================================================== RCS file: /cvs/ports/net/psi/patches/patch-iris_src_jdns_jdns_sys_c,v retrieving revision 1.1 diff -u -p -r1.1 patch-iris_src_jdns_jdns_sys_c --- patches/patch-iris_src_jdns_jdns_sys_c 21 Apr 2013 13:56:27 -0000 1.1 +++ patches/patch-iris_src_jdns_jdns_sys_c 14 Jul 2013 16:18:19 -0000 @@ -1,6 +1,6 @@ $OpenBSD: patch-iris_src_jdns_jdns_sys_c,v 1.1 2013/04/21 13:56:27 shadchin Exp $ ---- iris/src/jdns/jdns_sys.c.orig Sun Apr 1 13:15:35 2012 -+++ iris/src/jdns/jdns_sys.c Sun Apr 8 14:32:54 2012 +--- iris/src/jdns/jdns_sys.c.orig Thu Oct 4 06:53:09 2012 ++++ iris/src/jdns/jdns_sys.c Sun Jul 14 21:45:39 2013 @@ -752,6 +752,7 @@ static jdns_dnsparams_t *dnsparams_get_unixsys() if(n == -1) return params; @@ -17,3 +17,21 @@ $OpenBSD: patch-iris_src_jdns_jdns_sys_c // nameservers - ipv4 for(n = 0; n < MAXNS && n < RESVAR.nscount; ++n) +@@ -829,6 +831,9 @@ static jdns_dnsparams_t *dnsparams_get_unix() + { + jdns_dnsparams_t *params; + ++#if defined(JDNS_OS_OPENBSD) ++ params = dnsparams_get_unixfiles(); ++#else + // prefer system calls over files + params = dnsparams_get_unixsys(); + if(params->nameservers->count == 0) +@@ -836,6 +841,7 @@ static jdns_dnsparams_t *dnsparams_get_unix() + jdns_dnsparams_delete(params); + params = dnsparams_get_unixfiles(); + } ++#endif + + apply_hosts_file(params, "/etc/hosts"); +