Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 29171 | Differences between
and this patch

Collapse All | Expand All

(-)portage.py_ (-1 / +22 lines)
Lines 1670-1675 Link Here
1670
					spawn("chmod -R g+rw "+settings["CCACHE_DIR"], free=1)
1670
					spawn("chmod -R g+rw "+settings["CCACHE_DIR"], free=1)
1671
		except:
1671
		except:
1672
			pass
1672
			pass
1673
			
1674
		try:
1675
			if "distcc" in features:
1676
				if (not settings.has_key("DISTCC_DIR")) or (settings["DISTCC_DIR"]==""):
1677
					settings["DISTCC_DIR"]=settings["PORTAGE_TMPDIR"]+"/portage/.distcc"
1678
				if not os.path.exists(settings["DISTCC_DIR"]):
1679
					os.makedirs(settings["DISTCC_DIR"])
1680
					os.chown(settings["DISTCC_DIR"],portage_uid,portage_gid)
1681
					os.chmod(settings["DISTCC_DIR"],06770)
1682
				if not os.path.exists(settings["DISTCC_DIR"]+"/lock"):
1683
					os.mkdir(settings["DISTCC_DIR"]+"/lock")
1684
					os.chown(settings["DISTCC_DIR"]+"/lock",portage_uid,portage_gid)
1685
					os.chmod(settings["DISTCC_DIR"]+"/lock",06770)
1686
				if not os.path.exists(settings["DISTCC_DIR"]+"/state"):
1687
					os.mkdir(settings["DISTCC_DIR"]+"/state")
1688
					os.chown(settings["DISTCC_DIR"]+"/state",portage_uid,portage_gid)
1689
					os.chmod(settings["DISTCC_DIR"]+"/state",06770)
1690
		except OSError, e:
1691
			print "!!! File system problem. (ReadOnly? Out of space?)"
1692
			print "!!! Perhaps: rm -Rf",settings["BUILD_PREFIX"]
1693
			print "!!!",str(e)
1694
			return 1
1673
1695
1674
		settings["WORKDIR"]=settings["BUILDDIR"]+"/work"
1696
		settings["WORKDIR"]=settings["BUILDDIR"]+"/work"
1675
		settings["D"]=settings["BUILDDIR"]+"/image/"
1697
		settings["D"]=settings["BUILDDIR"]+"/image/"
Lines 5258-5261 Link Here
5258
5280
5259
# Clear the cache that we probably won't need anymore.
5281
# Clear the cache that we probably won't need anymore.
5260
dircache={}
5282
dircache={}
5261

Return to bug 29171