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

Collapse All | Expand All

(-)a/pym/portage/package/ebuild/doebuild.py (-8 / +3 lines)
Lines 205-215 def _doebuild_path(settings, eapi=None): Link Here
205
	overrides = [x for x in settings.get(
205
	overrides = [x for x in settings.get(
206
		"__PORTAGE_TEST_PATH_OVERRIDE", "").split(":") if x]
206
		"__PORTAGE_TEST_PATH_OVERRIDE", "").split(":") if x]
207
207
208
	prefixes = []
209
	if eprefix:
210
		prefixes.append(eprefix)
211
	prefixes.append("/")
212
213
	path = overrides
208
	path = overrides
214
209
215
	if "xattr" in settings.features:
210
	if "xattr" in settings.features:
Lines 231-239 def _doebuild_path(settings, eapi=None): Link Here
231
		path.append(os.path.join(x, "ebuild-helpers"))
226
		path.append(os.path.join(x, "ebuild-helpers"))
232
	path.extend(prerootpath)
227
	path.extend(prerootpath)
233
228
234
	for prefix in prefixes:
229
	prefix = eprefix if eprefix else "/"
235
		for x in ("usr/local/sbin", "usr/local/bin", "usr/sbin", "usr/bin", "sbin", "bin"):
230
	for x in ("usr/local/sbin", "usr/local/bin", "usr/sbin", "usr/bin", "sbin", "bin"):
236
			path.append(os.path.join(prefix, x))
231
		path.append(os.path.join(prefix, x))
237
232
238
	path.extend(rootpath)
233
	path.extend(rootpath)
239
	settings["PATH"] = ":".join(path)
234
	settings["PATH"] = ":".join(path)

Return to bug 585986