netatalk: fix build (broken since closure-size)

Helps with #18209
This commit is contained in:
obadz 2016-09-02 19:38:03 +01:00
parent f40b31ebc6
commit d95a29a01a

View file

@ -1,4 +1,4 @@
{ fetchurl, stdenv, pkgconfig, db, libgcrypt, avahi, libiconv, pam, openssl, acl }:
{ fetchurl, stdenv, pkgconfig, db, libgcrypt, avahi, libiconv, pam, openssl, acl, ed, glibc }:
stdenv.mkDerivation rec{
name = "netatalk-3.1.7";
@ -19,6 +19,22 @@ stdenv.mkDerivation rec{
"--localstatedir=/var/lib"
];
# Expose librpcsvc to the linker for afpd
# Fixes errors that showed up when closure-size was merged:
# afpd-nfsquota.o: In function `callaurpc':
# netatalk-3.1.7/etc/afpd/nfsquota.c:78: undefined reference to `xdr_getquota_args'
# netatalk-3.1.7/etc/afpd/nfsquota.c:78: undefined reference to `xdr_getquota_rslt'
postConfigure = ''
${ed}/bin/ed -v etc/afpd/Makefile << EOF
/^afpd_LDADD
/am__append_2
a
${glibc.static}/lib/librpcsvc.a \\
.
w
EOF
'';
enableParallelBuilding = true;
meta = {