Skip to content

Commit

Permalink
Merge pull request #224929 from amjoseph-nixpkgs/pr/dante/cross
Browse files Browse the repository at this point in the history
dante: disable getaddrinfo() checks if cross
  • Loading branch information
Adam Joseph authored Apr 24, 2023
2 parents 4ace8e6 + 17ceaff commit f8f7bfd
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pkgs/servers/dante/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{ lib, stdenv, fetchurl, fetchpatch, autoreconfHook
, pam, libkrb5, cyrus_sasl, miniupnpc, libxcrypt }:

let
remove_getaddrinfo_checks = stdenv.hostPlatform.isMips64 || !(stdenv.buildPlatform.canExecute stdenv.hostPlatform);
in
stdenv.mkDerivation rec {
pname = "dante";
version = "1.4.3";
Expand All @@ -10,7 +13,7 @@ stdenv.mkDerivation rec {
sha256 = "0pbahkj43rx7rmv2x40mf5p3g3x9d6i2sz7pzglarf54w5ghd2j1";
};

nativeBuildInputs = lib.optional stdenv.hostPlatform.isMips64 autoreconfHook;
nativeBuildInputs = [ autoreconfHook ];
buildInputs = [ pam libkrb5 cyrus_sasl miniupnpc libxcrypt ];

configureFlags = if !stdenv.isDarwin
Expand All @@ -19,7 +22,7 @@ stdenv.mkDerivation rec {

dontAddDisableDepTrack = stdenv.isDarwin;

patches = lib.optionals stdenv.hostPlatform.isMips64 [
patches = lib.optionals remove_getaddrinfo_checks [
(fetchpatch {
name = "0002-osdep-m4-Remove-getaddrinfo-too-low-checks.patch";
url = "https://raw.githubusercontent.com/buildroot/buildroot/master/package/dante/0002-osdep-m4-Remove-getaddrinfo-too-low-checks.patch";
Expand Down

0 comments on commit f8f7bfd

Please sign in to comment.