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

Collapse All | Expand All

(-)../../../gentoo/dev-lang/rust/rust-1.50.0.ebuild (+20 lines)
Lines 95-100 Link Here
95
	system-llvm? (
95
	system-llvm? (
96
		${LLVM_DEPEND}
96
		${LLVM_DEPEND}
97
	)
97
	)
98
	!system-bootstrap? ( dev-util/patchelf )
98
"
99
"
99
# we need to block older versions due to layout changes.
100
# we need to block older versions due to layout changes.
Lines 216-221 Link Here
216
		"${WORKDIR}/${rust_stage0}"/install.sh --disable-ldconfig \
217
		"${WORKDIR}/${rust_stage0}"/install.sh --disable-ldconfig \
217
			--destdir="${rust_stage0_root}" --prefix=/ || die
218
			--destdir="${rust_stage0_root}" --prefix=/ || die
219
220
		for i in $(find "${rust_stage0_root}/lib"); do
221
				filetype=$(file $i)
222
				if [[ $filetype == *ELF* ]]; then
223
						echo "patching $i:"
224
						patchelf --remove-rpath $i || die
225
						echo " setting rpath= ${EPREFIX}/lib"
226
						patchelf --force-rpath --set-rpath ${EPREFIX}/lib $i || die
227
				fi
228
		done
229
230
		for i in $(find "${rust_stage0_root}/bin"); do
231
				filetype=$(file $i)
232
				if [[ $filetype == *ELF* ]]; then
233
						echo "patching $i:"
234
						echo " setting interpreter= ${EPREFIX}/lib64/ld-linux-x86-64.so.2"
235
						patchelf --set-interpreter ${EPREFIX}/lib64/ld-linux-x86-64.so.2 $i || die
236
				fi
237
		done
218
	fi
238
	fi
219
	default
239
	default

Return to bug 682370