Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Mar 2008 11:07:00 +0100
From:      Pav Lucistnik <pav@FreeBSD.org>
To:        soralx@cydem.org
Cc:        freebsd-ports@FreeBSD.org
Subject:   Re: ports system woes
Message-ID:  <1206526020.78560.37.camel@pav.hide.vol.cz>

next in thread | raw e-mail | index | archive | help

--=-xqkCNmqutHgvwi336Mql
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Hi,

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@FreeBSD.org).


--=20
Pav Lucistnik <pav@oook.cz>
              <pav@FreeBSD.org>

If God is perfect, why did He create discontinuous functions?

--=-xqkCNmqutHgvwi336Mql
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: Toto je =?UTF-8?Q?digit=C3=A1ln=C4=9B?=
	=?ISO-8859-1?Q?_podepsan=E1?= =?UTF-8?Q?_=C4=8D=C3=A1st?=
	=?ISO-8859-1?Q?_zpr=E1vy?=

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (FreeBSD)

iEYEABECAAYFAkfqIEQACgkQntdYP8FOsoLN4wCffNCnOw/56pAIM7IL7fRPHM/N
PQIAoM90SEgjcdNTo5qcGAiiyes9ukFM
=gd6Q
-----END PGP SIGNATURE-----

--=-xqkCNmqutHgvwi336Mql--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1206526020.78560.37.camel>