nixpkgs/pkgs/build-support/setup-hooks
Thomas Watson 4d6d293fad setup-hooks/strip: uniqify files by inode number before stripping
https://github.com/NixOS/nixpkgs/pull/246164 but for hardlinks.

Mesa, among other packages, has binaries that are linked together and
can end up corrupted when the same binary is stripped through two
different names.

To resolve this, print out the device and inode number before each file
name, sort/uniq based on that, then cut it back out before stripping.

The symlink resolution logic is removed as the same file accessed
through two different links in `$paths` will necessarily have the same
numbers. File/directory within the paths listed in `$paths` are
correctly not (and were never) processed due to the `-type f` predicate
and (implied) `-P` option to `find`.
2024-05-24 16:53:14 -05:00
..
make-binary-wrapper Fix venv creation in Python environments 2024-03-21 19:26:57 -06:00
mpi-check-hook mpiCheckPhaseHook: add new setup hook for MPI aware check phases 2023-08-22 23:27:47 +02:00
patch-ppd-files patch-ppd-files: use meta and passthru directly 2023-04-11 16:58:18 +02:00
patch-rc-path-hooks patchRcPath hooks: use the passthru argument 2022-11-10 09:27:40 +08:00
postgresql-test-hook postgresqlTestHook: add postgresqlExtraSettings variable 2024-01-22 04:20:00 +00:00
wrap-gapps-hook treewide: wrapGAppsHook → wrapGAppsHook3 2024-04-27 02:23:22 +02:00
audit-tmpdir.sh treewide: remove usages of header and stopNest 2023-01-16 00:08:12 +02:00
auto-patchelf.py autoPatchelfHook: fix arguments parsing 2023-11-17 20:46:13 +03:00
auto-patchelf.sh autoPatchelfHook: move multiline hook into a function 2024-03-17 09:48:43 -06:00
autoreconf.sh
breakpoint-hook.sh
compress-man-pages.sh
copy-desktop-items.sh copyDesktopItems: Use variable for repeated path 2022-04-07 11:04:11 +00:00
copy-pkgconfig-items.sh makePkgconfigItem: init new function to generate pc files 2022-07-20 06:22:39 +03:00
desktop-to-darwin-bundle.sh writeDarwinBundle: use binary wrapper 2023-08-21 13:29:12 +10:00
die.sh
enable-coverage-instrumentation.sh
find-xml-catalogs.sh
fix-darwin-dylib-names.sh darwin: fix also .so names in darwin 2023-10-28 00:00:52 +02:00
gog-unpack.sh
install-shell-files.sh
keep-build-tree.sh
ld-is-cc-hook.sh
make-coverage-analysis-report.sh
make-symlinks-relative.sh Merge pull request #212286 from Artturin/runonall 2023-01-25 15:51:53 +02:00
make-wrapper.sh Fix venv creation in Python environments 2024-03-21 19:26:57 -06:00
move-build-tree.sh moveBuildTree: init 2023-04-14 21:08:27 +03:00
move-docs.sh move-docs.sh: update comment 2022-12-12 21:39:56 +02:00
move-lib64.sh
move-sbin.sh
move-systemd-user-units.sh build-support/setup-hooks: change shebang to shellcheck directive 2022-12-13 00:24:33 +02:00
multiple-outputs.sh stdenv: Fix possible issues discovered with 2023-09-02 03:25:36 +03:00
patch-shebangs.sh patch-shebangs: fix crash with shebang without trailing newline 2023-09-16 14:20:56 +02:00
prune-libtool-files.sh
reproducible-builds.sh setup-hooks/reproducible-builds.sh: NIX_OUTPATH_USED_AS_RANDOM_SEED (take 2) (#216967) 2023-02-18 15:53:42 +01:00
role.bash pkgs/build-support: fix typos 2023-05-31 04:00:14 +04:00
separate-debug-info.sh separateDebugInfo: use NIX_RUSTFLAGS 2023-11-30 09:23:06 +00:00
set-java-classpath.sh
set-source-date-epoch-to-latest.sh
setup-debug-info-dirs.sh
shorten-perl-shebang.sh
strip-java-archives.sh stripJavaArchivesHook: rename from canonicalize-jars-hook and use strip-nondeterminism 2024-03-17 13:30:54 +01:00
strip.sh setup-hooks/strip: uniqify files by inode number before stripping 2024-05-24 16:53:14 -05:00
update-autotools-gnu-config-scripts.sh
use-old-cxx-abi.sh
validate-pkg-config.sh
win-dll-link.sh win-dll-links: also copy dll from dependencies 2023-08-31 21:47:48 +03:00