Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dante: disable getaddrinfo() checks if cross #224929

Merged
2 commits merged into from Apr 24, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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