tcp-wrappers: patch up crufty code, fix w/musl
This commit is contained in:
@@ -25,6 +25,14 @@ in stdenv.mkDerivation rec {
|
||||
substituteInPlace debian/patches/13_shlib_weaksym --replace STRINGS STRINGDEFS
|
||||
'';
|
||||
|
||||
# Fix __BEGIN_DECLS usage (even if it wasn't non-standard, this doesn't include sys/cdefs.h)
|
||||
patches = [ ./cdecls.patch ];
|
||||
|
||||
postPatch = stdenv.lib.optionalString stdenv.hostPlatform.isMusl ''
|
||||
substituteInPlace Makefile \
|
||||
--replace '-DNETGROUP' '-DUSE_GETDOMAIN'
|
||||
'';
|
||||
|
||||
buildInputs = [ libnsl ];
|
||||
|
||||
makeFlags = [ "REAL_DAEMON_DIR=$(out)/bin" "linux" ];
|
||||
|
||||
Reference in New Issue
Block a user