nixpkgs/pkgs/applications
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
..
accessibility
audio treewide: use lib.getLib for OpenSSL libraries 2022-03-30 15:10:00 +00:00
backup
blockchains treewide: use lib.getLib for OpenSSL libraries 2022-03-30 15:10:00 +00:00
display-managers lightdm-enso-os-greeter: switch to fetchFromGitHub 2022-03-16 23:23:10 +01:00
editors treewide: use lib.getLib for OpenSSL libraries 2022-03-30 15:10:00 +00:00
emulators Merge pull request #165303 from Stunkymonkey/treewide-pname-version-18 2022-03-24 22:55:34 -05:00
finance irpf: init at 2022-1.0 2022-03-14 11:10:11 -03:00
gis Merge pull request #165303 from Stunkymonkey/treewide-pname-version-18 2022-03-24 22:55:34 -05:00
graphics Merge pull request #165303 from Stunkymonkey/treewide-pname-version-18 2022-03-24 22:55:34 -05:00
kde nixos/tests: add passthru.tests to all tested terminal emulators 2022-03-20 16:48:06 +13:00
logging/humioctl
misc Merge pull request #140406 from mkg20001/mvn 2022-03-25 15:08:44 +01:00
networking treewide: use lib.getLib for OpenSSL libraries 2022-03-30 15:10:00 +00:00
office Merge pull request #165416 from SuperSandro2000/autokey 2022-03-24 23:14:23 -05:00
plasma-mobile
printing/pappl
qubes/qubes-core-vchan-xen
radio Merge pull request #165303 from Stunkymonkey/treewide-pname-version-18 2022-03-24 22:55:34 -05:00
science Merge pull request #165303 from Stunkymonkey/treewide-pname-version-18 2022-03-24 22:55:34 -05:00
search
system monitor: 0.12.0 -> 0.13.0 2022-03-17 09:29:59 +08:00
terminal-emulators treewide: rename name to pname&version 2022-03-23 22:55:50 +01:00
version-management treewide: use lib.getLib for OpenSSL libraries 2022-03-30 15:10:00 +00:00
video Merge pull request #165297 from Stunkymonkey/treewide-pname-version-17 2022-03-24 16:38:33 +01:00
virtualization Merge pull request #165297 from Stunkymonkey/treewide-pname-version-17 2022-03-24 16:38:33 +01:00
window-managers Merge pull request #165297 from Stunkymonkey/treewide-pname-version-17 2022-03-24 16:38:33 +01:00