[oe-commits] Roy Li : dovecot: add the dependency for a C file

git at git.openembedded.org git at git.openembedded.org
Thu Jun 19 10:05:41 UTC 2014


Module: meta-openembedded.git
Branch: master-next
Commit: 15b13cdc002f4159deb84d5dfa6c066c33107550
URL:    http://git.openembedded.org/?p=meta-openembedded.git&a=commit;h=15b13cdc002f4159deb84d5dfa6c066c33107550

Author: Roy Li <rongqing.li at windriver.com>
Date:   Tue Jun 17 16:26:55 2014 +0800

dovecot: add the dependency for a C file

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.

Signed-off-by: Roy Li <rongqing.li at windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>

---

 .../building-rquota_xdr.c-depend-on-rquota.h.patch | 28 ++++++++++++++++++++++
 .../recipes-support/dovecot/dovecot_2.2.10.bb      |  1 +
 2 files changed, 29 insertions(+)

diff --git a/meta-networking/recipes-support/dovecot/dovecot/building-rquota_xdr.c-depend-on-rquota.h.patch b/meta-networking/recipes-support/dovecot/dovecot/building-rquota_xdr.c-depend-on-rquota.h.patch
new file mode 100644
index 0000000..11d9d8c
--- /dev/null
+++ b/meta-networking/recipes-support/dovecot/dovecot/building-rquota_xdr.c-depend-on-rquota.h.patch
@@ -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 <rli2 at yow-blade4.wrs.com>
+---
+ 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
+
diff --git a/meta-networking/recipes-support/dovecot/dovecot_2.2.10.bb b/meta-networking/recipes-support/dovecot/dovecot_2.2.10.bb
index 8528536..29e54c4 100644
--- a/meta-networking/recipes-support/dovecot/dovecot_2.2.10.bb
+++ b/meta-networking/recipes-support/dovecot/dovecot_2.2.10.bb
@@ -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"



More information about the Openembedded-commits mailing list