Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 591172 - prefix.eclass bprefixify to fix the interpreters of ELF
Summary: prefix.eclass bprefixify to fix the interpreters of ELF
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Deadline: 2016-08-20
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: prefix-gx86 637532
  Show dependency tree
 
Reported: 2016-08-13 09:11 UTC by Benda Xu
Modified: 2018-07-02 04:33 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
prefix.patch (prefix.patch,1.48 KB, patch)
2016-08-13 09:11 UTC, Benda Xu
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Benda Xu gentoo-dev 2016-08-13 09:11:17 UTC
Created attachment 443222 [details, diff]
prefix.patch

Hi, this patch introduces bprefixify, using patchelf to adjust interp ELF field on RAP.
Comment 1 Arfrever Frehtes Taifersar Arahesis 2016-08-13 21:50:31 UTC
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'.
Comment 2 Michael Haubenwallner (RETIRED) gentoo-dev 2016-08-17 07:29:21 UTC
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.
Comment 3 Benda Xu gentoo-dev 2017-12-11 08:29:55 UTC
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.
Comment 4 Benda Xu gentoo-dev 2018-07-02 04:33:23 UTC
Abandon ship.