From owner-freebsd-questions@FreeBSD.ORG Fri May 28 05:38:25 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4A40916A4CE for ; Fri, 28 May 2004 05:38:25 -0700 (PDT) Received: from spartha.spa.umn.edu (spartha.spa.umn.edu [128.101.220.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id DCCAF43D1F for ; Fri, 28 May 2004 05:38:24 -0700 (PDT) (envelope-from ajw@andrew.spa.umn.edu) Received: from andrew.spa.umn.edu (andrew.spa.umn.edu [128.101.220.229]) by spartha.spa.umn.edu (8.12.10/8.12.10) with ESMTP id i4SCba9m261817 for ; Fri, 28 May 2004 07:37:36 -0500 (CDT) Received: from andrew.spa.umn.edu (localhost.localdomain [127.0.0.1]) by andrew.spa.umn.edu (8.12.10/8.12.10) with ESMTP id i4SCbaKT020551 for ; Fri, 28 May 2004 07:37:36 -0500 Received: (from ajw@localhost) by andrew.spa.umn.edu (8.12.10/8.12.10/Submit) id i4SCbZ3O020549 for freebsd-questions@freebsd.org; Fri, 28 May 2004 07:37:35 -0500 Date: Fri, 28 May 2004 07:37:35 -0500 From: Andy Wettstein To: FreeBSD Help Message-ID: <20040528123735.GA20541@andrew.spa.umn.edu> Mail-Followup-To: FreeBSD Help References: <20040527141709.GA13580@andrew.spa.umn.edu> <20040527143107.GA16989@ip48.ops.uk.psi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040527143107.GA16989@ip48.ops.uk.psi.com> User-Agent: Mutt/1.4.1i Subject: Re: openldap dependencies X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 May 2004 12:38:25 -0000 On Thu, May 27, 2004 at 03:31:07PM +0100, Daniel Bye wrote: > On Thu, May 27, 2004 at 09:17:09AM -0500, Andy Wettstein wrote: > > Hello, > > > > I'm having a problem with the dependencies for openldap. I build > > openldap21 with sasl support so I get openldap21-sasl-client. Then I > > build pam_ldap and it builds fine, but it depends on openldap21-client. > > So my dependencies are broken and I need to do a pkg_db -F. Is there > > a way to tell packages that depend on openldap21-client to depend on > > openldap21-sasl-client instead? > > Yes! The portupgrade config file, /usr/local/etc/pkgtools.conf is your > friend in this case. > > The ALT_PKGDEP section is what you want - set something like this (NOT > TESTED!): > > ALT_PKGDEP = { > 'net/openldap21-client' => 'net/openldap21-sasl-client', > } > > This simply tells portupgrade and friends that for any package that depends > on openldap21-client, make it now depend instead on openldap21-sasl-client. > That's almost what I want to have happen, but this seems only portupgrade will use that (and I couldn't actually get the ALT_PKGDEP to work). But I probably need something that changes the @pkgdep, because I want to be able to install the packages I create on other machines, too. It doesn't really matter for that package because I won't be able to use SASL anyway, since I'm going to authenticate Tru64 against this server and it has to have direct access to the userPassword attribute, which seems like a mostly braindead way to do it. Thanks for your response. Andy