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

(-)rust-1.62.1.ebuild (+12 lines)
Lines 107-112 Link Here
107
	dev-libs/openssl:0=
107
	dev-libs/openssl:0=
108
	elibc_musl? ( sys-libs/libunwind:= )
108
	elibc_musl? ( sys-libs/libunwind:= )
109
	system-llvm? ( ${LLVM_DEPEND} )
109
	system-llvm? ( ${LLVM_DEPEND} )
110
	prefix? ( dev-util/patchelf )
110
"
111
"
111
112
112
RDEPEND="${DEPEND}
113
RDEPEND="${DEPEND}
Lines 252-257 Link Here
252
			--without=rust-docs --destdir="${rust_stage0_root}" --prefix=/ || die
253
			--without=rust-docs --destdir="${rust_stage0_root}" --prefix=/ || die
253
	fi
254
	fi
254
255
256
	# set interpreter for Prefix
257
	if use prefix ; then
258
		for i in $(find "${WORKDIR}/rust-stage0/bin"); do
259
			filetype=$(file $i)
260
			if [[ $filetype == *ELF* ]]; then
261
				echo "patching $i:"
262
				echo " setting interpreter= ${EPREFIX}/$(get_libdir)/ld-linux-x86-64.so.2"
263
				patchelf --set-interpreter "${EPREFIX}/$(get_libdir)"/ld-linux-x86-64.so.2 $i
264
			fi
265
		done
266
	fi
255
	default
267
	default
256
}
268
}
257
269

Return to bug 865257