pkg(8) doesn't use INDEX, pkg-version(8) uses the INDEX. But besides that, if you update the ports tree with portsnap(8) the INDEX is already updated before the diffs are made. So with portsnap(8) the INDEX would be correct. Thus no need to runHe *does* need to generate an INDEX file if he's using pkg(8) to scan the index file to determine if the install packages are out of date.
make -C /usr/ports index
. However, if you update the ports tree with SVN or Git the INDEX may not be updated and in that case you would need to generate an updated one with make index
. Changing any of the DEFAULT_VERSIONS doesn't change anything in the INDEX. The INDEX is generated based on the contents of the Makefile of the ports.The first is what's he's already doing and the second doesn't work because he's changed the defaults from the official FreeBSD settings.