Sharing /usr/ports between RELENG_6 and RELENG_5

Vivek Khera vivek at khera.org
Thu Aug 25 18:01:50 GMT 2005


On Aug 25, 2005, at 1:44 PM, Mark Knight wrote:

> Up until today I had two RELENG_5 machines sharing /usr/ports via NFS.
> Each night one does a cvsup and a portsdb -uU.
>
> I have just upgraded the NFS client to RELENG_6 (painless enough :).
> However, now a couple of questions arise:
>
>   1)    Can the RELENG_5 machine create INDEX-6 as well as INDEX-5?

Yes.  Your script that runs portsdb -uU should be changed to  
something like this:

cd /usr/ports
make fetchindex
env INDEXFILE=INDEX make fetchindex
env INDEXFILE=INDEX-6 make fetchindex
portsdb -u


this gets the INDEX INDEX-5 and INDEX-6 files (I run on a 5.4 machine  
so the default is to get the INDEX-5 file, then builds the .db file  
from INDEX-5 which is ok enough for portupgrade to run.


>
>   2)    At the moment INDEX.db is shared; I presume this is bad.   
> Can I
>         persuade one machine to use INDEX-6.db everywhere?


Don't know, and don't care.  It seems to work ok :-)



More information about the freebsd-ports mailing list