nixpkgs/pkgs/tools
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
..
admin treewide: use lib.getLib for OpenSSL libraries 2022-03-30 15:10:00 +00:00
archivers _7zz: correct license (#163999) 2022-03-18 12:47:19 +08:00
audio tts: Switch from tensorboardx to torch.util.tensorboard 2022-03-23 16:34:20 -04:00
backup Merge pull request #164353 from r-ryantm/auto-update/dar 2022-03-23 04:07:06 +01:00
bluetooth Merge pull request #159137 from r-ryantm/auto-update/blueman 2022-02-12 16:47:35 +03:00
bootloaders/refind
cd-dvd vobsub2srt: switch to fetchFromGitHub 2022-03-14 19:32:49 +01:00
compression pxz: use upstream's Makefile (#165264) 2022-03-23 03:59:58 +01:00
filesystems treewide: use lib.getLib for OpenSSL libraries 2022-03-30 15:10:00 +00:00
games treewide: switch all desktop file generators to new API 2022-02-25 13:40:38 -08:00
graphics Merge pull request #164710 from r-ryantm/auto-update/astc-encoder 2022-03-21 10:01:19 -07:00
inputmethods ibus: 1.5.24 -> 1.5.26 2022-03-14 18:00:45 +01:00
misc Merge pull request #165689 from r-ryantm/auto-update/mcfly 2022-03-24 23:10:36 -05:00
networking treewide: use lib.getLib for OpenSSL libraries 2022-03-30 15:10:00 +00:00
nix Merge pull request #164588 from 1000101/nix-info 2022-03-23 07:50:32 +01:00
package-management nixVersion.unstable: pre20220311 -> pre20220322 2022-03-22 22:16:46 +02:00
security treewide: use lib.getLib for OpenSSL libraries 2022-03-30 15:10:00 +00:00
system treewide: use lib.getLib for OpenSSL libraries 2022-03-30 15:10:00 +00:00
text gnused_422: drop 2022-03-24 00:03:59 +01:00
toml2nix
typesetting treewide: remove meta.repositories 2022-03-24 23:56:14 +02:00
video vnc2flv: remove 2022-03-21 12:43:49 -05:00
virtualization awsebcli: fixup! 2022-03-19 08:22:01 -04:00
wayland wl-color-picker: init at 1.3 2022-03-21 15:34:02 -04:00
X11 jumpapp: 1.1 -> 1.2 2022-03-20 11:36:06 +01:00