portupgrade idea [Was: Re: Samba3 Port install fails due to
OpenLDAP dependency version problem]
Alexander at Leidinger.net
Thu Jun 22 09:48:40 UTC 2006
Quoting RW <list-freebsd-2004 at morbius.sent.com> (from Wed, 21 Jun 2006
> On Wednesday 21 June 2006 20:24, Alexander Leidinger wrote:
>> Quoting Andriy Gapon <avg at icyb.net.ua> (Wed, 21 Jun 2006 21:15:17 +0300):
>> > 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:
>> portupgrade is the wrong place to do this. We "just" need to switch
>> from implicit dependencies to explicit dependencies in the ports
> My understanding is that portupgrade gets its dependency information from the
> the package database, which records full recursive dependencies (for the
> benifit of pkg_add).
Does pkg_add download all missing dependencies at once before
installing all missing packages? If not: there should be no change in
behavior in pkg_add if we wswitch to explicit dependencies.
> By contrast portmanger rebuilds only direct dependencies unless you specify
> the "pristine" option. I presume that's because it gets its origin dependency
> information from the port make targets, and uses the package database for
> version information.
> Given that Portmanger is already doing this, could you explain why you think
> there is a need for the port system to change.
Not every port contains an explicit dependency, if it is already
satisfied by an implicit dependency. Therefore I assume you may miss
to update a port in portmanager.
Aside from this, portupgrade uses the dependency information regorded
in /var/db/pkg (or INDEX-X, I'm not sure), which is written by the
infrastructure of the Ports Collection. I assume the upgrade shell
script we got recently in ports (sorry, I can't remember the name)
also uses the information provided by the ports collection, so it
would benefit too from switching to explicit dependencies.
Selling GoodYear Eagle F1 235/40ZR18, 2x 4mm + 2x 5mm, ~130 EUR
you have to pick it up between Germany/Saarland and Luxembourg/Capellen
http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7
http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137
More information about the freebsd-ports