From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Jan 7 22:30:01 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 D928B16A419 for ; Mon, 7 Jan 2008 22:30:01 +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 A3C9913C458 for ; Mon, 7 Jan 2008 22:30:01 +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 m07MU1Nu040110 for ; Mon, 7 Jan 2008 22:30:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m07MU177040107; Mon, 7 Jan 2008 22:30:01 GMT (envelope-from gnats) Resent-Date: Mon, 7 Jan 2008 22:30:01 GMT Resent-Message-Id: <200801072230.m07MU177040107@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, Piotr Smyrak Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4949716A417 for ; Mon, 7 Jan 2008 22:26:17 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 28DF413C448 for ; Mon, 7 Jan 2008 22:26:17 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m07MPGZP087076 for ; Mon, 7 Jan 2008 22:25:16 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.2/8.14.1/Submit) id m07MPF0x087075; Mon, 7 Jan 2008 22:25:15 GMT (envelope-from nobody) Message-Id: <200801072225.m07MPF0x087075@www.freebsd.org> Date: Mon, 7 Jan 2008 22:25:15 GMT From: Piotr Smyrak To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/119437: [patch] let net-im/loudmouth optionally depend on dns/libidn X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jan 2008 22:30:01 -0000 >Number: 119437 >Category: ports >Synopsis: [patch] let net-im/loudmouth optionally depend on dns/libidn >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Mon Jan 07 22:30:01 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Piotr Smyrak >Release: 6.2-STABLE >Organization: >Environment: FreeBSD ntbk 6.2-STABLE FreeBSD 6.2-STABLE #0: Tue Jun 5 08:46:50 CEST 2007 root@psmyrak.intra:/usr/obj/usr/src/sys/GENERIC i386 >Description: Configure bundled with net-im/loudmouth distribution auto-discovers installed dns/libidn, and compiles against it. But this dependency is not recorded by the ports/packages so if one deinstalls libidn as a orphan package, then any port depending on it will break on missing lib dependency. The attached patch let net-im/loudmouth optionally depend on dns/libidn if it is installed and the sysop did not marked it as unwatned via WITHOUT_IDN, eventually wrapping the distrubution behaviour. >How-To-Repeat: Install dns/libidn. Install net-im/loudmouth or any port depending on it like polish/gnugadu2 (WITH_JABBER), then check pkg_info -xR libidn - it should show null. Uninstall libidn, and anything linked against it will break - as follows net-im/loudmouth -> polish/gnugadu2 jabber plugin as well. >Fix: Apply the patch Patch attached with submission follows: --- Makefile.orig Mon Jan 7 22:38:39 2008 +++ Makefile Mon Jan 7 23:07:05 2008 @@ -35,4 +35,11 @@ CONFIGURE_ARGS+= --without-ssl .endif +.if exists(${LOCALBASE}/bin/idn) && !defined(WITHOUT_LIBIDN) +LIB_DEPENDS+= idn.16:${PORTSDIR}/dns/libidn +CONFIGURE_ARGS+= --with-libidn=${LOCALBASE} +.else +CONFIGURE_ARGS+= --without-libidn +.endif + .include >Release-Note: >Audit-Trail: >Unformatted: