From owner-freebsd-hackers@FreeBSD.ORG Thu Feb 8 23:53:57 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EE05216A409 for ; Thu, 8 Feb 2007 23:53:57 +0000 (UTC) (envelope-from henry.lenzi@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.171]) by mx1.freebsd.org (Postfix) with ESMTP id 6270E13C4BF for ; Thu, 8 Feb 2007 23:53:57 +0000 (UTC) (envelope-from henry.lenzi@gmail.com) Received: by ug-out-1314.google.com with SMTP id o2so583028uge for ; Thu, 08 Feb 2007 15:53:56 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=JWOBq13EXc81SwNM7Cn51cSNBPNg+5UGtvFxfk9pLqI8eZVILeS07seyG+g4Caj3nxbo4+b499YuXzTt2wjTIHGs4BqAhEucOmxxmbIqSIIeIYWkGqfwV1Hua7t3oPIl6/YXSMpOftmwzmN0mIsUzCXwr5BOFX1X+ZrK5ppjbP8= Received: by 10.78.158.11 with SMTP id g11mr1168102hue.1170978835620; Thu, 08 Feb 2007 15:53:55 -0800 (PST) Received: by 10.78.176.6 with HTTP; Thu, 8 Feb 2007 15:53:55 -0800 (PST) Message-ID: <8b4c81f0702081553j7168846aj13c5b191d4bfb408@mail.gmail.com> Date: Thu, 8 Feb 2007 21:53:55 -0200 From: "Henry Lenzi" To: "Mike Meyer" In-Reply-To: <17865.6041.605201.772296@bhuda.mired.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <8b4c81f0702061514r5a753e48yea0ce9b937236fc3@mail.gmail.com> <17865.6041.605201.772296@bhuda.mired.org> Cc: freebsd-hackers@freebsd.org Subject: Re: pkg_add does not backtrack, does it? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Feb 2007 23:53:58 -0000 On 2/6/07, Mike Meyer wrote: > In <8b4c81f0702061514r5a753e48yea0ce9b937236fc3@mail.gmail.com>, Henry Lenzi typed: > > I haven't found the pkg_add code (it's in Ruby, is it?). > > It's in /usr/src/usr.sbin/pkg_install/add. And no, it's not in ruby. > > > But from the behaviour of pkg_add -r, it's safe to say that it > > doesn't backtrack to resolve dependencies, does it? > > Why should using a remote repository change the behavior of pkg_add? > > Are you sure you're not thinking of portupgrade? The -r otion to it > causes things to be recursive, and it is sourced in ruby. And it's in > the ports tree, not the base system (because it's sourced in ruby), so > you'll need to look for the source (or maybe a tarball) there. > > > Like, for instance (a real example), during gnome2 installation on 6.2: > > > > warning: 'gstreamer-plugins-gconf-0.10.4_3,2' requires > > 'gstreamer-plugins-0.10.10,2', but 'gstreamer-plugins-0.10.9,1' is > > installed > > What I was saying is that, one way to go about it manually is hit Ctl-C, uninstall version 0.10.9,1, then proceed - because the update required package will be fetched (0.10.10,2). I was commenting the pkg_add did not do that - detect an outdated version and act upon that knowledge. i.e., removing it and installing the new one. Otherwise you would end up having wrong dependencies. This, of course, with pkg_add for stufflike Gnome, or KDE. Portupgrade, AFAIK, does upgrade fetching source, right? It's not the same thing. Cheers. Henry Lenzi