nixpkgs/pkgs/build-support
Noah Fontes b79483d2b7
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).
2021-09-12 15:07:15 -07:00
..
add-opengl-runpath
agda treewide: runCommandNoCC -> runCommand 2021-08-15 17:36:41 +02:00
alternatives
appimage appimageTools.wrapAppImage: Fix passing arguments to wrapped executable 2021-07-01 17:16:10 -07:00
bintools-wrapper Merge master into staging-next 2021-07-25 06:01:27 +00:00
build-bazel-package buildBazelPackage: set fetchConfigured default to true 2021-06-07 02:04:01 +00:00
build-dotnet-package
build-fhs-userenv buildFhsUserenv: inherit mounts from parent namespace 2021-09-01 18:37:54 -07:00
build-fhs-userenv-bubblewrap build-fhs-user-env-bubblewrap: add compatibility for pipewire alsa emulation 2021-07-10 12:50:52 +02:00
build-setupcfg
buildenv
cc-wrapper mingw: Disalbe FORTIFY_SOURCE by default. 2021-08-11 05:07:42 -04:00
coq mkCoqDerivation: use COQMF_COQLIB for dev versions of Coq 2021-09-08 15:15:28 +02:00
docker dockerTools.usrBinEnv: add 2021-08-25 16:08:39 +02:00
dotnetbuildhelpers
dotnetenv
emacs elpa-packages: deprecate phases 2021-08-16 21:34:58 +02:00
expand-response-params
fetchbitbucket
fetchbower
fetchbzr
fetchcvs
fetchdarcs
fetchdocker
fetchfirefoxaddon
fetchfossil
fetchgit nix-prefetch-git: add fetchLFS flag to the JSON output 2021-08-28 10:14:48 +02:00
fetchgitea fetchFromGitea: init 2021-05-27 09:35:56 +02:00
fetchgithub
fetchgitiles
fetchgitlab fetchgitlab: add deepClone, fetchSubmodules, leaveDotGit arguments 2021-07-22 13:09:14 +02:00
fetchgitlocal
fetchgx fetchgx: deprecate phases 2021-08-20 23:47:21 +02:00
fetchhg
fetchipfs
fetchmavenartifact
fetchmtn
fetchnuget
fetchpatch
fetchrepoorcz
fetchrepoproject
fetchs3
fetchsavannah
fetchsourcehut
fetchsvn
fetchsvnrevision
fetchsvnssh
fetchurl mirrors: get a second mirror for metalab 2021-08-23 20:47:58 +00:00
fetchzip fetchzip: add extension parameter 2021-08-10 19:57:08 +03:00
go
icon-conv-tools application/development: /s/name/pname&version/ 2021-06-30 09:55:22 +02:00
install-shell-files
kernel make-initrd: fix #132059 2021-08-08 07:53:59 +02:00
libredirect libredirect: add subprocess test 2021-09-03 23:45:46 +02:00
make-desktopitem build-support/make-desktopitem: add some missing fields 2021-06-04 17:48:46 +02:00
make-startupitem
make-symlinks
mkshell mkshell: small fix for #137005 (#137105) 2021-09-08 16:54:24 +02:00
mono-dll-fixer
nix-gitignore nix-gitignore: fix evaluation when .gitignore contains \# or \! (#130643) 2021-07-22 12:18:10 -04:00
nuget-to-nix treewide: runCommandNoCC -> runCommand 2021-08-15 17:36:41 +02:00
nuke-references
ocaml build-support.ocaml.dune: handle minimalOCamlVersion typo 2021-06-11 11:08:12 +02:00
oci-tools
pkg-config-wrapper pkg-config-wrapper: mangle PKG_CONFIG_PATH{,_FOR_BUILD} correctly 2021-05-18 00:13:27 +02:00
prefer-remote-fetch
references-by-popularity
release
remove-references-to
replace-secret replace-secret: deprecate phases 2021-08-17 09:59:37 +02:00
rust Merge pull request #137204 from SuperSandro2000/fetchCargoTarball 2021-09-11 19:31:03 +02:00
setup-hooks autoPatchelfHook: fix detection under crossSystem 2021-09-12 15:07:15 -07:00
singularity-tools
skaware s6-rc: fix cross builds that run s6-rc-compile 2021-08-18 20:09:19 +00:00
snap
src-only
substitute
substitute-files
templaterpm nix-template-rpm: deprecate phases 2021-08-17 11:04:49 +02:00
trivial-builders trivial-builders: refactor writeTextFile to be overridable 2021-06-18 01:39:59 +02:00
upstream-updater
vm vm: deprecate phases 2021-08-20 23:31:26 +02:00
wrapper-common Merge pull request #123989 from Mic92/static-pie 2021-05-25 06:32:25 +01:00
writers writers: drop writeC 2021-08-25 20:16:31 +02:00
build-maven.nix
build-pecl.nix php: Run nixpkgs-fmt on all php related files 2021-06-26 20:07:56 +02:00
closure-info.nix
dhall-to-nix.nix dhallToNix: Permit inputs referring to derivations (#134459) 2021-08-21 19:25:01 -07:00
plugins.nix
replace-dependency.nix
setup-systemd-units.nix
source-from-head-fun.nix
trivial-builders.nix Merge pull request #133905 from raboof/buf-use-testVersion-utility 2021-08-18 11:59:49 +02:00