[OE-core] [PATCH 1/1] createrepo: RDEPENDS on libxml2-python

Robert Yang liezhi.yang at windriver.com
Wed Jun 25 09:16:20 UTC 2014


Fixed the error when run createrepo on target:
  Traceback (most recent call last):
    File "/usr/share/createrepo/genpkgmetadata.py", line 27, in <module>
      import libxml2
    File "/usr/lib64/python2.7/site-packages/libxml2.py", line 1, in <module>
  ImportError: No module named libxml2mod

Signed-off-by: Robert Yang <liezhi.yang at windriver.com>
---
 .../createrepo/createrepo_0.4.11.bb                |    1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-support/createrepo/createrepo_0.4.11.bb b/meta/recipes-support/createrepo/createrepo_0.4.11.bb
index 159a6c4..49b45fc 100644
--- a/meta/recipes-support/createrepo/createrepo_0.4.11.bb
+++ b/meta/recipes-support/createrepo/createrepo_0.4.11.bb
@@ -5,6 +5,7 @@ LICENSE = "GPLv2+"
 LIC_FILES_CHKSUM = "file://COPYING;md5=18810669f13b87348459e611d31ab760"
 
 DEPENDS_class-native += "libxml2-native rpm-native"
+RDEPENDS_${PN}_class-target = "libxml2-python"
 
 PR = "r9"
 
-- 
1.7.9.5




More information about the Openembedded-core mailing list