From owner-freebsd-questions@FreeBSD.ORG Sun Jun 24 07:37:40 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 13BFB16A46C for ; Sun, 24 Jun 2007 07:37:40 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (ns0.infracaninophile.co.uk [81.187.76.162]) by mx1.freebsd.org (Postfix) with ESMTP id 7C0B713C45B for ; Sun, 24 Jun 2007 07:37:39 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost.infracaninophile.co.uk [IPv6:::1]) by smtp.infracaninophile.co.uk (8.14.1/8.14.1) with ESMTP id l5O7bLJC023516; Sun, 24 Jun 2007 08:37:23 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) Authentication-Results: smtp.infracaninophile.co.uk from=m.seaman@infracaninophile.co.uk; sender-id=permerror; spf=permerror X-SenderID: Sendmail Sender-ID Filter v0.2.14 smtp.infracaninophile.co.uk l5O7bLJC023516 Message-ID: <467E1F31.4030007@infracaninophile.co.uk> Date: Sun, 24 Jun 2007 08:37:21 +0100 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 2.0.0.4 (X11/20070619) MIME-Version: 1.0 To: Robert Fitzpatrick References: <1182613207.9284.10.camel@columbus.webtent.org> In-Reply-To: <1182613207.9284.10.camel@columbus.webtent.org> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (smtp.infracaninophile.co.uk [IPv6:::1]); Sun, 24 Jun 2007 08:37:33 +0100 (BST) X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00, DKIM_POLICY_SIGNSOME, DKIM_POLICY_TESTING, NO_RELAYS autolearn=ham version=3.2.1 X-Spam-Checker-Version: SpamAssassin 3.2.1 (2007-05-02) on happy-idiot-talk.infracaninophile.co.uk Cc: FreeBSD Subject: Re: Problem with openldap-sasl-client port? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Jun 2007 07:37:40 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Robert Fitzpatrick wrote: > I posted the other day, trying to install SA 3.2, it keeps attempting to > install openldap-sasl-client-2.3.36 even though it is already there. I > tried 'pkg_delete -f' and then portinstall of the ldap client, I've > tried to register FORCE_PKG_REGISTER. Whenever I run 'pkgdb -F', the > ldap client deps want to link to the openldap-server-2.3.36. Am I going > to have to uninstall all deps fro the ldap client and re-install? Will > that work... > > mx1# pkg_delete openldap-sasl-client-2.3.36 > pkg_delete: package 'openldap-sasl-client-2.3.36' is required by these other packages > and may not be deinstalled: > amavisd-new-2.5.0,1 > apache-2.2.4_2 > dirmngr-0.9.7_2 > gnupg-2.0.3 > openldap-server-2.3.36 > pear-1.5.4 > pear-Auth-1.5.0 > pear-Auth_SASL-1.0.2 > pear-DB-1.7.11,1 > pear-File_Passwd-1.1.6 > pear-Log-1.9.10 > pear-Mail_Mime-1.4.0,1 > pear-Net_IMAP-1.0.3 > pear-Net_POP3-1.3.6 > pear-Net_SMTP-1.2.10 > pear-Net_Socket-1.0.7 > pear-Pager-2.3.4 > pear-SOAP-0.10.1 > php5-5.2.2 > php5-gettext-5.2.2 > php5-ldap-5.2.2 > php5-mysql-5.2.2 > php5-openssl-5.2.2 > php5-pcre-5.2.2 > php5-pgsql-5.2.2 > php5-session-5.2.2 > php5-wddx-5.2.2 > php5-xml-5.2.2 > postfix-2.4.3,1 > postgresql-server-8.2.4_1 > smarty-2.6.18 > mx1# pkgdb -F > ---> Checking the package registry database > [Updating the pkgdb in /var/db/pkg ... - 505 packages found (-1 +1) (...). done] > Stale dependency: amavisd-new-2.5.0,1 -> p5-Mail-SpamAssassin-3.2.0 (mail/p5-Mail-SpamAssassin): > p5-Mail-SPF-Query-1.999.1 (score:56%) ? ([y]es/[n]o/[a]ll) [no] > Install stale dependency? ([y]es/[n]o/[a]ll) [yes] no > New dependency? (? to help): > Skip this? ([y]es/[n]o/[a]ll) [yes] > Skipped. > Stale dependency: nagios-2.9_1 -> openldap-client-2.3.35 (net/openldap23-client): > openldap-server-2.3.36 (score:52%) ? ([y]es/[n]o/[a]ll) [no] ^C > That's just the alternate package name guessing algorithm failing to guess the correct alternate package name. All it does is a string based match -- and pkgdb seems to think that 'openldap-server' is a better match to 'openldap-client' than openldap-sasl-client'. Just tell pkgdb 'no' and then tell it the correct alternate package name. (You can use tab completion there; very handy) After that, things should go smoothly. You can use the ALT_PKGNAME hash in /usr/local/etc/pkgtool.conf to give the correct hint to pkgdb and portupgrade automatically: ALT_PKGDEP = { 'openldap-client-2.3.*' => 'openldap-sasl-client-2.3.*', } The ALT_PKGDEP hash can be used to autocorrect most of the things that pkgdb would question you about -- see the comments in the pkgtools.conf file. Cheers, Matthew - -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGfh8x8Mjk52CukIwRCNODAJ0ewx6fmlqKJgwxowpnRSCD/xtIegCgj07O Ak4am2/4vTfAXtPWqWXU59U= =CKAI -----END PGP SIGNATURE-----