<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>6503</bug_id>
          
          <creation_ts>2014-07-03 14:26:31 +0000</creation_ts>
          <short_desc>1.5.3 populate-extfs quoting issues</short_desc>
          <delta_ts>2014-07-09 02:40:37 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>devtools / tool chain</component>
          <version>1.7</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>1.5.3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Richard Purdie">richard.purdie</reporter>
          <assigned_to name="Chen Qi">Qi.Chen</assigned_to>
          <cc>liezhi.yang</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>44311</commentid>
    <comment_count>0</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2014-07-03 14:26:31 +0000</bug_when>
    <thetext>https://autobuilder.yoctoproject.org/main/builders/build-appliance/builds/157/steps/BuildImages_1/logs/stdio

Build Appliance image fails to build for 1.5.3 with:

 mke2fs 1.42.8 (20-Jun-2013)
| Discarding device blocks:     4096/11798464                 done
| Filesystem label=
| OS type: Linux
| Block size=4096 (log=2)
| Fragment size=4096 (log=2)
| Stride=0 blocks, Stripe width=0 blocks
| 11800368 inodes, 11798464 blocks
| 589823 blocks (5.00%) reserved for the super user
| First data block=0
| Maximum filesystem blocks=4298112000
| 361 block groups
| 32760 blocks per group, 32760 fragments per group
| 32688 inodes per group
| Superblock backups stored on blocks:
| 	32760, 98280, 163800, 229320, 294840, 819000, 884520, 1605240, 2653560,
| 	4095000, 7960680, 11236680
| 
| Allocating group tables:   0/361       done
| Writing inode tables:   0/361 92/361288/361       done
| Creating journal (32768 blocks): done
| Writing superblocks and filesystem accounting information:   0/361       done
| 
| /home/pokybuild/yocto-autobuilder/yocto-worker/build-appliance/build/build/tmp/work/qemux86_64-poky-linux/build-appliance-image/8.0-r0/rootfs/home/builder/poky/scripts/lib/bsp/substrate/target/arch/qemu/recipes-kernel/linux/{{ if kernel_choice == linux-yocto_3.10: }} linux-yocto_3.10.bbappend: No such file or directory
| {{ if kernel_choice == linux-yocto_3.10: }} linux-yocto_3.10.bbappend: File not found by ext2_lookup
| {{ if kernel_choice == linux-yocto_3.10: }} linux-yocto_3.10.bbappend: File not found by ext2_lookup
| {{ if kernel_choice == linux-yocto_3.10: }} linux-yocto_3.10.bbappend: File not found by ext2_lookup
| {{ if kernel_choice == linux-yocto_3.10: }} linux-yocto_3.10.bbappend: File not found by ext2_lookup
| {{ if kernel_choice == linux-yocto_3.10: }} linux-yocto_3.10.bbappend: File not found by ext2_lookup
| {{ if kernel_choice == linux-yocto_3.10: }} linux-yocto_3.10.bbappend: File not found by ext2_lookup
| mkdir: Usage: mkdir &lt;filename&gt;

and following issues. This appears to be a problem with the populate-extfs.sh script and quoting of the strange filenames in the yocto-bsp scripts files.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44312</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2014-07-03 14:29:55 +0000</bug_when>
    <thetext>Its possible http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?h=dora&amp;id=4a18e162d841a6b52a022d4c76b0d60bbd77d5f8 may have fixed this</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44330</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2014-07-03 23:06:13 +0000</bug_when>
    <thetext>Further tests show the same issue is present after that patch so we have a release blocker for 1.5.3 with this bug</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44339</commentid>
    <comment_count>3</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2014-07-04 13:03:02 +0000</bug_when>
    <thetext>There are actually two problems.
1. The quotation mark is special for debugfs. If the file name contains &quot; in it, then we have to replace &quot; with &quot;&quot; so that debugfs could correctly recognize it.

2. We should quote the filenames in the debugfs commands.
e.g.
Instead of writing:
echo &quot;mkdir $TGT&quot;
We should write:
echo &quot;mkdir \&quot;$TGT\&quot;&quot;

//Chen Qi</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44387</commentid>
    <comment_count>4</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2014-07-09 02:40:37 +0000</bug_when>
    <thetext>Module: openembedded-core.git
Branch: dora
Commit: 24f17607e996c499c8f86eda0588d02af1e960b9
URL:    http://git.openembedded.org/?p=openembedded-core.git&amp;a=commit;h=24f17607e996c499c8f86eda0588d02af1e960b9

Author: Chen Qi &lt;Qi.Chen@windriver.com&gt;
Date:   Tue Jul  8 18:38:15 2014 +0800

populate-extfs.sh: fix to handle special file names correctly

`debugfs&apos; treats spaces and &quot;&quot; specially. So when we are dealing with
file names, great care should be taken to make sure that `debugfs&apos;
recognizes file names correctly.

The basic solution here is:
1. Use quotation marks to handle spaces correctly.
2. Replace &quot;xxx&quot; with &quot;&quot;xxx&quot;&quot; so that debugfs knows that the quotation
   marks are parts of the file name.

[YOCTO #6503]

Signed-off-by: Chen Qi &lt;Qi.Chen@windriver.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>