<?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>6566</bug_id>
          
          <creation_ts>2014-07-22 15:11:04 +0000</creation_ts>
          <short_desc>bootmisc.sh: syntax error: bad substitution</short_desc>
          <delta_ts>2014-07-31 11:30:00 +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>core</component>
          <version>1.6</version>
          <rep_platform>x86</rep_platform>
          <op_sys>mips</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>normal</bug_severity>
          <target_milestone>1.7 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Maxin B. John (inactive)">maxin.baby.john</reporter>
          <assigned_to name="Ben Shelton">ben.shelton</assigned_to>
          <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>44621</commentid>
    <comment_count>0</comment_count>
    <who name="Maxin B. John (inactive)">maxin.baby.john</who>
    <bug_when>2014-07-22 15:11:04 +0000</bug_when>
    <thetext>Observed this syntax error while booting core-image-minimal on qemumips:  

hwclock: can&apos;t open &apos;/dev/misc/rtc&apos;: No such file or directory
/etc/init.d/rc: /etc/rcS.d/S55bootmisc.sh: line 73: syntax error: bad substitution


Build Configuration:
BB_VERSION        = &quot;1.23.1&quot;
BUILD_SYS         = &quot;x86_64-linux&quot;
NATIVELSBSTRING   = &quot;Ubuntu-14.04&quot;
TARGET_SYS        = &quot;mips-poky-linux&quot;
MACHINE           = &quot;qemumips&quot;
DISTRO            = &quot;poky&quot;
DISTRO_VERSION    = &quot;1.6+snapshot-20140722&quot;
TUNE_FEATURES     = &quot;o32 bigendian fpu-hard mips32&quot;
TARGET_FPU        = &quot;&quot;

Introduced by the commit 00017b4dd895afff9ff613d511cea373f13a96ea

# checkbashisms ../meta/recipes-core/initscripts/initscripts-1.0/bootmisc.sh
possible bashism in ../meta/recipes-core/initscripts/initscripts-1.0/bootmisc.sh line 73 (${foo:3[:1]}):
		date -u ${TIMESTAMP:4:8}${TIMESTAMP:0:4}.${TIMESTAMP:(-2)}</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44630</commentid>
    <comment_count>1</comment_count>
    <who name="Ben Shelton">ben.shelton</who>
    <bug_when>2014-07-22 17:47:07 +0000</bug_when>
    <thetext>This also occurs under x86 QEMU.  The issue is indeed the bashism pointed out by Maxin B. John.

I have a patch and have tested that it fixes the issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44632</commentid>
    <comment_count>2</comment_count>
      <attachid>2051</attachid>
    <who name="Ben Shelton">ben.shelton</who>
    <bug_when>2014-07-22 20:09:24 +0000</bug_when>
    <thetext>Created attachment 2051
Patch for proposed fix.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44641</commentid>
    <comment_count>3</comment_count>
    <who name="Maxin B. John (inactive)">maxin.baby.john</who>
    <bug_when>2014-07-23 10:57:33 +0000</bug_when>
    <thetext>This works fine for me. Thanks for fixing it!

Tested-by: Maxin B. John &lt;maxin.john@enea.com&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44851</commentid>
    <comment_count>4</comment_count>
    <who name="Maxin B. John (inactive)">maxin.baby.john</who>
    <bug_when>2014-07-31 11:30:00 +0000</bug_when>
    <thetext>Fix upstreamed. 

https://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=7c11b327a1cf116ccfd3df05e84845dbcb3d3fd8</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>2051</attachid>
            <date>2014-07-22 20:09:24 +0000</date>
            <delta_ts>2014-07-22 20:09:24 +0000</delta_ts>
            <desc>Patch for proposed fix.</desc>
            <filename>rtc.patch</filename>
            <type>text/plain</type>
            <size>757</size>
            <attacher name="Ben Shelton">ben.shelton</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL21ldGEvcmVjaXBlcy1jb3JlL2luaXRzY3JpcHRzL2luaXRzY3JpcHRzLTEu
MC9ib290bWlzYy5zaCBiL21ldGEvcmVjaXBlcy1jb3JlL2luaXRzY3JpcHRzL2luaXRzY3JpcHRz
LTEuMC9ib290bWlzYy5zaAppbmRleCBjY2M3ZjlmLi45MjNmYTg4IDEwMDc1NQotLS0gYS9tZXRh
L3JlY2lwZXMtY29yZS9pbml0c2NyaXB0cy9pbml0c2NyaXB0cy0xLjAvYm9vdG1pc2Muc2gKKysr
IGIvbWV0YS9yZWNpcGVzLWNvcmUvaW5pdHNjcmlwdHMvaW5pdHNjcmlwdHMtMS4wL2Jvb3RtaXNj
LnNoCkBAIC03MCw3ICs3MCwxMCBAQCB0aGVuCiAJcmVhZCBUSU1FU1RBTVAgPCAvZXRjL3RpbWVz
dGFtcAogCWlmIFsgJHtUSU1FU1RBTVB9IC1ndCAkU1lTVEVNREFURSBdOyB0aGVuCiAJCSMgZm9y
bWF0IHRoZSB0aW1lc3RhbXAgYXMgZGF0ZSBleHBlY3RzIGl0ICgybTJkMkgyTTRZLjJTKQotCQlk
YXRlIC11ICR7VElNRVNUQU1QOjQ6OH0ke1RJTUVTVEFNUDowOjR9LiR7VElNRVNUQU1QOigtMil9
CisJCVRTX1lSPSQoZWNobyAkVElNRVNUQU1QIHwgY3V0IC1jIDEtNCkKKwkJVFNfU0VDPSQoZWNo
byAkVElNRVNUQU1QIHwgY3V0IC1jIDEzLTE0KQorCQlUU19SRVNUPSQoZWNobyAkVElNRVNUQU1Q
IHwgY3V0IC1jIDUtMTIpCisJCWRhdGUgLXUgJHtUU19SRVNUfSR7VFNfWVJ9LiR7VFNfU0VDfQog
CQl0ZXN0IC14IC9ldGMvaW5pdC5kL2h3Y2xvY2suc2ggJiYgL2V0Yy9pbml0LmQvaHdjbG9jay5z
aCBzdG9wCiAJZmkKIGZpCg==
</data>

          </attachment>
      

    </bug>

</bugzilla>