Skip to content

Commit

Permalink
netatalk: fix build (broken since closure-size)
Browse files Browse the repository at this point in the history
Helps with #18209
  • Loading branch information
obadz committed Sep 2, 2016
1 parent f40b31e commit d95a29a
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion pkgs/tools/filesystems/netatalk/default.nix
Original file line number Diff line number Diff line change
@@ -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";
Expand All @@ -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 = {
Expand Down

0 comments on commit d95a29a

Please sign in to comment.