aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMemphiz <memphis@machzwo.de>2011-06-11 01:33:37 +0200
committerMemphiz <memphis@machzwo.de>2011-06-11 01:33:37 +0200
commit7f7c9b76eecb618010fd50498b321e210fc70585 (patch)
treefe217079f483c403ceb7cd469625fcafcec6dccf /tools
parent951bb7ab419442419e60a273a0837faf4087ffa8 (diff)
[ios/osx] - remove patches for darwin-depends ... these where merged in upstream of libnfs
Diffstat (limited to 'tools')
-rw-r--r--tools/darwin/depends/libnfs/Makefile7
-rw-r--r--tools/darwin/depends/libnfs/Makefile.in.patch102
-rw-r--r--tools/darwin/depends/libnfs/nfs.x.patch11
3 files changed, 2 insertions, 118 deletions
diff --git a/tools/darwin/depends/libnfs/Makefile b/tools/darwin/depends/libnfs/Makefile
index b5e8245e50..c9a2bab13c 100644
--- a/tools/darwin/depends/libnfs/Makefile
+++ b/tools/darwin/depends/libnfs/Makefile
@@ -3,14 +3,14 @@ include ../config.site.mk
# lib name, version
LIBNAME=libnfs
-VERSION=a05b17e
+VERSION=0977fbb
SOURCE=Memphiz-$(LIBNAME)-$(VERSION)
ARCHIVE=$(SOURCE).tar.gz
BASE_URL=http://githubredir.debian.net/github/memphiz/libnfs
# configuration settings
-CONFIGURE=./configure --prefix=$(PREFIX)
+CONFIGURE=./configure --prefix=$(PREFIX) --without-examples
RPC_HEADERS=rpcinc/auth.h rpcinc/auth_unix.h rpcinc/clnt.h rpcinc/pmap_clnt.h rpcinc/pmap_prot.h rpcinc/pmap_rmt.h rpcinc/rpc.h rpcinc/rpc_msg.h rpcinc/svc.h rpcinc/svc_auth.h rpcinc/types.h rpcinc/xdr.h
@@ -29,9 +29,6 @@ $(SOURCE): $(TARBALLS_LOCATION)/$(ARCHIVE)
echo $(SOURCE) > .gitignore
mkdir -p $(PREFIX)/include/rpc
install -c -m 644 $(RPC_HEADERS) $(PREFIX)/include/rpc/
- patch -d $(SOURCE) -p0 < Makefile.in.patch
- patch -d $(SOURCE) -p0 < nfs.x.patch
- sed -i bak -e "s|EXAMPLES=|#EXAMPLES=|" $(SOURCE)/Makefile.in
cd $(SOURCE); ./autogen.sh
cd $(SOURCE); $(CONFIGURE)
diff --git a/tools/darwin/depends/libnfs/Makefile.in.patch b/tools/darwin/depends/libnfs/Makefile.in.patch
deleted file mode 100644
index fa23a50793..0000000000
--- a/tools/darwin/depends/libnfs/Makefile.in.patch
+++ /dev/null
@@ -1,102 +0,0 @@
---- Makefile.in 2011-06-01 13:31:40.000000000 +0200
-+++ Makefile.in 2011-06-01 18:39:44.000000000 +0200
-@@ -6,13 +6,14 @@
-
- INSTALLCMD = @install@ -c
-
--CC=gcc
--CFLAGS=-g -O0 -fPIC -Wall -W -I. -Iinclude -Imount -Infs -Iportmap -Irquota "-D_U_=__attribute__((unused))" -D_FILE_OFFSET_BITS=64
-+CC=@CC@
-+CFLAGS=@CFLAGS@ -g -O0 -fPIC -Wall -W -I. -Iinclude -Imount -Infs -Iportmap -Irquota "-D_U_=__attribute__((unused))"
-+LDFLAGS+=@CFLAGS@
-
- LIBNFS_A=lib/libnfs.a
--LIBNFS_SO_NAME=libnfs.so.1
-+LIBNFS_SO_NAME=libnfs.1.dylib
- VERSION=1.0.0
--LIBNFS_SO=lib/libnfs.so.$(VERSION)
-+LIBNFS_SO=lib/libnfs.$(VERSION).dylib
-
- LIB_OBJS = lib/pdu.o lib/init.o lib/socket.o \
- lib/libnfs.o lib/libnfs-sync.o
-@@ -46,7 +47,7 @@
-
- $(LIBNFS_SO): $(LIBNFS_OBJS) $(LIB_OBJS)
- @echo Creating shared library $@
-- $(CC) -shared -Wl,-soname=$(LIBNFS_SO_NAME) -o $@ $(LIBNFS_OBJS) $(LIB_OBJS)
-+ $(CC) $(LDFLAGS) -dynamiclib -o $@ $(LIBNFS_OBJS) $(LIB_OBJS)
-
- portmap/libnfs-raw-portmap.h: portmap/portmap.x
- @echo Generating $@
-@@ -54,7 +54,7 @@
-
- portmap/libnfs-raw-portmap.c: portmap/portmap.x
- @echo Generating $@
-- rpcgen -c portmap/portmap.x | sed -e "s/#include \"portmap\/portmap.h\"/#include \"libnfs-raw-portmap.h\"/" > portmap/libnfs-raw-portmap.c
-+ rpcgen -c portmap/portmap.x | sed -e "s/#include \"portmap.h\"/#include \"libnfs-raw-portmap.h\"/" > portmap/libnfs-raw-portmap.c
-
- portmap/libnfs-raw-portmap.o: portmap/libnfs-raw-portmap.c portmap/libnfs-raw-portmap.h
- @echo Compiling $@
-@@ -66,7 +66,7 @@
-
- mount/libnfs-raw-mount.c: mount/mount.x
- @echo Generating $@
-- rpcgen -c mount/mount.x | sed -e "s/#include \"mount\/mount.h\"/#include \"libnfs-raw-mount.h\"/" > mount/libnfs-raw-mount.c
-+ rpcgen -c mount/mount.x | sed -e "s/#include \"mount.h\"/#include \"libnfs-raw-mount.h\"/" > mount/libnfs-raw-mount.c
-
- mount/libnfs-raw-mount.o: mount/libnfs-raw-mount.c mount/libnfs-raw-mount.h
- @echo Compiling $@
-@@ -78,7 +78,7 @@
-
- nfs/libnfs-raw-nfs.c: nfs/nfs.x
- @echo Generating $@
-- rpcgen -c nfs/nfs.x | sed -e "s/#include \"nfs\/nfs.h\"/#include \"libnfs-raw-nfs.h\"/" > nfs/libnfs-raw-nfs.c
-+ rpcgen -c nfs/nfs.x | sed -e "s/#include \"nfs.h\"/#include \"libnfs-raw-nfs.h\"/" > nfs/libnfs-raw-nfs.c
-
- nfs/libnfs-raw-nfs.o: nfs/libnfs-raw-nfs.c nfs/libnfs-raw-nfs.h
- @echo Compiling $@
-@@ -90,7 +90,7 @@
-
- rquota/libnfs-raw-rquota.c: rquota/rquota.x
- @echo Generating $@
-- rpcgen -c rquota/rquota.x | sed -e "s/#include \"rquota\/rquota.h\"/#include \"libnfs-raw-rquota.h\"/" > rquota/libnfs-raw-rquota.c
-+ rpcgen -c rquota/rquota.x | sed -e "s/#include \"rquota.h\"/#include \"libnfs-raw-rquota.h\"/" > rquota/libnfs-raw-rquota.c
-
- rquota/libnfs-raw-rquota.o: rquota/libnfs-raw-rquota.c rquota/libnfs-raw-rquota.h
- @echo Compiling $@
-@@ -98,25 +99,27 @@
-
- install: $(LIBNFS_A) $(LIBNFS_SO)
- ifeq ("$(LIBDIR)x","x")
-+ mkdir -p $(libdir)
- $(INSTALLCMD) -m 755 $(LIBNFS_SO) $(libdir)
- $(INSTALLCMD) -m 755 $(LIBNFS_A) $(libdir)
-- @ldconfig@
- else
-+ mkdir -p $(LIBDIR)
- $(INSTALLCMD) -m 755 $(LIBISCSI_SO) $(LIBDIR)
- $(INSTALLCMD) -m 755 $(LIBNFS_A) $(LIBDIR)
- endif
-- mkdir -p $(DESTDIR)/usr/include/nfsc
-- $(INSTALLCMD) -m 644 include/libnfs.h $(DESTDIR)/usr/include/nfsc
-- $(INSTALLCMD) -m 644 include/libnfs-private.h $(DESTDIR)/usr/include/nfsc
-- $(INSTALLCMD) -m 644 mount/libnfs-raw-mount.h $(DESTDIR)/usr/include/nfsc
-- $(INSTALLCMD) -m 644 nfs/libnfs-raw-nfs.h $(DESTDIR)/usr/include/nfsc
-- $(INSTALLCMD) -m 644 portmap/libnfs-raw-portmap.h $(DESTDIR)/usr/include/nfsc
-+ mkdir -p $(prefix)/include/nfsc
-+ $(INSTALLCMD) -m 644 include/libnfs.h $(prefix)/include/nfsc
-+ $(INSTALLCMD) -m 644 include/libnfs-private.h $(prefix)/include/nfsc
-+ $(INSTALLCMD) -m 644 mount/libnfs-raw-mount.h $(prefix)/include/nfsc
-+ $(INSTALLCMD) -m 644 nfs/libnfs-raw-nfs.h $(prefix)/include/nfsc
-+ $(INSTALLCMD) -m 644 portmap/libnfs-raw-portmap.h $(prefix)/include/nfsc
-
- distclean: clean
- rm -f config.h config.log config.status configure Makefile
-
- clean:
-- rm -f bin/* lib/*.o lib/*.a $(LIBNFS_SO)
-+ rm -r -f bin/*
-+ rm -f lib/*.o lib/*.a $(LIBNFS_SO)
- rm -f mount/*.o mount/libnfs-raw-mount.h mount/libnfs-raw-mount.c
- rm -f nfs/*.o nfs/libnfs-raw-nfs.h nfs/libnfs-raw-nfs.c
- rm -f portmap/*.o portmap/libnfs-raw-portmap.h portmap/libnfs-raw-portmap.c
diff --git a/tools/darwin/depends/libnfs/nfs.x.patch b/tools/darwin/depends/libnfs/nfs.x.patch
deleted file mode 100644
index dcf283d945..0000000000
--- a/tools/darwin/depends/libnfs/nfs.x.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- nfs/nfs.x 2011-06-01 13:31:40.000000000 +0200
-+++ nfs/nfs.x 2011-06-01 18:45:45.000000000 +0200
-@@ -7,7 +7,7 @@
-
- typedef opaque cookieverf3[NFS3_COOKIEVERFSIZE];
-
--typedef unsigned hyper uint64;
-+typedef u_int64_t uint64;
- typedef uint64 cookie3;
-
- struct nfs_fh3 {