Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dwarf Fortress expression should set dontPatchELF = true #15969

Closed
michalrus opened this issue Jun 3, 2016 · 6 comments
Closed

Dwarf Fortress expression should set dontPatchELF = true #15969

michalrus opened this issue Jun 3, 2016 · 6 comments
Assignees

Comments

@michalrus
Copy link
Member

Issue description

If you look at

patchelf \
--set-interpreter $(cat ${stdenv.cc}/nix-support/dynamic-linker) \
--set-rpath "${libpath}" \
$out/libs/Dwarf_Fortress
— it’s using patchelf, and not settingdontPatchELF = true.

Most probably it should do that, as suggested by @ttuegel on freenode/#nixos:

@joachifm
Copy link
Contributor

joachifm commented Jun 3, 2016

Is there an actual problem? The patchelf setup hook removes entries in the rpath that appear redundant, so it's not clear to me that it inherently conflicts with setting the rpath manually (though it's obvious that it can).

@ttuegel
Copy link
Member

ttuegel commented Jun 3, 2016

This is not an actual problem, but something that could become a problem in the future. By the way, for pre-built binaries, you probably also always want dontStrip = true;.

@abbradar
Copy link
Member

abbradar commented Jun 4, 2016

Hm, why can it be a problem? I usually leave it (setting dontStrip = true meanwhile) to clean unused RPATH entries.

@abbradar abbradar self-assigned this Jun 4, 2016
@ttuegel
Copy link
Member

ttuegel commented Jun 4, 2016

Hm, why can it be a problem?

I've had problems in the past when I am appending to the RPATH and the pre-built binary has RPATH entries which are not "needed," but used to dlopen things at runtime, but if you are just doing --set-rpath anyway, I suppose it is fine.

@abbradar
Copy link
Member

abbradar commented Jun 4, 2016

Ah! Yes, this can be a problem, but I've used --add-needed to fix this more granularly... unless I'm lazy. Anyway, @michalrus, is there any problem with Dwarf Fortress which needs this fix?

@michalrus
Copy link
Member Author

@abbradar, none that I know of. =) I just didn’t want this hint from @ttuegel to disappear in channel’s logs.

@MasseGuillaume MasseGuillaume mentioned this issue Apr 13, 2021
10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants