Merge pull request #224929 from amjoseph-nixpkgs/pr/dante/cross
dante: disable getaddrinfo() checks if cross
This commit is contained in:
@@ -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";
|
||||
@@ -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
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user