[oe-commits] Saul Wold : mdadm: Don't depend on ansidecl.h header

git at git.openembedded.org git at git.openembedded.org
Mon Jun 18 12:18:14 UTC 2012


Module: openembedded-core.git
Branch: master-next
Commit: 5b51872ec4c2400ae60f434478f04e9aca3ccb7d
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=5b51872ec4c2400ae60f434478f04e9aca3ccb7d

Author: Saul Wold <sgw at linux.intel.com>
Date:   Sun Jun 17 17:13:07 2012 -0700

mdadm: Don't depend on ansidecl.h header

We don't DEPEND on binutils for ansidecl.h so ensure we should never use the header.
This makes builds determinstic and means something like:

bitbake binutils
bitbake mdadm -c compile
bitbake binutils -c clean
bitbake libxml2

doen't fail to build.

Signed-off-by: Saul Wold <sgw at linux.intel.com>

---

 meta/recipes-extended/mdadm/mdadm_3.2.5.bb |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/meta/recipes-extended/mdadm/mdadm_3.2.5.bb b/meta/recipes-extended/mdadm/mdadm_3.2.5.bb
index 2d7e1d0..61846f4 100644
--- a/meta/recipes-extended/mdadm/mdadm_3.2.5.bb
+++ b/meta/recipes-extended/mdadm/mdadm_3.2.5.bb
@@ -8,7 +8,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
                     file://mdmon.c;beginline=4;endline=18;md5=af7d8444d9c4d3e5c7caac0d9d34039d \
                     file://mdadm.h;beglinlne=4;endline=22;md5=462bc9936ac0d3da110191a3f9994161"
 
-PR = "r0"
+PR = "r1"
 
 SRC_URI = "${KERNELORG_MIRROR}/linux/utils/raid/mdadm/${BPN}-${PV}.tar.bz2 \
 	    file://mdadm-3.2.2_fix_for_x32.patch \
@@ -21,6 +21,11 @@ CFLAGS += "-fno-strict-aliasing"
 
 inherit autotools
 
+# We don't DEPEND on binutils for ansidecl.h so ensure we don't use the header
+do_configure_prepend () {
+	sed -i -e '/.*ansidecl.h.*/d' ${S}/sha1.h
+}
+
 do_compile() {
 	oe_runmake
 }





More information about the Openembedded-commits mailing list