Created attachment 443222 [details, diff] prefix.patch Hi, this patch introduces bprefixify, using patchelf to adjust interp ELF field on RAP.
prefix.eclass is inherited by ebuilds with KEYWORDS for all or almost all architectures. dev-util/patchelf has only KEYWORDS="amd64 ppc ppc64 x86 ~amd64-linux ~x86-linux". Addition of DEPEND="dev-util/patchelf" would require that dev-util/patchelf be firstly keyworded and stabilized on remaining architectures. A potential alternative is to make prefix.eclass add this dependency only when some variable (e.g. PREFIX_ENABLE_DEPENDENCIES="1") is set by given ebuild before 'inherit prefix'.
Or add it use-dependent, and for ELF systems only, something like: DEPEND="prefix? ( !prefix-guest ( kernel_linux ( dev-util/patchelf ) kernel_SunOS ( dev-util/patchelf ) ... ) )" And make it a no-op on non-ELF systems for now please.
This is a sad situation. We don't have a good way to install haskell in Prefix, as patchelf does not work on all the platforms.
Abandon ship.