dovecot-2.0: Fix VPATH build of RQUOTA support.

dovecot at dovecot.org dovecot at dovecot.org
Tue Jul 7 22:05:59 EEST 2009


details:   http://hg.dovecot.org/dovecot-2.0/rev/4aa97c04682d
changeset: 9568:4aa97c04682d
user:      Matthias Andree <matthias.andree at gmx.de>
date:      Tue Jul 07 21:01:36 2009 +0200
description:
Fix VPATH build of RQUOTA support.

Some rpcgen derive #include "..." paths from the infile argument.
This will be off for VPATH builds, as the generated rquota_xdr.c
code will look in $(srcdir), but we'll generate the rquota.h file in
$(builddir). Play safe and copy rquota.x to $(builddir) first.

This fixes the build on openSUSE 11.1.

diffstat:

1 file changed, 2 insertions(+), 1 deletion(-)
src/plugins/quota/Makefile.am |    3 ++-

diffs (15 lines):

diff -r d4bce0753105 -r 4aa97c04682d src/plugins/quota/Makefile.am
--- a/src/plugins/quota/Makefile.am	Tue Jul 07 14:46:50 2009 -0400
+++ b/src/plugins/quota/Makefile.am	Tue Jul 07 21:01:36 2009 +0200
@@ -36,9 +36,10 @@ RQUOTA_XDR = rquota_xdr.c
 #RQUOTA_X = /usr/include/rpcsvc/rquota.x
 RQUOTA_X = $(srcdir)/rquota.x
 rquota_xdr.c: Makefile $(RQUOTA_X)
+	if "$(srcdir)" != "$(builddir)" ; then cp $(RQUOTA_X) $(builddir) ; fi
 	(echo '#include "lib.h"'; \
 	 echo '#include <rpc/rpc.h>'; \
-	 $(RPCGEN) -c $(RQUOTA_X) | \
+	 $(RPCGEN) -c $(builddir)/rquota.x | \
 	  sed -e 's/IXDR_PUT/(void)IXDR_PUT/g' \
 	    -e 's,/usr/include/rpcsvc/rquota.h,rquota.h,' \
 	    -e 's/int32_t \*buf/int32_t *buf ATTR_UNUSED/' \


More information about the dovecot-cvs mailing list