ports system woes

Pav Lucistnik pav at FreeBSD.org
Wed Mar 26 03:36:04 PDT 2008


I have read your mail on hackers@ (I'm not subscribed) with great
interest. We're certainly interested in any optimizations for the
pkg_install suite.

The pkg database in /var/db/pkg stores two-way dependency chains.
Each port lists all it's dependencies in +CONTENTS file, and all ports
that depend on it in +REQUIRED_BY. When you delete package, all
dependencies of deleted package are iterated and the name of deleted
package is removed from dependency's +REQUIRED_BY file. That's what
undepend() do.

Quick solution would be to gather all depnames for the deleted package,
and then do a single pass over /var/db/pkg entries looking for origins.

Ultimate solution would be to implement a database which would
concentrate origins for all packages with linear lookup time.

The OpenSSL thing I assume is only relevant for people who happen to
have OpenSSL installed from ports. For that, it could be solved by
spamming the required value into /etc/make.conf, similar what perl ports
do. But that really is up to the openssl port maintainer
(dinoex at FreeBSD.org).

Pav Lucistnik <pav at oook.cz>
              <pav at FreeBSD.org>

If God is perfect, why did He create discontinuous functions?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: Toto je =?UTF-8?Q?digit=C3=A1ln=C4=9B?=
	=?ISO-8859-1?Q?_podepsan=E1?= =?UTF-8?Q?_=C4=8D=C3=A1st?=
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20080326/7b533a70/attachment.pgp

More information about the freebsd-ports mailing list