From nobody@FreeBSD.org  Sat Oct 16 23:26:54 2010
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 4061A106566C
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 16 Oct 2010 23:26:54 +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 2E8518FC17
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 16 Oct 2010 23:26:54 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o9GNQr0M031591
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 16 Oct 2010 23:26:53 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id o9GNQrPT031590;
	Sat, 16 Oct 2010 23:26:53 GMT
	(envelope-from nobody)
Message-Id: <201010162326.o9GNQrPT031590@www.freebsd.org>
Date: Sat, 16 Oct 2010 23:26:53 GMT
From: Bruce Becker <hostmaster@gts.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: circular dependincies breaks pkgdb -L
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         151510
>Category:       ports
>Synopsis:       ports-mgmt/portupgrade: circular dependencies breaks pkgdb -L
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    swills
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Oct 16 23:30:08 UTC 2010
>Closed-Date:    Sun Aug 21 21:20:28 UTC 2011
>Last-Modified:  Sun Aug 21 21:20:28 UTC 2011
>Originator:     Bruce Becker
>Release:        8.1-STABLE/i386
>Organization:
G.T.S.
>Environment:
FreeBSD twain 8.1-STABLE FreeBSD 8.1-STABLE #22: Sun Aug  1 06:02:41 EDT 2010     root@twain:/usr/obj/usr/src/sys/TWAIN  i386

>Description:

if i make postgresql with OpenLDAP config ON, and OpenLDAP with SASL
config ON, and cyrus-sasl with Postgresql config ON, it creates a
circular dependency loop

when i then run pkgdb -L from the "portupgrade" port, it gets to here
& fails:

[...]
Disclose depends for cyrus-sasl-2.1.23
make: Max recursion level (500) exceeded.: Resource temporarily unavailable
can't convert nil into String


this basically breaks "portupgrade" functionality since it's impossible
to repair broken dependency links if this tool doesn't work.

>How-To-Repeat:
run pkgdb -L with any such circular dependency

>Fix:
the pkgbd tool needs to incorporate loop detection for such situations


>Release-Note:
>Audit-Trail:

From: Rene Ladan <rene@freebsd.org>
To: bug-followup@FreeBSD.org, hostmaster@gts.net
Cc:  
Subject: Re: ports/151510: ports-mgmt/portupgrade: circular dependencies breaks
 pkgdb -L
Date: Fri, 19 Nov 2010 14:24:04 +0100

 This is not only a problem for portupgrade, but a problem for the Ports
 Collection in its entirety. The Porters Handbook tells that circular
 dependencies are not allowed.
 
 I think a better course of action is to notify the respective
 maintainers of this circular dependency.
Responsible-Changed-From-To: freebsd-ports-bugs->ruby 
Responsible-Changed-By: steve 
Responsible-Changed-When: Mon Jan 3 17:22:11 UTC 2011 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=151510 
State-Changed-From-To: open->suspended 
State-Changed-By: arved 
State-Changed-When: Mon Jul 25 11:39:08 UTC 2011 
State-Changed-Why:  
As rene wrote, this is not a portupbrade bug per se 

http://www.freebsd.org/cgi/query-pr.cgi?pr=151510 

From: hostmaster@gts.net
To: arved@FreeBSD.org
Cc: ruby@FreeBSD.org, bug-followup@FreeBSD.org, rene@freebsd.org
Subject: Re: ports/151510: ports-mgmt/portupgrade: circular dependencies
 breaks pkgdb -L
Date: Mon, 25 Jul 2011 15:15:51 -0400 (EDT)

 On Mon, 25 Jul 2011, arved@FreeBSD.org wrote:
 
 |Synopsis: ports-mgmt/portupgrade: circular dependencies breaks pkgdb -L
 |
 |State-Changed-From-To: open->suspended
 |State-Changed-By: arved
 |State-Changed-When: Mon Jul 25 11:39:08 UTC 2011
 |State-Changed-Why: 
 |As rene wrote, this is not a portupbrade bug per se
 |
 |http://www.freebsd.org/cgi/query-pr.cgi?pr=151510
 
 
 	I still feel that this kind of cirularity
 	should be detectable by portupgrade pkgdb,
 	and some kind of evasion strategy taken -
 	perhaps with user dialog - thus the user
 	would no longer crippled by such loops to
 	the point where the pkgdb system becomes
 	completely unuseable.
 
 
 Bruce Becker			+1 416 410 0879
 GTS Network Administration	Toronto, Ont.
 Email:	hostmaster@GTS.Infra-service.CA
Responsible-Changed-From-To: ruby->swills 
Responsible-Changed-By: swills 
Responsible-Changed-When: Sun Aug 21 21:18:39 UTC 2011 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=151510 
State-Changed-From-To: suspended->closed 
State-Changed-By: swills 
State-Changed-When: Sun Aug 21 21:20:25 UTC 2011 
State-Changed-Why:  
Agree it would be nice if portupgrade detected this, but would need a 
patch to make further progress on it. Since this isn't a portupgrade 
specific bug and there's no patch, closing PR for now. If there are 
further issues or a patch to look at, please open a new PR. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=151510 
>Unformatted:
