patchelf

A small utility to modify the dynamic linker and RPATH of ELF executables (by NixOS)

Patchelf Alternatives

Similar projects and alternatives to patchelf

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better patchelf alternative or higher similarity.

patchelf reviews and mentions

Posts with mentions or reviews of patchelf. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-10-11.
  • Invalid or corrupted package (PGP signature)
    2 projects | /r/archlinux | 11 Oct 2022
    Thank you! I followed the instruction here, but it looks like I didn't actually install it, because my pacman -Q patchelf did not find anything. Maybe I was missing a dependency. Also, it was late so I didn't pay attention to warnings at the time.
  • Rpath, or why lld doesn’t work on NixOS
    2 projects | news.ycombinator.com | 15 Mar 2022
    How does an article on NixOS talk about the `rpath` issue without also mentioning the `patchelf` utility that NixOS developers created to solve this issue? It's a small tool that lets you modify ELF executables and binaries. It's also the recommended way for NixOS users to modify binaries to work properly.

    https://github.com/NixOS/patchelf

  • PatchELF: Simple utility for modifying existing ELF executables and libraries
    6 projects | news.ycombinator.com | 7 May 2021
  • Scala project (FIRRTL) failing to build on NixOS
    4 projects | /r/NixOS | 22 Mar 2021
    NixOS doesn't have stable paths to shared libraries like macOS or other linux distributions (and this is the core feature) and always need to patch elf for current paths ( https://github.com/NixOS/patchelf ).
  • Building Static Ruby Gems for Lambda Zip or Containers using Docker & Amazon Linux
    6 projects | dev.to | 21 Feb 2021
    There is a great tool called ldd which lists dynamic dependencies. In my case the mysql2 gem did not statically link all dependencies. This is why I had to use patchelf to fix a few.
  • NixOS Linux
    7 projects | news.ycombinator.com | 10 Jan 2021
    I had the same experience as well. I tried NixOS once as my main desktop environment. I encountered two problems that made me switch to Ubuntu+Nix. And they work perfectly for their own purposes.

    One problem is dynamically linked binaries, where the library points to a global position (like /usr/lib). In NixOS, different builds can depend on different versions of the same binary, so there is no single global location. This is not necessarily a bad thing in itself. And normal cases can be fixed with the patchelf [^1] utility. I couldn't make it work with a Z3 binary, so I finally gave up.

    The other problem is when I tried to configure jackdbus. There's only one example [^2] configuration. It is marked as outdated by the wiki, and indeed none of the settings work for me.

    Then I realized these two are not problems that Nix tries to solve. Pointing to a global binary is okay for some quick fixes. And JACK module is better to work out-of-the-box, I don't want to dive into all of the configurations before I haven't even used it.

    Now I use Ubuntu for casual desktop applications and write Nix derivations for projects that need reproducibility. And I think I find my perfect balance.

    [^1]: https://github.com/NixOS/patchelf

  • A note from our sponsor - SaaSHub
    www.saashub.com | 16 Apr 2024
    SaaSHub helps you find the best software and product alternatives Learn more →

Stats

Basic patchelf repo stats
12
3,226
4.3
7 days ago
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com