libsensors: Remove clashing header definition from package
authorAlex Bennee <ajb@cbnl.com>
Tue, 22 Feb 2011 18:21:32 +0000 (18:21 +0000)
committerTom Rini <tom_rini@mentor.com>
Wed, 23 Feb 2011 21:21:16 +0000 (14:21 -0700)
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@cbnl.com>
Signed-off-by: Tom Rini <tom_rini@mentor.com>
recipes/lm_sensors/lmsensors-apps_2.10.8.bb

index dcc33ac..266f1b8 100644 (file)
@@ -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() {