Heyas, since I have both amd64 and amd32 systems I decided to change the default package directory from PKGDIR=${PORTDIR}/packages to PKGDIR=${PORTDIR}/packages-64 and PKGDIR=${PORTDIR}/packages-32 as both systems share the same portage tree. I then ran emerge -eb world on both to fill the packages-directories. After an emerge --sync however all my packages got deleted. A warning should be added to make.conf.example that if you change PKGDIR you better should place them outside the portage tree.
How about setting PORTAGE_RSYNC_EXTRA_OPTS properly - see man make.conf and man rsync. :)
(In reply to comment #0) > After an emerge --sync however all my packages got deleted. Please post the output of `emerge --info`.
No need for --info, just the fact that --sync will wipe $PORTDIR by default not being explicitly documented. Just add a note to make.conf.example and the manpage for $DISTDIR and $PKGDIR.
I with PKGDIR and DISTDIR didn't default to being *inside* the portage tree. Otherwise, people would probably never think to store anything valuable there. The --sync docs already say "Note that any changes you have made to the portage tree will be erased".
Can anyone come up with a simple sentence for the docs to describe this?
(In reply to comment #5) > Can anyone come up with a simple sentence for the docs to describe this? Hmmm? Like, if you set non-default PKGDIR inside PORTDIR, make sure that you have adjusted PORTAGE_RSYNC_EXTRA_OPTS to --exclude that directory accordingly? Shrug.
I've updated the PORTDIR, PKGDIR, and DISTDIR docs.
This has been released in 2.1.3_rc7.