Skip to contentSkip to conversation

dovecot: add the dependency for a C file

PATCH New [email protected] 1 participant 1 message Jun 17, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dovecot: add the dependency for a C file

From: Roy Li <[email protected]>

building rquota_xdr.c depends on a head file, which is generated when building, so add the dependency to ensure the header file is generated firstly.

---
 .../building-rquota_xdr.c-depend-on-rquota.h.patch |   28 ++++++++++++++++++++
 .../recipes-support/dovecot/dovecot_2.2.10.bb      |    1 +
 2 files changed, 29 insertions(+)
 create mode 100644 meta-networking/recipes-support/dovecot/dovecot/building-rquota_xdr.c-depend-on-rquota.h.patch
meta-networking/recipes-support/dovecot/dovecot/building-rquota_xdr.c-depend-on-rquota.h.patch new file +28 -0
new file mode 100644
index 0000000..11d9d8c
@@ -0,0 +1,28 @@
+[PATCH] building rquota_xdr.c depends on rquota.h
+
+Upstream-status: Pending
+
+rquota.h is generated automatically, and building rquota_xdr.c
+needs rquota.h, so add the dependency on rquota.h for rquota_xdr.c
+
+Signed-off-by: rongqing li <[email protected]>
+---
+ src/plugins/quota/Makefile.am | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/plugins/quota/Makefile.am b/src/plugins/quota/Makefile.am
+index 8a6988d..3626d79 100644
+--- a/src/plugins/quota/Makefile.am
++++ b/src/plugins/quota/Makefile.am
+@@ -70,7 +70,7 @@ RQUOTA_XDR = rquota_xdr.c
+ RQUOTA_XDR_LO = rquota_xdr.lo
+ #RQUOTA_X = /usr/include/rpcsvc/rquota.x
+ RQUOTA_X = $(srcdir)/rquota.x
+-rquota_xdr.c: Makefile $(RQUOTA_X)
++rquota_xdr.c: Makefile $(RQUOTA_X) rquota.h
+ 	if [ "$(top_srcdir)" != "$(top_builddir)" ]; then \
+ 	  cp $(RQUOTA_X) $(top_builddir)/src/plugins/quota/; \
+ 	fi; \
+-- 
+1.8.2.1
+
meta-networking/recipes-support/dovecot/dovecot_2.2.10.bb +1 -0
index 8528536..29e54c4 100644
@@ -6,6 +6,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=a981379bd0f1c362f8d1d21515e5b30b"
 
 SRC_URI = "http://dovecot.org/releases/2.2/dovecot-${PV}.tar.gz \
            file://0001-configure.ac-convert-AC_TRY_RUN-to-AC_TRY_LINK-state.patch \
+           file://building-rquota_xdr.c-depend-on-rquota.h.patch \
           "
 SRC_URI[md5sum] = "037e9c9e07d9dbff54dcff09f280fc8c"
 SRC_URI[sha256sum] = "75592483d40dc4f76cc3b41af40caa4be80478946a699d46846d5d03e4d2e09b"
Signature · 1 line
1.7.10.4