diff --git a/net/nfs-kernel-server/Makefile b/net/nfs-kernel-server/Makefile index 61324f1bc..d2420fd24 100644 --- a/net/nfs-kernel-server/Makefile +++ b/net/nfs-kernel-server/Makefile @@ -64,15 +64,15 @@ define Package/nfs-utils/description Updated mount.nfs command - allows mounting nfs4 volumes endef +TARGET_CFLAGS += -I$(PKG_BUILD_DIR)/lib -I$(STAGING_DIR)/usr/include -Drpc_uint=uint +TARGET_LDFLAGS += -Wl,-rpath-link=$(STAGING_DIR)/usr/lib $(LIBRPC) + CONFIGURE_ARGS += \ --disable-gss \ --disable-nfsv4 \ --enable-static \ --enable-shared -TARGET_CFLAGS += -I$(PKG_BUILD_DIR)/lib -TARGET_LDFLAGS += -Wl,-rpath-link=$(STAGING_DIR)/usr/lib - MAKE_FLAGS += \ OPT="$(TARGET_CFLAGS)" \ INSTALLSUID="install -m 4755" \ diff --git a/net/nfs-kernel-server/patches/001-nfs_utils_uclibc.patch b/net/nfs-kernel-server/patches/001-nfs_utils_uclibc.patch index f6dbf7040..8ee831cef 100644 --- a/net/nfs-kernel-server/patches/001-nfs_utils_uclibc.patch +++ b/net/nfs-kernel-server/patches/001-nfs_utils_uclibc.patch @@ -1,7 +1,6 @@ -diff -urN nfs-utils-1.1.5/utils/mountd/cache.c nfs-utils-1.1.5.new/utils/mountd/cache.c ---- nfs-utils-1.1.5/utils/mountd/cache.c 2009-03-05 12:42:56.000000000 +0100 -+++ nfs-utils-1.1.5.new/utils/mountd/cache.c 2009-04-07 16:11:09.000000000 +0200 -@@ -142,6 +142,7 @@ +--- a/utils/mountd/cache.c ++++ b/utils/mountd/cache.c +@@ -142,6 +142,7 @@ void auth_unix_gid(FILE *f) pw = getpwuid(uid); if (!pw) rv = -1; @@ -9,7 +8,7 @@ diff -urN nfs-utils-1.1.5/utils/mountd/cache.c nfs-utils-1.1.5.new/utils/mountd/ else { rv = getgrouplist(pw->pw_name, pw->pw_gid, groups, &ngroups); if (rv == -1 && ngroups >= 100) { -@@ -153,6 +154,7 @@ +@@ -153,6 +154,7 @@ void auth_unix_gid(FILE *f) groups, &ngroups); } } @@ -17,10 +16,9 @@ diff -urN nfs-utils-1.1.5/utils/mountd/cache.c nfs-utils-1.1.5.new/utils/mountd/ qword_printint(f, uid); qword_printint(f, time(0)+30*60); if (rv >= 0) { -diff -burN nfs-utils-1.1.5/support/nfs/svc_socket.c nfs-utils-1.1.5.p/support/nfs/svc_socket.c ---- nfs-utils-1.1.5/support/nfs/svc_socket.c 2009-03-05 12:42:56.000000000 +0100 -+++ nfs-utils-1.1.5.p/support/nfs/svc_socket.c 2009-04-07 17:33:07.307458029 +0200 -@@ -66,9 +66,13 @@ +--- a/support/nfs/svc_socket.c ++++ b/support/nfs/svc_socket.c +@@ -66,9 +66,13 @@ svc_socket (u_long number, int type, int memset (&addr, 0, sizeof (addr)); addr.sin_family = AF_INET; @@ -35,3 +33,15 @@ diff -burN nfs-utils-1.1.5/support/nfs/svc_socket.c nfs-utils-1.1.5.p/support/nf if (ret == 0 && rpcp != NULL) { /* First try name. */ +--- a/utils/statd/sm_inter_svc.c ++++ b/utils/statd/sm_inter_svc.c +@@ -10,7 +10,9 @@ + #include + #include + #include ++#ifndef __UCLIBC__ + #include ++#endif + #include + #include + #include