From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Jun 20 21:20:04 2008 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 027BE106564A for ; Fri, 20 Jun 2008 21:20:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id E12B28FC20 for ; Fri, 20 Jun 2008 21:20:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m5KLK3e1043451 for ; Fri, 20 Jun 2008 21:20:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m5KLK3bO043450; Fri, 20 Jun 2008 21:20:03 GMT (envelope-from gnats) Resent-Date: Fri, 20 Jun 2008 21:20:03 GMT Resent-Message-Id: <200806202120.m5KLK3bO043450@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Ashish Shukla Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3C37B106566C for ; Fri, 20 Jun 2008 21:11:12 +0000 (UTC) (envelope-from wahjava@gmail.com) Received: from ti-out-0910.google.com (ti-out-0910.google.com [209.85.142.189]) by mx1.freebsd.org (Postfix) with ESMTP id CAEDC8FC0C for ; Fri, 20 Jun 2008 21:11:11 +0000 (UTC) (envelope-from wahjava@gmail.com) Received: by ti-out-0910.google.com with SMTP id d27so627604tid.3 for ; Fri, 20 Jun 2008 14:11:10 -0700 (PDT) Received: by 10.110.40.8 with SMTP id n8mr3168658tin.7.1213996269710; Fri, 20 Jun 2008 14:11:09 -0700 (PDT) Received: from chateau.d.lf ( [122.162.54.35]) by mx.google.com with ESMTPS id d4sm3838423tib.13.2008.06.20.14.11.06 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 20 Jun 2008 14:11:08 -0700 (PDT) Message-Id: <20080620211118.9DC3F7EEE9@chateau.d.lf> Date: Sat, 21 Jun 2008 02:41:18 +0530 (IST) From: Ashish Shukla To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/124798: [patch] irc/bitlbee is not doing SRV lookups for XMPP protocol X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Ashish Shukla List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Jun 2008 21:20:04 -0000 >Number: 124798 >Category: ports >Synopsis: [patch] irc/bitlbee is not doing SRV lookups for XMPP protocol >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Jun 20 21:20:03 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Ashish Shukla >Release: FreeBSD 7.0-RELEASE-p1 amd64 >Organization: N/A >Environment: System: FreeBSD chateau.d.lf 7.0-RELEASE-p1 FreeBSD 7.0-RELEASE-p1 #0: Sun Jun 8 15:23:17 IST 2008 toor@chateau.d.lf:/usr/obj/usr/src/sys/ULE amd64 >Description: bitlbee capable of doing SRV lookups required to detect XMPP server responsible for the domain name, is not doing it because of misconfiguration . >How-To-Repeat: 1. Connect to bitlbee instance with an irc client. 2. Authenticate to it. 3. Add an XMPP account with following command in '&bitlbee' window of IRC client. account add username@domain.tld password 4. If domain.tld is not listening on port 5222, bitlbee should do SRV DNS record lookup for _xmpp-client._tcp.domain.tld. to determine the XMPP server responsible for domain.tld. 5. Instead of performing SRV lookup, it keeps try to connect to domain.tld:5222 . So, one has to either explicitly specify a server or depend on SRV lookup. >Fix: diff -urN /usr/ports/irc/bitlbee/Makefile bitlbee/Makefile --- /usr/ports/irc/bitlbee/Makefile 2008-06-06 19:06:38.000000000 +0530 +++ bitlbee/Makefile 2008-06-20 21:25:16.000000000 +0530 @@ -7,7 +7,7 @@ PORTNAME= bitlbee PORTVERSION= 1.2 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= irc MASTER_SITES= http://get.bitlbee.org/src/ \ ${MASTER_SITE_LOCAL} diff -urN /usr/ports/irc/bitlbee/files/patch-configure bitlbee/files/patch-configure --- /usr/ports/irc/bitlbee/files/patch-configure 1970-01-01 05:30:00.000000000 +0530 +++ bitlbee/files/patch-configure 2008-06-20 21:22:54.000000000 +0530 @@ -0,0 +1,31 @@ + +$FreeBSD$ + +--- configure.orig ++++ configure +@@ -322,13 +322,19 @@ + + echo 'SSL_CLIENT=ssl_'$ssl'.o' >> Makefile.settings + +-for i in /lib /usr/lib /usr/local/lib; do +- if [ -f $i/libresolv.a ]; then ++if [ $arch = FreeBSD ]; then ++ if [ `strings /lib/libc.so.7 |grep res_query |wc -l` -gt 0 ]; then + echo '#define HAVE_RESOLV_A' >> config.h +- echo 'EFLAGS+='$i'/libresolv.a' >> Makefile.settings +- break +- fi +-done ++ fi; ++else ++ for i in /lib /usr/lib /usr/local/lib; do ++ if [ -f $i/libresolv.a ]; then ++ echo '#define HAVE_RESOLV_A' >> config.h ++ echo 'EFLAGS+='$i'/libresolv.a' >> Makefile.settings ++ break ++ fi ++ done ++fi; + + STORAGES="text xml" + >Release-Note: >Audit-Trail: >Unformatted: