nixpkgs/pkgs/top-level
Alyssa Ross fd78240ac8
treewide: use lib.getLib for OpenSSL libraries
At some point, I'd like to make another attempt at
71f1f4884b ("openssl: stop static binaries referencing libs"), which
was reverted in 195c7da07d.  One problem with my previous attempt is
that I moved OpenSSL's libraries to a lib output, but many dependent
packages were hardcoding the out output as the location of the
libraries.  This patch fixes every such case I could find in the tree.
It won't have any effect immediately, but will mean these packages
will automatically use an OpenSSL lib output if it is reintroduced in
future.

This patch should cause very few rebuilds, because it shouldn't make
any change at all to most packages I'm touching.  The few rebuilds
that are introduced come from when I've changed a package builder not
to use variable names like openssl.out in scripts / substitution
patterns, which would be confusing since they don't hardcode the
output any more.

I started by making the following global replacements:

    ${pkgs.openssl.out}/lib -> ${lib.getLib pkgs.openssl}/lib
    ${openssl.out}/lib -> ${lib.getLib openssl}/lib

Then I removed the ".out" suffix when part of the argument to
lib.makeLibraryPath, since that function uses lib.getLib internally.

Then I fixed up cases where openssl was part of the -L flag to the
compiler/linker, since that unambigously is referring to libraries.

Then I manually investigated and fixed the following packages:

 - pycurl
 - citrix-workspace
 - ppp
 - wraith
 - unbound
 - gambit
 - acl2

I'm reasonably confindent in my fixes for all of them.

For acl2, since the openssl library paths are manually provided above
anyway, I don't think openssl is required separately as a build input
at all.  Removing it doesn't make a difference to the output size, the
file list, or the closure.

I've tested evaluation with the OfBorg meta checks, to protect against
introducing evaluation failures.
2022-03-30 15:10:00 +00:00
..
agda-packages.nix
aliases.nix Merge pull request #164526 from helsinki-systems/upd/varnish 2022-03-23 22:42:00 +00:00
all-packages.nix Merge pull request #161652 from 06kellyjac/libpwquality 2022-03-25 10:41:56 -04:00
beam-packages.nix
config.nix Revert "pkgs.path: Avoid copying when used via flake" 2022-01-27 12:53:30 +01:00
coq-packages.nix coqPackages.LibHyps: init at 2.0.4.1 2022-02-20 14:14:40 +01:00
cubocore-packages.nix
darwin-packages.nix moltenvk: init at 1.1.7 2022-02-16 17:17:06 -05:00
default.nix
dhall-packages.nix
dotnet-packages.nix
emacs-packages.nix
emscripten-packages.nix
gnuradio-packages.nix gnuradio: Inherit log dependencies in passthrus 2022-02-18 10:53:48 +02:00
haskell-packages.nix haskell.compiler.ghc902: Switch to LLVM 12 2022-02-02 20:27:32 +01:00
haxe-packages.nix
impure.nix
java-packages.nix Merge remote-tracking branch 'origin/master' into mvn 2022-03-21 18:37:45 -04:00
kodi-packages.nix kodi.packages.controller-topology-project: init at unstable-2022-01-22 2022-01-27 11:56:46 -05:00
linux-kernels.nix linux_latest: 5.16.14 -> 5.17 2022-03-21 21:53:29 +00:00
lua-packages.nix
make-tarball.nix release.nix: fix packages.json.br for tarball 2022-02-07 21:06:11 -08:00
metrics.nix
nim-packages.nix nimPackages.jsony: init at 1.1.3 2022-01-22 11:30:07 +01:00
nixpkgs-basic-release-checks.nix nixpkgs-basic-release-checks.nix: print errors 2022-02-05 14:32:54 +01:00
ocaml-packages.nix ocamlPackages.magick: remove at 0.34 2022-03-24 09:45:20 +01:00
octave-packages.nix
packages-config.nix packages-config.nix: ignore haskellPackages.hs-mesos 2022-02-08 19:04:49 +01:00
perl-packages.nix treewide: use lib.getLib for OpenSSL libraries 2022-03-30 15:10:00 +00:00
php-packages.nix php.packages.phive: init at 0.15.0 2022-03-13 16:37:37 +01:00
pure-packages.nix
python2-packages.nix python27Packages.gtkme: init at version 1.5.1 2022-02-25 14:00:45 +01:00
python-aliases.nix Merge master into staging-next 2022-03-08 00:02:02 +00:00
python-packages.nix Merge pull request #161652 from 06kellyjac/libpwquality 2022-03-25 10:41:56 -04:00
qt5-packages.nix yuview: init at 2.12.1 2022-03-21 14:13:20 +01:00
release-alternatives.nix
release-cross.nix
release-haskell.nix haskell.packages.ghc921.haskell-language-server: Fix build and enable 2022-02-05 03:15:11 +01:00
release-lib.nix
release-python.nix release-python.nix: add test job sets 2022-02-11 17:05:05 -08:00
release-r.nix
release-small.nix Merge pull request #157886 from jonringer/prune-release-small 2022-02-05 13:13:47 -05:00
release.nix release.nix: add cachix on darwin as a blocker 2022-02-01 12:06:46 +00:00
ruby-packages.nix rubyPackages.addressable: 2.4.0 -> 2.8.0 2022-01-30 16:12:25 +01:00
splice.nix
stage.nix https://github.com/NixOS/nixpkgs/pull/161158#pullrequestreview-903824138 2022-03-10 20:30:17 -08:00
unixtools.nix
wine-packages.nix wine: enable Vulkan on Darwin 2022-02-18 15:20:34 -05:00