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_ (+19 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
				for x in ("/lock", "/state"):
1683
					if not os.path.exists(settings["DISTCC_DIR"]+x):
1684
						os.mkdir(settings["DISTCC_DIR"]+x)
1685
						os.chown(settings["DISTCC_DIR"]+x,portage_uid,portage_gid)
1686
						os.chmod(settings["DISTCC_DIR"]+x,06770)
1687
		except OSError, e:
1688
			print "!!! File system problem. (ReadOnly? Out of space?)"
1689
			print "!!! Perhaps: rm -Rf",settings["BUILD_PREFIX"]
1690
			print "!!!",str(e)
1691
			return 1
1673
1692
1674
		settings["WORKDIR"]=settings["BUILDDIR"]+"/work"
1693
		settings["WORKDIR"]=settings["BUILDDIR"]+"/work"
1675
		settings["D"]=settings["BUILDDIR"]+"/image/"
1694
		settings["D"]=settings["BUILDDIR"]+"/image/"

Return to bug 29171