From e9907120fa9797054e94e1b8d26ad7af0a373b0a Mon Sep 17 00:00:00 2001 From: Prasanna Kumar Kalever Date: Sat, 24 Jun 2017 00:29:32 +0530 Subject: dist: do not package the rpcgen generated files This patch fixes rpcgen file stat issue. rpcgen, before generating a file, it first stats the file, in case if file already exists, it do not try to override, instead bails out. [...] Making all in rpcl make[3]: Entering directory `/builddir/build/BUILD/gluster-block-0.2.1/rpc/rpcl' rpcgen -h -o ../../rpc/rpcl/block.h block.x file `../../rpc/rpcl/block.h' already exists and may be overwritten make[3]: Leaving directory `/builddir/build/BUILD/gluster-block-0.2.1/rpc/rpcl' make[3]: *** [block.h] Error 1 [...] So the fix will be not to package the rpcgen generated file in the source tarball. Change-Id: I1d136a25c49aeea2d84e96bf065fe46bf0214a13 Signed-off-by: Prasanna Kumar Kalever --- rpc/rpcl/Makefile.am | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rpc/rpcl/Makefile.am b/rpc/rpcl/Makefile.am index 8a8ada4..38b1dbf 100644 --- a/rpc/rpcl/Makefile.am +++ b/rpc/rpcl/Makefile.am @@ -21,3 +21,8 @@ block_clnt.c: block.x block_svc.c: block.x rpcgen -m -o $(top_builddir)/rpc/rpcl/$@ $^ + +dist-hook: + find $(distdir) -type f \ + -not -name 'block.x' -not -name 'rpc-pragmas.h' \ + -not -name 'block_svc.h' -not -name 'Makefile.*' -delete -- cgit