From c19196e1c51d2a5a3a2a762e8d81c253dd5dd79d Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sun, 11 Feb 2018 17:12:23 +0000 Subject: [PATCH] nfs: Fix building with newer glibcs Signed-off-by: Michael Tremer --- lfs/nfs | 4 +++- src/patches/nfs-1.3.3-glibc-stdint.patch | 10 ++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 src/patches/nfs-1.3.3-glibc-stdint.patch diff --git a/lfs/nfs b/lfs/nfs index 2a8e331b53..242b3caafe 100644 --- a/lfs/nfs +++ b/lfs/nfs @@ -88,13 +88,15 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) cd $(DIR_APP)/libnfsidmap* && make $(MAKETUNING) $(EXTRA_MAKE) cd $(DIR_APP)/libnfsidmap* && make install + cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/nfs-1.3.3-glibc-stdint.patch cd $(DIR_APP) && ./configure \ --prefix=/usr \ --sysconfdir=/etc \ --disable-gss \ --disable-tirpc \ --disable-nfsv41 \ - --without-tcp-wrappers --disable-ipv6 + --without-tcp-wrappers \ + --disable-ipv6 cd $(DIR_APP) && make $(MAKETUNING) $(EXTRA_MAKE) cd $(DIR_APP) && make install diff --git a/src/patches/nfs-1.3.3-glibc-stdint.patch b/src/patches/nfs-1.3.3-glibc-stdint.patch new file mode 100644 index 0000000000..9a65cd1f8a --- /dev/null +++ b/src/patches/nfs-1.3.3-glibc-stdint.patch @@ -0,0 +1,10 @@ +--- nfs-utils-1.3.3/support/nsm/rpc.c~ 2018-02-11 17:01:31.137039166 +0000 ++++ nfs-utils-1.3.3/support/nsm/rpc.c 2018-02-11 17:01:45.683511380 +0000 +@@ -40,6 +40,7 @@ + + #include + #include ++#include + #include + #include + #include -- 2.39.5