Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Jul 2008 08:32:16 -0700
From:      Garrett Cooper <yanefbsd@gmail.com>
To:        Sergey Matveychuk <sem@FreeBSD.org>
Cc:        Anders Nore <andenore@freebsd.org>, freebsd-ports@freebsd.org
Subject:   Re: pkg_add fixing dependencies
Message-ID:  <70CD7DC9-A07C-4643-9803-BC30E362E163@gmail.com>
In-Reply-To: <487CB63F.8070606@FreeBSD.org>
References:  <op.uebzhsvlp8qiwu@duckjen.nextgentel.no> <487CB63F.8070606@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Jul 15, 2008, at 7:37 AM, Sergey Matveychuk wrote:

> Anders Nore wrote:
>> So my question is, shouldn't "pkg_add -r zip" check installed  
>> packages for dependencies and make a correct +REQUIRED_BY file for  
>> zip? I know that portupgrade and portmaster does this.
>
> As I understand, adding and upgrading should be separate processes.

Yes. However, pkg_add (as it stands) in master mode calls pkg_info  
which then evaluates whether or not to upgrade a given package.

> When you add a package, you should check if an old version of the  
> package or conflicting packages exist and install package otherwise.

Correct.

> There are some unclean cases there. E.g. packages with different  
> PREFIXes, etc.

Indeed, unless you have separate databases for each package (which is  
easy to do with a separate copy of /var/db/pkg, but it looks like  
pkg_add currently lacks that functionality).

I'll see about writing up that enhancement...

Cheers,
-Garrett



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?70CD7DC9-A07C-4643-9803-BC30E362E163>