<?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>13449</bug_id>
          
          <creation_ts>2019-07-23 08:29:22 +0000</creation_ts>
          <short_desc>Functionality of Unpack parameter &apos;basepath&apos; broken</short_desc>
          <delta_ts>2021-04-20 13:10:05 +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>2.7.1</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>normal</bug_severity>
          <target_milestone>3.4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Volker">vposs</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>randy.macleod</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>84480</commentid>
    <comment_count>0</comment_count>
    <who name="Volker">vposs</who>
    <bug_when>2019-07-23 08:29:22 +0000</bug_when>
    <thetext>Doc https://www.yoctoproject.org/docs/2.7.1/bitbake-user-manual/bitbake-user-manual.html#bb-the-unpack
describes a parameter &apos;basepath&apos;
&quot;...to strip the specified directories from the source path when unpacking...&quot;
--&gt; This functionality seems to be broken.

Checking latest sources I found that this commit
&quot;bitbake: fetch2: fixes copying of file://dir; subdir=foo, bug 6128 and bug 6129&quot;
of Feb. 2016 seems to have removed handling of the respective parameter from source file bitbake/lib/bb/fetch2/__init__.py

A grep in latest sources for &apos;parm.get(&apos; shows hits for the other options unpack, dos, subdir but not for basepath.

(This open question at stackoverflow seems to address the same topic, while referring to v1.6:
https://stackoverflow.com/questions/50451961/stripping-base-path-off-the-unpacked-source-tree-with-bitbake-src-uri-file-fe?rq=1)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90001</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2021-04-19 11:24:05 +0000</bug_when>
    <thetext>Patch sent to update the docs.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90026</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2021-04-20 13:10:05 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=8c5b67bec26b653a392177a3bd528fced5cc8a15</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>