summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/rangehttpserver
diff options
context:
space:
mode:
authorNoah Fontes <noah@noahfontes.com>2021-09-12 15:07:15 -0700
committerNoah Fontes <noah@noahfontes.com>2021-09-12 15:07:15 -0700
commitb79483d2b72c8e349a8fa8a6e67e8061d82d6027 (patch)
tree488897aa0079764511e1b3e74dfa438d7a09914a /pkgs/development/python-modules/rangehttpserver
parent6bbea21500a434747aa87d50f5a9323736f84392 (diff)
autoPatchelfHook: fix detection under crossSystem
In #84415, autoPatchelfHook was taught to use the correct path to the readelf binary when a crossSystem is specified. Unfortunately, the remainder of the functionality in the script depended on ldd, which only reads ELF files of its own architecture. It has the further unfortunate quality of not reporting any useful error, but rather that the file is not a dynamic executable. This change uses patchelf to directly analyze the DT_NEEDED tags in the target files instead, which correctly works across architectures. It also updates the use of objdump to be prefix-aware $OBJDUMP (which would have been required in the PR mentioned above, but we never made it that far into the script execution).
Diffstat (limited to 'pkgs/development/python-modules/rangehttpserver')
0 files changed, 0 insertions, 0 deletions