nfs-kernel-server: fix compile issues with uclibc and the new external librpc
git-svn-id: svn://svn.openwrt.org/openwrt/packages@25499 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
a45dd69435
commit
c9ea47e8f2
@ -64,15 +64,15 @@ define Package/nfs-utils/description
|
|||||||
Updated mount.nfs command - allows mounting nfs4 volumes
|
Updated mount.nfs command - allows mounting nfs4 volumes
|
||||||
endef
|
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 += \
|
CONFIGURE_ARGS += \
|
||||||
--disable-gss \
|
--disable-gss \
|
||||||
--disable-nfsv4 \
|
--disable-nfsv4 \
|
||||||
--enable-static \
|
--enable-static \
|
||||||
--enable-shared
|
--enable-shared
|
||||||
|
|
||||||
TARGET_CFLAGS += -I$(PKG_BUILD_DIR)/lib
|
|
||||||
TARGET_LDFLAGS += -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
|
|
||||||
|
|
||||||
MAKE_FLAGS += \
|
MAKE_FLAGS += \
|
||||||
OPT="$(TARGET_CFLAGS)" \
|
OPT="$(TARGET_CFLAGS)" \
|
||||||
INSTALLSUID="install -m 4755" \
|
INSTALLSUID="install -m 4755" \
|
||||||
|
@ -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
|
--- a/utils/mountd/cache.c
|
||||||
--- nfs-utils-1.1.5/utils/mountd/cache.c 2009-03-05 12:42:56.000000000 +0100
|
+++ b/utils/mountd/cache.c
|
||||||
+++ nfs-utils-1.1.5.new/utils/mountd/cache.c 2009-04-07 16:11:09.000000000 +0200
|
@@ -142,6 +142,7 @@ void auth_unix_gid(FILE *f)
|
||||||
@@ -142,6 +142,7 @@
|
|
||||||
pw = getpwuid(uid);
|
pw = getpwuid(uid);
|
||||||
if (!pw)
|
if (!pw)
|
||||||
rv = -1;
|
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 {
|
else {
|
||||||
rv = getgrouplist(pw->pw_name, pw->pw_gid, groups, &ngroups);
|
rv = getgrouplist(pw->pw_name, pw->pw_gid, groups, &ngroups);
|
||||||
if (rv == -1 && ngroups >= 100) {
|
if (rv == -1 && ngroups >= 100) {
|
||||||
@@ -153,6 +154,7 @@
|
@@ -153,6 +154,7 @@ void auth_unix_gid(FILE *f)
|
||||||
groups, &ngroups);
|
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, uid);
|
||||||
qword_printint(f, time(0)+30*60);
|
qword_printint(f, time(0)+30*60);
|
||||||
if (rv >= 0) {
|
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
|
--- a/support/nfs/svc_socket.c
|
||||||
--- nfs-utils-1.1.5/support/nfs/svc_socket.c 2009-03-05 12:42:56.000000000 +0100
|
+++ b/support/nfs/svc_socket.c
|
||||||
+++ nfs-utils-1.1.5.p/support/nfs/svc_socket.c 2009-04-07 17:33:07.307458029 +0200
|
@@ -66,9 +66,13 @@ svc_socket (u_long number, int type, int
|
||||||
@@ -66,9 +66,13 @@
|
|
||||||
|
|
||||||
memset (&addr, 0, sizeof (addr));
|
memset (&addr, 0, sizeof (addr));
|
||||||
addr.sin_family = AF_INET;
|
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)
|
if (ret == 0 && rpcp != NULL)
|
||||||
{
|
{
|
||||||
/* First try name. */
|
/* First try name. */
|
||||||
|
--- a/utils/statd/sm_inter_svc.c
|
||||||
|
+++ b/utils/statd/sm_inter_svc.c
|
||||||
|
@@ -10,7 +10,9 @@
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <netdb.h>
|
||||||
|
#include <signal.h>
|
||||||
|
+#ifndef __UCLIBC__
|
||||||
|
#include <sys/ttycom.h>
|
||||||
|
+#endif
|
||||||
|
#include <memory.h>
|
||||||
|
#include <sys/socket.h>
|
||||||
|
#include <netinet/in.h>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user