Skip to content

Commit

Permalink
libreswan: Unbreak the package
Browse files Browse the repository at this point in the history
On current unstable, libreswan compiles but then doesn't run because of an ABI
change in NSS.

There is an easy fix which is to land in the next version of libreswan, see
libreswan/libreswan#334; in the meantime, we can copy
this fix so that libreswan works again on unstable.
  • Loading branch information
iblech committed Oct 24, 2020
1 parent 2bb0110 commit 975db4f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkgs/tools/networking/libreswan/default.nix
Expand Up @@ -29,6 +29,10 @@ stdenv.mkDerivation rec {
"-Wno-error=format-truncation"
"-Wno-error=pointer-compare"
"-Wno-error=stringop-truncation"
# The following flag allows libreswan v3.32 to work with NSS 3.22, see
# https://github.com/libreswan/libreswan/issues/334.
# This flag should not be needed for libreswan v3.33 (which is not yet released).
"-DNSS_PKCS11_2_0_COMPAT=1"
];

nativeBuildInputs = [ makeWrapper pkgconfig ];
Expand Down

0 comments on commit 975db4f

Please sign in to comment.