Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 112156
Collapse All | Expand All

(-)compiler.eselect.in (-2 / +22 lines)
Lines 514-521 Link Here
514
				env_manpath="${env_manpath:+"${env_manpath}:"}${COMPILER_CONFIG_MANPATH}"
514
				env_manpath="${env_manpath:+"${env_manpath}:"}${COMPILER_CONFIG_MANPATH}"
515
			[[ -n ${COMPILER_CONFIG_INFOPATH} ]] &&
515
			[[ -n ${COMPILER_CONFIG_INFOPATH} ]] &&
516
				env_infopath="${env_infopath:+"${env_infopath}:"}${COMPILER_CONFIG_INFOPATH}"
516
				env_infopath="${env_infopath:+"${env_infopath}:"}${COMPILER_CONFIG_INFOPATH}"
517
			[[ -n ${COMPILER_CONFIG_LDPATH} ]] &&
517
			# bugs 112156, 137917 - write LDPATHS for all installed compilers for
518
				env_ldpath="${env_ldpath:+"${env_ldpath}:"}${COMPILER_CONFIG_LDPATH}"
518
			# CTARGET, with chosen compiler version first.  N.B. do not include ldpaths
519
			# for cross-compilers.
520
			# TODO - fix what happens when COMPILER_CONFIG_SET_CTARGETS
521
			# has more than one entry (means changing the ctarget_sub == !set_v
522
			# to a loop, or something)
523
			if [[ ${ctarget} == ${COMPILER_CONFIG_DEFAULT_CTARGET} ]]; then
524
				[[ -n ${COMPILER_CONFIG_LDPATH} ]] &&
525
					env_ldpath="${env_ldpath:+"${env_ldpath}:"}${COMPILER_CONFIG_LDPATH}"
526
				set_vs="COMPILER_CONFIG_PROFILES_${ctarget//[-.]/_}"
527
				for ctarget_sub in ${!set_vs}; do
528
					[[ ${ctarget_sub/\/*} == ${!set_v} ]] && continue
529
					has ${ctarget_sub/\/*} ${seen_ctargets} && continue
530
					if eval_pm ${preopts} get-profile ${ctarget_sub}; then
531
						[[ -n ${COMPILER_CONFIG_LDPATH} ]] &&
532
							env_ldpath="${env_ldpath:+"${env_ldpath}:"}${COMPILER_CONFIG_LDPATH}"
533
					else
534
						write_error_msg "Unable to get profile information for ${ctarget_sub}"
535
					fi
536
					seen_ctargets="${seen_ctargets} ${ctarget_sub/\/*}"
537
				done
538
			fi
519
		else
539
		else
520
			write_error_msg "Unable to get profile information for ${!set_v} which is set for CTARGET ${ctarget}"
540
			write_error_msg "Unable to get profile information for ${!set_v} which is set for CTARGET ${ctarget}"
521
 		fi
541
 		fi

Return to bug 112156