nixpkgs/pkgs/build-support
Guillaume Maudoux 7b9fd5d1c9
rewrite autoPatchelfHook in python (#149731)
* rewrite autoPatchelfHook in python

* Update pkgs/build-support/setup-hooks/auto-patchelf.py

Co-authored-by: aszlig <aszlig@redmoonstudios.org>

* Update pkgs/build-support/setup-hooks/auto-patchelf.py

Co-authored-by: aszlig <aszlig@redmoonstudios.org>

* Apply suggestions from code review

Co-authored-by: aszlig <aszlig@redmoonstudios.org>

* Fix issues discovered during tests

* Apply suggestions from code review

Co-authored-by: aszlig <aszlig@redmoonstudios.org>

* fixup line wrapping

* autoPatchelfHook: Improve compatibility with bash version

* autoPatchelfHook: Fix symlink-reated issues

* autoPatchelfHook: Revert dubious patchelf invocation test

* autoPatchelfHook: Untangle the executable detection logic

* fixup! autoPatchelfHook: Untangle the executable detection logic

* autoPatchelfHook: Fix invalid borrow issue

* autoPatchelfHook: Handle runtimeDependencies as the bare string it is

* autoPatchelfHook: add bintools dependency

For the very rare cases where it is not included by default.

* autoPatchelfHook: replace old hook with the rewrite

* autoPatchelfHook: get rid of the old hook content

* autoPatchelfHook: fix wrong ordering of debug info

* autoPatchelfHook: persist extra search path across incovations

* autoPatchelfHook: fix wrong usage of global variables

* Update auto-patchelf.py

PEP8: ignoreMissing -> ignore_missing

* Apply suggestions from code review

Co-authored-by: aszlig <aszlig@redmoonstudios.org>

* autoPatchelfHook: remove imprecise and incorrect warning

* Apply explicit types from code review

Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>

* Complement and polish types and snake_casing

Co-authored-by: aszlig <aszlig@redmoonstudios.org>
Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
2022-02-04 10:08:27 +01:00
..
add-opengl-runpath
agda Merge pull request #98214 from turion/dev_test_all_agda_packages 2021-10-19 09:56:50 +02:00
alternatives lapack: include lapacke_utils.h in alternatives/lapack 2021-12-01 15:14:47 +08:00
appimage Merge staging-next into staging 2021-10-29 18:01:38 +00:00
bintools-wrapper Check link type based on expanded parameters 2022-01-01 20:30:56 +08:00
build-bazel-package buildBazelPackage: Pass --curses=no for terse logs 2021-12-04 23:36:40 +00:00
build-dotnet-module buildDotnetModule: wrap executables in preFixup 2022-01-12 00:23:53 +01:00
build-dotnet-package buildDotnetPackage: rename baseName to pname 2021-12-23 22:46:35 +01:00
build-fhs-userenv maintainers: update personal details 2021-12-31 21:48:55 +03:00
build-fhs-userenv-bubblewrap Merge pull request #145258 from Ma27/steam-resolv-conf-override 2022-01-18 22:59:08 +01:00
build-graalvm-native-image buildGraalVmNativeImage: enable utf-8 by default 2022-01-04 09:56:34 +01:00
build-setupcfg
buildenv lib: make extendDerivation lighter on eval 2021-10-15 16:39:10 +02:00
cc-wrapper Check link type based on expanded parameters 2022-01-01 20:30:56 +08:00
coq coqPackages.mkCoqDerivation: rely on namePrefix to compute default opam-name 2021-09-20 11:10:23 +02:00
dhall dhallDirectoryToNix: add this utility function 2021-12-07 13:36:21 +09:00
docker streamLayeredImage: pass through passthru attributes 2022-01-31 10:10:10 +03:00
dotnetbuildhelpers
dotnetenv
emacs melpa2nix: Ignore large file warnings 2021-12-19 08:07:18 -08:00
expand-response-params
fetchbitbucket
fetchbower
fetchbzr
fetchcvs
fetchdarcs
fetchdocker fix: fetchdocker call signature 2021-05-08 23:57:32 +02:00
fetchfirefoxaddon fetchfirefoxaddon: Allow overriding the src and add a test for it 2021-10-03 03:43:41 +03:00
fetchfossil
fetchgit fetchgit: Add test for sparseCheckout 2022-01-24 11:23:56 +08:00
fetchgitea fetchFromGitea: init 2021-05-27 09:35:56 +02:00
fetchgithub fetchgithub: Support sparseCheckout 2022-01-24 11:31:41 +08:00
fetchgitiles
fetchgitlab fetchgitlab: fix unexpected argument 2021-11-18 21:53:46 +03:00
fetchgitlocal
fetchgx fetchgx: deprecate phases 2021-08-20 23:47:21 +02:00
fetchhg
fetchipfs
fetchmavenartifact
fetchmtn misc: Replace tab indentation with spaces 2021-11-14 16:04:46 +13:00
fetchnextcloudapp nixos/nextcloud: fixup #119638 2021-10-09 22:45:31 +02:00
fetchnuget buildDotnetPackage: rename baseName to pname 2021-12-23 22:46:35 +01:00
fetchpatch fetchpatch: Clean up 2022-02-02 12:15:47 +01:00
fetchrepoorcz
fetchrepoproject
fetchs3 treewide: remove stdenv where not needed 2021-03-04 19:54:50 +07:00
fetchsavannah
fetchsourcehut fetchFromSourcehut: allow recursive fetching 2022-01-03 16:37:16 +07:00
fetchsvn
fetchsvnrevision
fetchsvnssh
fetchurl fetchurl: also check certificate when using all zero hash (#152608) 2022-01-02 13:01:17 +01:00
fetchzip fetchzip: recursively run chmod +w on the unpackDir 2021-09-08 03:58:18 +03:00
go garble: 20200107 -> 0.5.1, switch to go_1_17 2022-01-30 07:42:46 +10:00
icon-conv-tools application/development: /s/name/pname&version/ 2021-06-30 09:55:22 +02:00
install-shell-files
java canonicalize-jars-hook: add 2021-10-27 13:21:27 +03:00
kernel make-initrd: fix reproducibility problems with hard links 2022-01-29 18:07:11 -05:00
libredirect Merge remote-tracking branch 'nixpkgs/staging-next' into staging 2022-01-24 15:39:34 +00: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: make it buildable (#153194) 2022-01-08 01:54:04 +01:00
mono-dll-fixer mono-dll-fixer: remove builder.sh 2021-11-20 18:01:00 +01:00
nix-gitignore nix-gitignore: fix evaluation when .gitignore contains \# or \! (#130643) 2021-07-22 12:18:10 -04:00
node/fetch-yarn-deps fetchYarnDeps: support more url types 2021-12-30 11:13:25 +01:00
nuget-to-nix buildDotnetPackage: rename baseName to pname 2021-12-23 22:46:35 +01:00
nuke-references nukeReferences: fix code signatures on aarch64-darwin 2021-05-17 00:27:03 +09:00
ocaml buildOcaml: rename name to pname 2021-11-01 16:19:30 +01:00
oci-tools
pkg-config-wrapper pkg-config: make comment clearer for non-natives 2021-12-02 16:11:43 -08:00
prefer-remote-fetch
references-by-popularity
release releaseTools.antBuild: remove 2021-10-27 13:21:27 +03:00
remove-references-to removeReferencesTo: fix code signatures on aarch64-darwin 2021-05-17 00:27:03 +09:00
replace-secret replace-secret: deprecate phases 2021-08-17 09:59:37 +02:00
rust Merge master into staging-next 2022-01-20 00:01:46 +00:00
setup-hooks rewrite autoPatchelfHook in python (#149731) 2022-02-04 10:08:27 +01:00
singularity-tools singularity-tools.buildImage: fix building from non-standard store paths 2021-10-27 02:11:44 -04:00
skaware skawarePackages.buildPackage: reformat with nixpkgs-fmt 2022-01-15 22:06:56 +01:00
snap
src-only
substitute
substitute-files
templaterpm nix-template-rpm: deprecate phases 2021-08-17 11:04:49 +02:00
trivial-builders nixos/nix-daemon: use structural settings 2022-01-26 21:04:50 -05:00
vm vmTools/test: fix pcmanfm instead of pan 2021-12-31 16:47:22 +01:00
wrapper-common Quote variable references (#144838) 2021-11-09 19:55:40 +09:00
writers writers.PyPy{2,3}: init 2021-12-15 10:01:08 +01: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
plugins.nix
replace-dependency.nix
setup-systemd-units.nix
source-from-head-fun.nix
test-equal-derivation.nix testEqualDerivation: init 2022-01-08 15:18:57 +01:00
trivial-builders.nix Merge branch 'staging-next' into staging 2022-01-10 01:26:05 +01:00