Bug 6600 - [Hob] Redundant characters "\1" in SSTATE_MIRRORS setting
Summary: [Hob] Redundant characters "\1" in SSTATE_MIRRORS setting
Status: VERIFIED FIXED
Alias: None
Product: Hob
Classification: Build System, Metadata & Runtime
Component: hob (show other bugs)
Version: 1.7
Hardware: x86 Multiple
: Low normal
Target Milestone: 1.7
Assignee: Richard Purdie
QA Contact: Lucian Musat
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2014-07-31 06:47 UTC by Yi Zhao
Modified: 2014-10-22 02:06 UTC (History)
9 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yi Zhao 2014-07-31 06:47:46 UTC
Git rev: master/8b7116d25ed6255a03895d835e5a0560858ab496

Steps:
1. Start HOB.
2. Click Settings -> Shared state
3. Add a URL in default shared state mirrors. For example: http://128.224.162.103/sstate/PATH;downloadfilename=PATH
4. Click Save button
 
Check the conf/local.conf, the following lines are added:
#added by hob
SSTATE_MIRRORS = "file://(.*) http://128.224.162.103/sstate/PATH;downloadfilename=PATH\1 \n   "

There are extra "\1" characters in the line. It makes the sstate mirror doesn't work. When building the image, I got the following errors:

#################
NOTE: Running setscene task 2 of 721 (/home/builder/poky/meta/recipes-core/busybox/busybox_1.22.1.bb, do_populate_sysroot_setscene)
NOTE: Running setscene task 3 of 721 (/home/builder/poky/meta/recipes-core/busybox/busybox_1.22.1.bb, do_populate_lic_setscene)
WARNING: Failed to fetch URL file://67/sstate:busybox:i586-poky-linux:1.22.1:r32:i586:3:6744276ed9429961db547686916c7eb5_populate_sysroot.tgz, attempting MIRRORS if available
ERROR: Fetcher failure: Unable to find file file://67/sstate:busybox:i586-poky-linux:1.22.1:r32:i586:3:6744276ed9429961db547686916c7eb5_populate_sysroot.tgz anywhere. The paths that were searched were:
    /home/builder/poky/build/sstate-cache
NOTE: recipe busybox-1.22.1-r32: task do_populate_sysroot_setscene: Failed
WARNING: Setscene task 0 (/home/builder/poky/meta/recipes-core/busybox/busybox_1.22.1.bb, do_populate_sysroot_setscene) failed with exit code '1' - real task will be run instead
NOTE: Running setscene task 4 of 721 (/home/builder/poky/meta/recipes-core/busybox/busybox_1.22.1.bb, do_package_qa_setscene)
WARNING: Failed to fetch URL file://38/sstate:busybox::1.22.1:r32::3:389e157cbe015359c5fe1b19836982ba_populate_lic.tgz, attempting MIRRORS if available
ERROR: Fetcher failure: Unable to find file file://38/sstate:busybox::1.22.1:r32::3:389e157cbe015359c5fe1b19836982ba_populate_lic.tgz anywhere. The paths that were searched were:
    /home/builder/poky/build/sstate-cache
NOTE: recipe busybox-1.22.1-r32: task do_populate_lic_setscene: Failed
######################

When I remove the "\1" manually. The sstate mirror works fine:
#####################
NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Running setscene task 2 of 721 (/home/builder/poky/meta/recipes-core/busybox/busybox_1.22.1.bb, do_populate_sysroot_setscene)
NOTE: Running setscene task 3 of 721 (/home/builder/poky/meta/recipes-core/busybox/busybox_1.22.1.bb, do_populate_lic_setscene)
NOTE: recipe busybox-1.22.1-r32: task do_populate_lic_setscene: Succeeded
NOTE: Running setscene task 4 of 721 (/home/builder/poky/meta/recipes-core/busybox/busybox_1.22.1.bb, do_package_qa_setscene)
NOTE: recipe busybox-1.22.1-r32: task do_populate_sysroot_setscene: Succeeded
NOTE: Running setscene task 5 of 721 (/home/builder/poky/meta/recipes-core/busybox/busybox_1.22.1.bb, do_package_write_ipk_setscene)
NOTE: recipe busybox-1.22.1-r32: task do_package_qa_setscene: Succeeded
NOTE: Running setscene task 6 of 721 (/home/builder/poky/meta/recipes-core/sysvinit/sysvinit_2.88dsf.bb, do_populate_sysroot_setscene)
NOTE: recipe sysvinit-2.88dsf-r14: task do_populate_sysroot_setscene: Succeeded
NOTE: Running setscene task 7 of 721 (/home/builder/poky/meta/recipes-core/sysvinit/sysvinit_2.88dsf.bb, do_populate_lic_setscene)
NOTE: recipe busybox-1.22.1-r32: task do_package_write_ipk_setscene: Succeeded
########################
Comment 2 Yi Zhao 2014-10-22 02:06:27 UTC
Verified with 1.7 RC5.
git rev: dizzy/924da20c6f2f183fa7e930e4c3c6b14c090acbe5