From owner-freebsd-stable@FreeBSD.ORG Tue Jul 28 02:39:27 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2BD68106566B for ; Tue, 28 Jul 2009 02:39:27 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx21.fluidhosting.com [204.14.89.4]) by mx1.freebsd.org (Postfix) with ESMTP id CE9B08FC13 for ; Tue, 28 Jul 2009 02:39:26 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: (qmail 6156 invoked by uid 399); 28 Jul 2009 02:39:23 -0000 Received: from localhost (HELO ?192.168.0.100?) (dougb@dougbarton.us@127.0.0.1) by localhost with ESMTPAM; 28 Jul 2009 02:39:23 -0000 X-Originating-IP: 127.0.0.1 X-Sender: dougb@dougbarton.us Date: Mon, 27 Jul 2009 19:39:22 -0700 (PDT) From: Doug Barton To: Ben Morrow In-Reply-To: <20090723011246.GA29465@osiris.mauzo.dyndns.org> Message-ID: References: <1248027417.14210.110.camel@neo.cse.buffalo.edu> <58F0204B-ECE6-479A-AAC2-7868E71ABB43@exscape.org> <367b2c980907200729s57eafbbfw83c8ae5a94f41ffc@mail.gmail.com> <4A6628F0.6080802@mail.zedat.fu-berlin.de> <20090721215201.GA61999@troutmask.apl.washington.edu> <1248277420.8644.70.camel@localhost> <20090722193033.GA83848@zim.MIT.EDU> <20090723011246.GA29465@osiris.mauzo.dyndns.org> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) X-message-flag: Outlook -- Not just for spreading viruses anymore! X-OpenPGP-Key-ID: 0xD5B2F0FB Organization: http://www.FreeBSD.org/ MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-stable@freebsd.org Subject: portmaster -s text (Was: Re: HEADS-UP: Shared Library Versions bumped) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Jul 2009 02:39:27 -0000 On Thu, 23 Jul 2009, Ben Morrow wrote: > The problem with that is if you install pkg A deliberately, but it then > later becomes a dependancy of pkg B. If you remove pkg B (because it's > no longer needed) there is then no evidence that pkg A was installed on > purpose, rather than incidentally. portmaster -s will offer to remove > it, and if you refuse it will offer to remove the empty +REQUIRED_BY, > effectively promoting it to a 'manually installed' pkg again, though > it's perhaps not entirely clear from the question that that is what the > effect will be. Thanks for pointing this out. Can you suggest an alternative message? Other than the mundane reason the current message says what it does because I sometimes prefer to leave the empty file there so that when I go back through at a later date I can re-evaluate the choice. > This would be easy to solve in general by maintaining a 'world' package, > or some such, that had dependencies on everything installed explicitly; > but that would require modifying all the pkg and port installation tools > (probably including bsd.port.mk itself) to support that convention. This sort of mechanism has been suggested before, but the problem you described (ports installed "on purpose" becoming a dependency of something else) is not an easy one to solve. Doug -- This .signature sanitized for your protection