Unverified Commit e97eb53f authored by John Ericson's avatar John Ericson Committed by GitHub
Browse files

Merge pull request #211406 from alyssais/perl-freebsd

perl: don't use libxcrypt on FreeBSD
parents 7af07ad6 b0997077
Loading
Loading
Loading
Loading
+10 −1
Original line number Diff line number Diff line
@@ -36,7 +36,16 @@ let
      optional crossCompiling "mini";
    setOutputFlags = false;

    propagatedBuildInputs = lib.optional enableCrypt libxcrypt;
    # On FreeBSD, if Perl is built with threads support, having
    # libxcrypt available will result in a build failure, because
    # perl.h will get conflicting definitions of struct crypt_data
    # from libc's unistd.h and libxcrypt's crypt.h.
    #
    # FreeBSD Ports has the same issue building the perl port if
    # the libxcrypt port has been installed.
    #
    # Without libxcrypt, Perl will still find FreeBSD's crypt functions.
    propagatedBuildInputs = lib.optional (enableCrypt && !stdenv.isFreeBSD) libxcrypt;

    disallowedReferences = [ stdenv.cc ];