[oe] [PATCH 2/2] libsensors: Remove clashing header definition from package

kernel-hacker at bennee.com kernel-hacker at bennee.com
Tue Feb 22 10:21:32 UTC 2011


From: Alex Bennee <ajb at cbnl.com>

libsensors attempts to install:

    /usr/include/linux/i2c-dev.h

Which clashes with the libc definition. This patch removes it
from the build (as suggested by _pb on #oe).

Signed-off-by: Alex Bennee <ajb at cbnl.com>
---
 recipes/lm_sensors/lmsensors-apps_2.10.8.bb |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/recipes/lm_sensors/lmsensors-apps_2.10.8.bb b/recipes/lm_sensors/lmsensors-apps_2.10.8.bb
index dcc33ac..266f1b8 100644
--- a/recipes/lm_sensors/lmsensors-apps_2.10.8.bb
+++ b/recipes/lm_sensors/lmsensors-apps_2.10.8.bb
@@ -29,6 +29,9 @@ do_install() {
 	install -d ${D}${mandir}
 	rm -rf ${D}${mandir}/*
 	mv ${D}/usr/man/* ${D}${mandir}
+
+	# Remove clashing headers, libc packages i2c-dev.h
+	rm ${D}/usr/include/linux/i2c-dev.h
 }
 
 do_stage() {
-- 
1.7.4.1





More information about the Openembedded-devel mailing list