* Remove hardcoded system path for path-magic file in order
  to avoid potential mistmatch between host and yocto native
  tools as reported in yocto mailing list:
  ----
  error: magic_load(ms, /usr/share/misc/magic) failed: File 5.4
  supports only version 7 magic files. `/usr/share/misc/magic.mgc' is version 8
  ----
* Another solution is to update meta/recipes-devtools/file/file_5.04.bb to a
  newer version ie. file_5.07.bb

Signed-off-by: Adrian Alonso <aalons...@gmail.com>
---
 meta/recipes-devtools/rpm/rpm_5.4.0.bb |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-devtools/rpm/rpm_5.4.0.bb 
b/meta/recipes-devtools/rpm/rpm_5.4.0.bb
index c0e3208..948ed84 100644
--- a/meta/recipes-devtools/rpm/rpm_5.4.0.bb
+++ b/meta/recipes-devtools/rpm/rpm_5.4.0.bb
@@ -45,7 +45,7 @@ LIC_FILES_CHKSUM = 
"file://COPYING.LIB;md5=2d5025d4aa3495befef8f17206a5b0a1"
 DEPENDS = "bzip2 zlib db openssl elfutils expat libpcre attr acl popt 
${extrarpmdeps}"
 extrarpmdeps = "python perl"
 extrarpmdeps_virtclass-native = ""
-PR = "r19"
+PR = "r20"
 
 # rpm2cpio is a shell script, which is part of the rpm src.rpm.  It is needed
 # in order to extract the distribution SRPM into a format we can extract...
@@ -120,7 +120,7 @@ EXTRA_OECONF = "--verbose \
                ${WITH_DB} \
                ${WITH_Z} \
                --with-file \
-               --with-path-magic=/usr/share/misc/magic \
+               
--with-path-magic=${STAGING_DIR_NATIVE}/usr/share/misc/magic.mgc \
                --without-lua \
                --without-tcl \
                --with-syck=internal \
-- 
1.7.6


_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

Reply via email to