From owner-freebsd-ports@FreeBSD.ORG Wed Jun 21 18:16:21 2006 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 745F616A47D for ; Wed, 21 Jun 2006 18:16:21 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id 74D7B43D5E for ; Wed, 21 Jun 2006 18:16:04 +0000 (GMT) (envelope-from avg@icyb.net.ua) Received: from [212.40.38.87] (oddity-e.topspin.kiev.ua [212.40.38.87]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id VAA03466; Wed, 21 Jun 2006 21:15:18 +0300 (EEST) (envelope-from avg@icyb.net.ua) Message-ID: <44998CB5.5070509@icyb.net.ua> Date: Wed, 21 Jun 2006 21:15:17 +0300 From: Andriy Gapon User-Agent: Thunderbird 1.5.0.4 (X11/20060615) MIME-Version: 1.0 To: Eric References: <1150820585.00550082.1150807801@10.7.7.3> <1150840690.00550239.1150830001@10.7.7.3> <1150907018.00550805.1150896602@10.7.7.3> <1150910594.00550808.1150897202@10.7.7.3> In-Reply-To: <1150910594.00550808.1150897202@10.7.7.3> Content-Type: text/plain; charset=KOI8-U Content-Transfer-Encoding: 7bit Cc: Benjamin Thelen , Siju George , freebsd-ports@freebsd.org, Peter Jeremy Subject: portupgrade idea [Was: Re: Samba3 Port install fails due to OpenLDAP dependency version problem] X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2006 18:16:21 -0000 > 20060616: > AFFECTS: users of net/openldap22{,-sasl}-client > AUTHOR: linimon@FreeBSD.org > > OpenLDAP version 2.3 is now the default. To upgrade all ports do > portupgrade -rfo net/openldap23-client openldap-client > (or a similar command for the SASL variant). If you do not want to > upgrade, add the line `WANT_OPENLDAP_VER?=22' to /etc/make.conf. sometimes, in cases like this, it seems that portupgrade -rf is a huge overkill, because (in my case) most of the ports recorded as depending on openldap 22 do not actually care/know about it, but rather they depend on something that [depends on something ...] depends on openldap 22. E.g.: $ pkg_info -R openldap-client-2.2.30 | wc -l 86 But if I use libchk and pkg_which to fins what ports install anything that depends on openldap shared libraries I get only 8 ports. What I want to say that there is no way that a tool like gucharmap-gnome *must* be rebuilt/reinstalled when openldap is upgraded. I understand that shared libs is not the only way through which dependencies may come. It still would be very nice to introduce a concept of "immediate dependencies" to portupgrade tools (or maybe to ports/packages in general ???) and have some options to work only on those. Completely fictional example: 1. say gdb depends on libstack 2. say xgdb is a X front-end to gdb which apparently depends on gdb 3. when libstack is changed in such a way that all programs using it must be recompiled I want an option to distinguish between gdb which depends on libstack directly and xgdb which is completely uncoupled from libstack. -- Andriy Gapon