]> code.ossystems Code Review - openembedded-core.git/commitdiff
classes: Be consistent about sstate-inputdirs/outputdirs ending with '/'
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 3 Nov 2012 17:01:32 +0000 (17:01 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 14 Nov 2012 14:32:30 +0000 (14:32 +0000)
If sstate-inputdirs and sstate-outputdirs don't match with ending '/'
characters, the manifest file can end up corrupted. This change
ensures the metadata is consistent in ending do_populate_root tasks
with this character to avoid manifest file corruption.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/cross.bbclass
meta/classes/native.bbclass
meta/recipes-core/eglibc/eglibc-initial.inc
meta/recipes-core/uclibc/uclibc-initial_0.9.33.bb
meta/recipes-core/uclibc/uclibc-initial_git.bb
meta/recipes-devtools/gcc/gcc-cross-initial.inc

index 735f6d263fb77881f86f604491dd5fbb9cb4ec66..b57e523465fa0afe1ef7184efa3827337f5521e2 100644 (file)
@@ -54,7 +54,7 @@ base_sbindir = "${bindir}"
 libdir = "${exec_prefix}/lib/${CROSS_TARGET_SYS_DIR}"
 libexecdir = "${exec_prefix}/libexec/${CROSS_TARGET_SYS_DIR}"
 
-do_populate_sysroot[sstate-inputdirs] = "${SYSROOT_DESTDIR}/${STAGING_DIR_NATIVE}"
+do_populate_sysroot[sstate-inputdirs] = "${SYSROOT_DESTDIR}/${STAGING_DIR_NATIVE}/"
 
 python cross_virtclass_handler () {
     if not isinstance(e, bb.event.RecipePreFinalise):
index 6314ba1b1dea3ce91d3ed96d4531c4179973e19d..1462ffb6d40ba3959a612d0667087f09648e9daa 100644 (file)
@@ -82,8 +82,8 @@ bindir .= "${NATIVE_PACKAGE_PATH_SUFFIX}"
 libdir .= "${NATIVE_PACKAGE_PATH_SUFFIX}"
 libexecdir .= "${NATIVE_PACKAGE_PATH_SUFFIX}"
 
-do_populate_sysroot[sstate-inputdirs] = "${SYSROOT_DESTDIR}/${STAGING_DIR_NATIVE}"
-do_populate_sysroot[sstate-outputdirs] = "${STAGING_DIR_NATIVE}"
+do_populate_sysroot[sstate-inputdirs] = "${SYSROOT_DESTDIR}/${STAGING_DIR_NATIVE}/"
+do_populate_sysroot[sstate-outputdirs] = "${STAGING_DIR_NATIVE}/"
 
 # Since we actually install these into situ there is no staging prefix
 STAGING_DIR_HOST = ""
index c1a090e39e2f721d740c822187d8da9c78ef9171..83b1d2cecf7c3d57b1eceee09e0358a0f21ea5cd 100644 (file)
@@ -72,7 +72,7 @@ eglibcinitial_sstate_postinst() {
        fi
 }
 
-do_populate_sysroot[sstate-outputdirs] = "${STAGING_DIR_TCBOOTSTRAP}"
+do_populate_sysroot[sstate-outputdirs] = "${STAGING_DIR_TCBOOTSTRAP}/"
 
 # We don't install any scripts so there is nothing to evacuate
 do_evacuate_scripts () {
index 22f56de1c27daefdf6da5247d8e7a1d66936ae53..4620c96bb07faebf31f1b7d9bf02370b96a7ba83 100644 (file)
@@ -33,4 +33,4 @@ do_siteconfig () {
         :
 }
 
-do_populate_sysroot[sstate-outputdirs] = "${STAGING_DIR_TCBOOTSTRAP}"
+do_populate_sysroot[sstate-outputdirs] = "${STAGING_DIR_TCBOOTSTRAP}/"
index c0b7d52f60653a33f5f4e4dfa453ddfc29b9a669..9e3edbddb3fb8021553f90a71974799d4accdf46 100644 (file)
@@ -33,4 +33,4 @@ do_siteconfig () {
         :
 }
 
-do_populate_sysroot[sstate-outputdirs] = "${STAGING_DIR_TCBOOTSTRAP}"
+do_populate_sysroot[sstate-outputdirs] = "${STAGING_DIR_TCBOOTSTRAP}/"
index ff6556c5ecf37762c54fcc7fedb430575b80068d..1ac1db6eaca1a8d2b6b066b529c05fd9f76df04b 100644 (file)
@@ -74,6 +74,6 @@ sysroot_stage_all() {
        mv ${SYSROOT_DESTDIR}${target_libdir}/* ${SYSROOT_DESTDIR}${STAGING_DIR_TARGET}${target_libdir}/ || true
 }
 
-do_populate_sysroot[sstate-inputdirs] = "${SYSROOT_DESTDIR}/${STAGING_DIR_HOST} ${SYSROOT_DESTDIR}/${STAGING_DIR_TARGET}/${target_base_libdir}"
-do_populate_sysroot[sstate-outputdirs] = "${STAGING_DIR_HOST} ${STAGING_DIR_TCBOOTSTRAP}/${target_base_libdir}"
+do_populate_sysroot[sstate-inputdirs] = "${SYSROOT_DESTDIR}/${STAGING_DIR_HOST}/ ${SYSROOT_DESTDIR}/${STAGING_DIR_TARGET}/${target_base_libdir}/"
+do_populate_sysroot[sstate-outputdirs] = "${STAGING_DIR_HOST}/ ${STAGING_DIR_TCBOOTSTRAP}/${target_base_libdir}/"