Skip to content

patchefd --set-rpath ... nodejs broken since ~0.17.2 (0.15.0 works) #531

Closed
@vobloeb

Description

@vobloeb

Describe the bug

patchelf --set-rpath ${stdenv.cc.cc.lib}/lib node produces broken executable with patchelf-0.17.2 and patchelf-0.18.0, no problem with patchelf-0.15.0

the resulting executables crash with Segmentation Failed

ldd node produces no output at all

Steps To Reproduce

node is from this archive: https://nodejs.org/dist/v16.14.2/node-v16.14.2-linux-x64.tar.gz

Then run patchelf --set-rpath ${stdenv.cc.cc.lib}/lib node where ${stdenv.cc.cc.lib} is the path to gcc libs path on your system

Expected behavior

Expected working executable as it was with patchelf-0.15.0

patchelf --version output

0.17.2, 0.18.0

Additional context

Downloaded node may seems ridiculous example, but using downloaded node and protoc it is an usual part of Maven build process.
BTW, there was no problem with patching protoc with any patchelf version

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions