Skip to content
/ python Public

autoPatchelfHook versus setting rpath #39

@milahu

Description

@milahu

i noticed in 4d9a976 (shiboken6)
that you fix the libstdc++.so.6: cannot open shared object file: No such file or directory error
by doing some magic with rpath in

(listOptional setup.runtimeLibstdcppRpath nixpkgs.gcc.cc.lib)

usually in nixpkgs, this is solved with

{
  buildInputs = [
    pkgs.stdenv.cc.cc # libstdc++.so.6: cannot open shared object file: No such file or directory
  ];
  nativeBuildInputs = [ autoPatchelfHook ];

for example in python-modules/jaxlib/bin.nix and some other packages

so ... is your rpath solution intentional? does it have some advantage over autoPatchelfHook?
maybe autoPatchelfHook fails in some cases? or did you just copy old nix code? ; )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions