<?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>12677</bug_id>
          
          <creation_ts>2018-04-11 23:29:10 +0000</creation_ts>
          <short_desc>devtool modify &lt;recipe&gt; errors out when the recipe uses ${WORKDIR} in do_install</short_desc>
          <delta_ts>2026-01-23 14:38:59 +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>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard> </status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>6.99</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Anuj Mittal">anuj.mittal</reporter>
          <assigned_to name="Paul Eggleton">bluelightning</assigned_to>
          <cc>anuj.mittal</cc>
    
    <cc>ccasciato</cc>
    
    <cc>denis</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</cc>
    
    <cc>stephano</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>80206</commentid>
    <comment_count>0</comment_count>
    <who name="Anuj Mittal">anuj.mittal</who>
    <bug_when>2018-04-11 23:29:10 +0000</bug_when>
    <thetext>Since devtool uses externalsrc to override vars B and S, references to WORKDIR in do_install result in failures.

Is using WORKDIR to resolve to file paths a valid usage? If not, should we warn users and request them to change it when using such a recipe with devtool? Is there any other way to replace references to WORKDIR?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81943</commentid>
    <comment_count>1</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2018-10-23 22:43:43 +0000</bug_when>
    <thetext>Anuj - apologies for the delay in reviewing this. Do you have an example of a recipe where this resulted in a failure? I just tested a couple that I found with ${WORKDIR} in do_install (nss and keymaps in OE-Core) and they worked fine, so I think there are additional factors at work here - perhaps S = &quot;${WORKDIR}&quot; or otherwise using ${WORKDIR}/something to refer to a file within ${S} or ${B}?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81944</commentid>
    <comment_count>2</comment_count>
    <who name="Anuj Mittal">anuj.mittal</who>
    <bug_when>2018-10-24 01:02:57 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; Anuj - apologies for the delay in reviewing this. Do you have an example of
&gt; a recipe where this resulted in a failure? 

At the time, I was working on ixgbe recipe in meta-intel.

&gt; I just tested a couple that I
&gt; found with ${WORKDIR} in do_install (nss and keymaps in OE-Core) and they
&gt; worked fine, so I think there are additional factors at work here - perhaps
&gt; S = &quot;${WORKDIR}&quot; or otherwise using ${WORKDIR}/something to refer to a file
&gt; within ${S} or ${B}?

Yes, I just checked and this recipe is using ${WORKDIR}/something to refer to a file in source tree.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94003</commentid>
    <comment_count>3</comment_count>
    <who name="Denys Dmytriyenko">denis</who>
    <bug_when>2022-09-08 20:48:12 +0000</bug_when>
    <thetext>FWIW, this is still a valid bug:
https://patchwork.yoctoproject.org/project/ti/patch/20220908202054.3800302-1-denis@denix.org/

Should devtool at least warn about such usage?
Also, should this be re-assigned to Saul (new devtool owner) now?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96838</commentid>
    <comment_count>4</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2023-10-24 14:24:27 +0000</bug_when>
    <thetext>Bulk move from 4.99 or 0.00 to 5.99</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104038</commentid>
    <comment_count>5</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2026-01-22 16:31:15 +0000</bug_when>
    <thetext>Needs retesting after the UNPACKDIR changes.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>