Proposal: make portsnap generate INDEX-${OSREL:R} only by default

Kevin Oberman rkoberman at
Fri Aug 7 05:24:58 UTC 2015

On Thu, Aug 6, 2015 at 9:58 PM, Jamie Landeg-Jones <jamie at>

> Kevin Oberman <rkoberman at> wrote:
> > Isn't rebuilding the index useful for people running STABLE? I assume
> that
> > I need a current index to get useful output from "pkg version -vL=". I am
> > probably a bit unusual in that I keep a current ports tre on a STABLE
> > system, but there are a couple of ports that I need to build due to
> custom
> > options and I find poudriere overkill for this case. I suspect many
> people
> > running STABLE may use portsnap and build everything from ports. (This
> use
> > to be common fairly recently and likely still is.)
> I run stable, and compile from source with a current ports tree on all my
> machines too.
> But...
> > Or, am I missing the obvious... something I seem to do too often these
> days.
> ... maybe I'm missing something that you haven't missed, which is more
> likely! :
> I've already altered my portsnap.conf to only produce INDEX-10, and from
> what I
> can gather, this is basically what Xin Li is proposing becomes the
> default...,
> i.e. only produce INDEX-9 for 9.X, INDEX-10 for 10.X and INDEX-11 for 11.X
> Isn't it the case that the index required is 'tuned' to the dependencies
> each
> port requires based on base software (e.g. the index file on 10.X upwards
> won't
> list a dependency on converters/libiconv) so even if you portsnap your
> ports
> tree, it's still INDEX-10 you'd require on a FreeBSD-10.X machine..?
> Cheers,
>  Jamie

Yes, I was missing the obvious. I am a bit concerned about some edge cases
involving system upgrades. Of course, if everyone follows recommendation
and rebuilds all ports after a major version upgrade, it should work fine.
Or the code in portsnap could be modified to get the current running
version. This would need to be an option that could be turned off for the
few people who actually need more than one index file.

Still, looks like a good idea to me!
Kevin Oberman, Network Engineer, Retired
E-mail: rkoberman at
PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683

More information about the freebsd-ports mailing list