<?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>6562</bug_id>
          
          <creation_ts>2014-07-21 12:16:42 +0000</creation_ts>
          <short_desc>SRC_URI parameter &quot;subdir&quot; does not work for local files</short_desc>
          <delta_ts>2014-10-27 19:16:54 +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>BitBake</product>
          <component>bitbake</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>Roxanna is no longer at Intel</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.7</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ross Burton">ross.burton</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>tim.jaacks</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>44592</commentid>
    <comment_count>0</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2014-07-21 12:16:42 +0000</bug_when>
    <thetext>With eg SRC_URI=file://foo;subdir=bar, the file gets copied into ${WORKDIR} not ${WORKDIR]/bar.

This is because the destination path is absolute so the chdir to $subdir doesn&apos;t have any effect.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44800</commentid>
    <comment_count>1</comment_count>
    <who name="Tim Jaacks">tim.jaacks</who>
    <bug_when>2014-07-29 09:37:05 +0000</bug_when>
    <thetext>The according code block is here:

https://github.com/openembedded/bitbake/blob/bfd13dfbc4c9f1dd8315002271791b1d9e274989/lib/bb/fetch2/__init__.py#L1243-L1287

In Line 1281, the cwd is changed to the specified subdir. The copy command is executed in line 1287. However, when the command is constructed in line 1270, the absolute path (rootdir) is added to the relative destdir. Thus, changing the cwd has no effect at all.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46603</commentid>
    <comment_count>2</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2014-10-27 19:16:54 +0000</bug_when>
    <thetext>Fixed as of bitbake 46306912a96444790efa9418d934dfdd36773ba1</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>