From hmo@sep.oldach.net  Thu Nov 10 06:53:53 2005
Return-Path: <hmo@sep.oldach.net>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 326FD16A41F
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 10 Nov 2005 06:53:53 +0000 (GMT)
	(envelope-from hmo@sep.oldach.net)
Received: from rigel.oldach.net (rigel.oldach.net [194.8.96.250])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 2CAA143D45
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 10 Nov 2005 06:53:51 +0000 (GMT)
	(envelope-from hmo@sep.oldach.net)
Received: from sep.oldach.net (p548F8CAC.dip0.t-ipconnect.de [84.143.140.172])
	by rigel.oldach.net (8.13.4/8.13.4/hmo30jul04) with ESMTP id jAA6rjak075814
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
	Thu, 10 Nov 2005 07:53:47 +0100 (CET)
	(envelope-from hmo@sep.oldach.net)
Received: from sep.oldach.net (localhost [127.0.0.1])
	by sep.oldach.net (8.13.4/8.13.4/hmo26jun05) with ESMTP id jAA6riCr083371
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO);
	Thu, 10 Nov 2005 07:53:45 +0100 (CET)
	(envelope-from hmo@sep.oldach.net)
Received: (from hmo@localhost)
	by sep.oldach.net (8.13.4/8.13.4/Submit/hmo26jun05) id jAA6riw4083370;
	Thu, 10 Nov 2005 07:53:44 +0100 (CET)
	(envelope-from hmo)
Message-Id: <200511100653.jAA6riw4083370@sep.oldach.net>
Date: Thu, 10 Nov 2005 07:53:44 +0100 (CET)
From: Helge Oldach <portmanagernov05@oldach.net>
Reply-To: Helge Oldach <portmanagernov05@oldach.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc: ringworm01@gmail.com
Subject: sysutils/portmanager honors BUILD_DEPENDS and chokes on -ui
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         88778
>Category:       ports
>Synopsis:       sysutils/portmanager honors BUILD_DEPENDS and chokes on -ui
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Nov 10 07:00:29 GMT 2005
>Closed-Date:    Fri Nov 11 00:33:52 GMT 2005
>Last-Modified:  Fri Nov 11 00:33:52 GMT 2005
>Originator:     Helge Oldach
>Release:        FreeBSD 4.11-STABLE i386
>Organization:
>Environment:
System: FreeBSD localhost 4.11-STABLE FreeBSD 4.11-STABLE #2197: Tue Oct 18 00:25:48 CEST 2005 toor@localhost:/usr/obj/usr/src/sys/GENERIC i386


	
>Description:

Since 0.3.3_2 portmanager changed behaviour.

a) It now also honors BUILD_DEPENDS and rebuilds all ports that depend
on a port that has BUILD_DEPENDS defined, even if those are not
installed. Actually they are "leaf" ports, so it is safe to have them
deleted. It is just pointless to build these ports, in particular, as
the *depending* port itself is NOT rebuilt by portmanager.

Example: sysutils/uptimed depends on devel/libtool15. This is a
BUILD_DEPENDS and is indeed marked as such by "make -V". There is
no RUN_DEPENDS with sysutils/uptimed. If I (intentionally) delete
devel/libtool15, portmanager will rebuild it. However it will NOT
rebuild sysutils/uptimed.

I was initially thinking that this was just a paradigm change that
should just be documented, but after thinking about it, I believe this
is just wrong. As a minimum there should be a knob to to enable the old
behaviour.

b) -ui doesn't work:

rCreateCommandLineDb 0.3.3_2 info: executing rm -f /usr/local/share/portmanager/commandLine.db
rParseCommandLine 0.3.3_2 error: /usr/ports/-ui is not a valid port directory
rParseCommandLine 0.3.3_2 info:either you have used an invalid command line switch as the first option or you are trying to update a non existent port path, see man portmanager(1) 
MGPMrCommandLine 0.3.3_2 error: rParseCommandLine returned errorCode 1

>How-To-Repeat:
	
>Fix:
	


>Release-Note:
>Audit-Trail:

From: Edwin Groothuis <edwin@FreeBSD.org>
To: ringworm01@gmail.com
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/88778: sysutils/portmanager honors BUILD_DEPENDS and chokes on -ui
Date: Thu, 10 Nov 2005 07:03:10 UT

 Maintainer of sysutils/portmanager,
 
 Please note that PR ports/88778 just has been submitted.
 
 If it contains a patch for an upgrade, an enhancement or a bug fix
 you agree on, reply to this email stating that you approve the patch
 and a committer will take care of it.
 
 The full text of the PR can be found at:
     http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/88778
 
 -- 
 Edwin Groothuis
 edwin@FreeBSD.org

From: "Michael C. Shultz" <ringworm01@gmail.com>
To: bug-followup@freebsd.org,
 portmanagernov05@oldach.net
Cc:  
Subject: Re: ports/88778: sysutils/portmanager honors BUILD_DEPENDS and chokes on -ui
Date: Wed, 9 Nov 2005 23:28:49 -0800

 The new behavior also caused problems with java ports and so a mod
 was made so all ports in /java fall under the old behavior.  It never occured 
 to me that people did not want any build tools on their system.   I'll come 
 up with a knob for options to revert back to the old way for all ports, what 
 to call it though?  WITH_BUILD_DEPENDS_ARE_LEAVES seem ok?
 >
 > b) -ui doesn't work:
 
 -ui does work, just works differently now, like this:
 
 portmanager -u -ui
 
 portmanager x11/gnome2 -ui
 
 I needed an interactive option for single port upgrades as well so just 
 changed -ui's behavior a little bit. It is documented in the man page btw.
 
 Note to committer: please close this PR as "noted", I'll submit a patch under 
 a new PR in a few days with the knob the submitter requested.
 
 To Helge Oldach, better to email me directly when there is no patch involved.
 
 -Mike
State-Changed-From-To: open->closed 
State-Changed-By: mnag 
State-Changed-When: Fri Nov 11 00:33:51 GMT 2005 
State-Changed-Why:  
Maintainer will fix this problem in next version. Please wait. Thanks. 

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