Walter Dnes posted on Fri, 30 Mar 2012 00:08:08 -0400 as excerpted: > On Thu, Mar 29, 2012 at 10:26:22PM +1300, Kent Fredric wrote > >> Though of course, if anybody has custom stuff in say, >> /usr/portage/local/ >> which they make by hand, nuking /usr/portage will make you *Very* >> unpopular. > > http://www.gentoo.org/doc/en/handbook/handbook-x86.xml? full=1#book_part3_chap5 > in the install handbook gives "/usr/local/portage" as an example overlay > directory. I thought it was implicit that one shouldn't edit or create > files in /usr/portage because they may be overwritten by the system e.g. > during an "emerge --sync". Maybe the manual needs to state this > explicitly. Also, /usr/local is the "standard" place to keep one's own > software and/or global customizations that aren't handled by the package > manager, but don't belong in one user's home directory.
FWIW: $>>grep PORTDIR\\\|DISTDIR /etc/portage/make/fs PORTDIR=/p PORTDIR_OVERLAY=/l/p DISTDIR=${PORTDIR}/src $>>grep exclude /etc/portage/make/net$>>cat /etc/portage/make/ rsync.exclude # / on the left anchors (like regex ^), / on the right indicates dirs only /layman/ /src/ /use.defaults PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from='/etc/portage/make/ rsync.exclude'" $>>cat /etc/portage/make/rsync.exclude # / on the left anchors (like regex ^), / on the right indicates dirs only /layman/ /src/ /use.defaults ------------------------------------------ (/etc/portage/make/fs and the corresponding net file are sourced by /etc/portage/make/master, which in turn is sourced by /etc/make.conf, so those settings appear in portage, even tho they're actually in files in a particular subdir of /etc/portage.) So I have PORTDIR set to /p, with the layman and src subdirs in it, and portage's rsync command set to exclude those subdirs. FWIW, /usr/portage is a symlink to /p, just in case. As Kent said, if that arrangement gets nuked despite my rsync --exclude settings, the person responsible certainly won't be particularly popular here (tho nothing irreplaceable would be lost, here, I'd simply have to adjust things and try again). Fortunately, our portage devs appear to be a bit more sane than to try that and Zac at least isn't even proposing it. His proposal is to simply change the default location for new users, which is fine by me. =:^) -- Duncan - List replies preferred. No HTML msgs. "Every nonfree program has a lord, a master -- and if you use the program, he is your master." Richard Stallman