Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Aug 2020 16:43:28 +0100
From:      Matthew Seaman <matthew@FreeBSD.org>
To:        freebsd-ports@freebsd.org
Subject:   Re: [HEADS UP] Planned deprecation of portsnap
Message-ID:  <5122e2d8-444c-3a76-038a-be84d38fc237@FreeBSD.org>
In-Reply-To: <1923096.4WAli8B44Z@walrus.pepperland>
References:  <b920d0e6-72d3-b37c-e57e-6d027292e8db@FreeBSD.org> <1923096.4WAli8B44Z@walrus.pepperland>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--rgpSRZBxfAeK4CQlcsQwKR8gnNsGxThV7
Content-Type: multipart/mixed; boundary="zpvCH9UEms0zuGCnbfEwkshBQUswdAz57"

--zpvCH9UEms0zuGCnbfEwkshBQUswdAz57
Content-Type: text/plain; charset=utf-8
Content-Language: en-GB
Content-Transfer-Encoding: quoted-printable

On 09/08/2020 07:03, Stefan Ehmann wrote:
> I usually run `pkg version` to see what packages have changed.
>=20
> Previously, that was a more or less instant operation, now it takes ove=
r 100
> seconds. The problem is that /usr/ports/INDEX-12 is missing.

Yes.  For historical reason, the order of precedence for the source of
information about available packages that pkg(8) uses is:

   * INDEX file
   * A checked-out copy of /usr/ports
   * The pkg repository catalogue

In my humble opinion, it's the third of those options that is actually
the best, both in terms of speed and accuracy.  You can force pkg(8) to
use the repository catalogue by either of:

   * Use the '-R' command line flag: `pkg version -vRL=3D`
   * Don't have an installed copy of /usr/ports -- either use the system
     pre-compiled packages or set up your own repo with poudriere(8)

Second best is to use the ports INDEX: this is pretty quick, but has a
few niggles about accuracy.  For instance: I don't know if the INDEX
handles package flavours properly yet.  You can obtain a copy of the
INDEX by:

   * cd /usr/ports ; make fetchindex   (downloads a pre-built index)
   * cd /usr/ports ; make index        (builds an index locally)

Building your own index does take a non-trivial amount of time and CPU
resources, but it does mean the INDEX reflects local customizations and
options settings.

Least useful is the situation where you have an installed ports tree but
no INDEX file.  In this case, pkg(8) will run make(1) to extract the
needed dependency information, which, as you have already discovered,
takes approximately forever.

	Cheers,

	Matthew



--zpvCH9UEms0zuGCnbfEwkshBQUswdAz57--

--rgpSRZBxfAeK4CQlcsQwKR8gnNsGxThV7
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQKTBAEBCgB9FiEEGfFU7L8RLlBUTj8wAFE/EOCp5OcFAl8wGaFfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDE5
RjE1NEVDQkYxMTJFNTA1NDRFM0YzMDAwNTEzRjEwRTBBOUU0RTcACgkQAFE/EOCp
5OfM4w/8DNWItOkzafz6gF9xYexsd4M3kT9yoNoKXgmqnPi1FNcN45KVwAYgJRng
pVE82IgUTg/RfPVESrRqvxpqhkFFPY1qXtb1kBtFwxAofgC3s5jPX+UapoYJ9cff
uHeIef5lU8R3cmHSVsyiM5/dXzdmF8bM6wp69S+EPvjLHESahD25xOdM4ISIt7os
z/icSL24obwY+/a8OLP3NWaWu4/8gX6L+MYF29WIA9YEdh/z9HK4EtcG1j85Ikl1
hRKCu6JWvA2AHt3vVi+4af60W8xfvUENiU6HsDkfkzQLg1ScP76N7HyeSR0KZ9FN
psZqys2gTLsf8ULds6HvBlEv/Xv6Hek7h9F2e68RYNJOs4fU/jNFPTzKhFc4c3z4
xBzgKyXFT+VZLsoA/LMIVmzZvx0l/xqmV9yvR/jbLgXrYZcHVCJBpe1PKeCqQpxP
U5ysPpjc2LdHirTcO+KBJhKF3YwXQYt5nqkOZIZt5Ub6TrMI/Ql9IOpMiWTQ+I1v
34w4EinrXr9Bj3kn4d6aaqzwydiEHWsGuJ3sHJllelDAdF1+7nL1kJGkdDqNjkP2
+GKaR7VEs6KSVssaHECevutDNAlJjdMd/f01FYSkIy1N95j1nQyK+QokXib9LPxc
vnsRuiOJ5h1iwP27fS1SsiojeBNl2RCGlo/OnqxS5ADhPblGL/Q=
=GyQe
-----END PGP SIGNATURE-----

--rgpSRZBxfAeK4CQlcsQwKR8gnNsGxThV7--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5122e2d8-444c-3a76-038a-be84d38fc237>