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

Collapse All | Expand All

(-)a/eclass/kernel-2.eclass (-12 / +8 lines)
Lines 1449-1465 kernel-2_src_unpack() { Link Here
1449
	fi
1449
	fi
1450
1450
1451
	# fix a problem on ppc where TOUT writes to /usr/src/linux breaking sandbox
1451
	# fix a problem on ppc where TOUT writes to /usr/src/linux breaking sandbox
1452
	# only do this for kernel < 2.6.27 since this file does not exist in later
1452
	# only do this for kernels < 4.14.120 since this file does not exist in
1453
	# kernels
1453
	# later kernels
1454
	if [[ -n ${KV_MINOR} ]] && ver_test ${KV_MAJOR}.${KV_MINOR}.${KV_PATCH} -lt 2.6.27; then
1454
	local ppc_makefile="${S}"/arch/powerpc/Makefile
1455
		sed -i \
1455
	[[ -n ${KV_MINOR} ]] && ver_test ${KV_MAJOR}.${KV_MINOR}.${KV_PATCH} -lt 4.14.120  && \
1456
			-e 's|TOUT      := .tmp_gas_check|TOUT  := $(T).tmp_gas_check|' \
1456
		ppc_makefile="${S}"/arch/ppc/Makefile
1457
			"${S}"/arch/ppc/Makefile
1457
	sed -i \
1458
	else
1458
		-e 's|^\(TOUT.*:= \)\(\.tmp_gas_check\)|\1$(addsuffix /,$(T))\2|' \
1459
		sed -i \
1459
		"${ppc_makefile}"
1460
			-e 's|TOUT      := .tmp_gas_check|TOUT  := $(T).tmp_gas_check|' \
1461
			"${S}"/arch/powerpc/Makefile
1462
	fi
1463
}
1460
}
1464
1461
1465
# @FUNCTION: kernel-2_src_prepare
1462
# @FUNCTION: kernel-2_src_prepare
1466
- 

Return to bug 336732