Unverified Commit b1518517 authored by Alyssa Ross's avatar Alyssa Ross
Browse files

net-snmp: fix building for musl

Since autoreconfHook was added, fix-fd_mask.patch doesn't do anything,
because it patches the configure script, which is now overwritten.

Replace the Alpine patch with the upstream equivalent, which patches
the m4 source of configure as well.

Fixes: 5e6e3520 ("net-snmp: darwin support")
parent b4eba969
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
{ lib, stdenv, fetchurl
{ lib, stdenv, fetchurl, fetchpatch
, file, openssl, perl, nettools
, autoreconfHook
, withPerlTools ? false
@@ -27,7 +27,11 @@ in stdenv.mkDerivation rec {
  in [
    (fetchAlpinePatch "fix-includes.patch" "0zpkbb6k366qpq4dax5wknwprhwnhighcp402mlm7950d39zfa3m")
    (fetchAlpinePatch "netsnmp-swinst-crash.patch" "0gh164wy6zfiwiszh58fsvr25k0ns14r3099664qykgpmickkqid")
    (fetchAlpinePatch "fix-fd_mask.patch" "/i9ve61HjDzqZt+u1wajNtSQoizl+KePvhcAt24HKd0=")
    (fetchpatch {
      name = "configure-musl.patch";
      url = "https://github.com/net-snmp/net-snmp/commit/a62169f1fa358be8f330ea8519ade0610fac525b.patch";
      hash = "sha256-+vWH095fFL3wE6XLsTaPXgMDya0LRWdlL6urD5AIBUs=";
    })
  ];

  outputs = [ "bin" "out" "dev" "lib" ];