From ce7f9c3a0e689ad4043374773248b2df33a899ac Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sun, 11 Feb 2018 11:34:17 +0000 Subject: [PATCH] libtirpc: Fix build against newer glibcs Signed-off-by: Michael Tremer --- lfs/libtirpc | 7 ++++--- src/patches/libtirpc-1.0.2-glibc-2.26.patch | 12 ++++++++++++ 2 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 src/patches/libtirpc-1.0.2-glibc-2.26.patch diff --git a/lfs/libtirpc b/lfs/libtirpc index 382d7e5652..e7662c67a6 100644 --- a/lfs/libtirpc +++ b/lfs/libtirpc @@ -24,7 +24,7 @@ include Config -VER = 1.0.1 +VER = 1.0.2 THISAPP = libtirpc-$(VER) DL_FILE = $(THISAPP).tar.bz2 @@ -32,7 +32,7 @@ DL_FROM = $(URL_IPFIRE) DIR_APP = $(DIR_SRC)/$(THISAPP) TARGET = $(DIR_INFO)/$(THISAPP) PROG = libtirpc -PAK_VER = 1 +PAK_VER = 2 DEPS = "" @@ -44,7 +44,7 @@ objects = $(DL_FILE) $(DL_FILE) = $(DL_FROM)/$(DL_FILE) -$(DL_FILE)_MD5 = 36ce1c0ff80863bb0839d54aa0b94014 +$(DL_FILE)_MD5 = d5a37f1dccec484f9cabe2b97e54e9a6 install : $(TARGET) @@ -77,6 +77,7 @@ $(subst %,%_MD5,$(objects)) : $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) @$(PREBUILD) @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar jxf $(DIR_DL)/$(DL_FILE) + cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/libtirpc-1.0.2-glibc-2.26.patch cd $(DIR_APP) && ./configure --prefix=/usr --sysconfdir=/etc --disable-gssapi --disable-ipv6 cd $(DIR_APP) && make $(MAKETUNING) $(EXTRA_MAKE) cd $(DIR_APP) && make install diff --git a/src/patches/libtirpc-1.0.2-glibc-2.26.patch b/src/patches/libtirpc-1.0.2-glibc-2.26.patch new file mode 100644 index 0000000000..6d583e6149 --- /dev/null +++ b/src/patches/libtirpc-1.0.2-glibc-2.26.patch @@ -0,0 +1,12 @@ +diff --git a/src/xdr_sizeof.c b/src/xdr_sizeof.c +index d23fbd1..79d6707 100644 +--- a/src/xdr_sizeof.c ++++ b/src/xdr_sizeof.c +@@ -39,6 +39,7 @@ + #include + #include + #include ++#include + #include "un-namespace.h" + + /* ARGSUSED */ -- 2.39.5