<?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>12913</bug_id>
          
          <creation_ts>2018-09-03 16:22:49 +0000</creation_ts>
          <short_desc>_remove does not work when the item to be removed contains variables</short_desc>
          <delta_ts>2018-10-18 12:41:15 +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>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>2.6 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexander Kanavin">alex.kanavin</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>erik.boto</cc>
    
    <cc>openatv</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.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>81494</commentid>
    <comment_count>0</comment_count>
    <who name="Alexander Kanavin">alex.kanavin</who>
    <bug_when>2018-09-03 16:22:49 +0000</bug_when>
    <thetext>E.g. like this:

RDEPENDS_${PN}-ptest = &quot;${PN}-misc make perl perl-module-filehandle bc&quot;

# Uncommenting either of these lines does not trigger a re-packaging, even though it should!
#RDEPENDS_${PN}-ptest_remove = &quot;${PN}-misc&quot;
#RDEPENDS_${PN}-ptest_remove = &quot;openssl-misc&quot;

Reproducer here:
http://git.yoctoproject.org/cgit.cgi/poky-contrib/commit/?h=akanavin/_remove-issue&amp;id=82e1a90765024ec7184803cbab9267f38dcf532d</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81845</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2018-10-14 12:29:41 +0000</bug_when>
    <thetext>I&apos;m a bit puzzled by this as I can&apos;t get it to reproduce for me. I only had openssl 1.1.1 available so I tweaked:

-RDEPENDS_${PN}-ptest += &quot;perl-module-file-spec-functions bash python&quot;
+RDEPENDS_${PN}-ptest += &quot;perl-module-file-spec-functions bash python ${PN}-misc&quot;

and was then adding or removing:
 
RDEPENDS_${PN}-ptest_remove = &quot;${PN}-misc&quot;

$ bitbake openssl -e | egrep BASEHASH.*do_package=\|^RDEPENDS_.*ptest=
BB_BASEHASH_task-do_package=&quot;5b6024c21bda4980f65a5deffd5e9f61&quot;
RDEPENDS_openssl-ptest=&quot; perl-module-file-spec-functions bash python openssl-misc&quot;

$ bitbake openssl -e | egrep BASEHASH.*do_package=\|^RDEPENDS_.*ptest=
BB_BASEHASH_task-do_package=&quot;452b08f55a52830fa97efab8ac473cb8&quot;
RDEPENDS_openssl-ptest=&quot;perl-module-file-spec-functions bash python&quot;

and RDEPENDS changes as expected, as does the BASEHASH. If the hash of the task changes, it should rebuild (repackage in this case). 

Given that, is there more info you can give to reproduce this? Was this with master or one of the stable branches?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81846</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2018-10-14 12:53:41 +0000</bug_when>
    <thetext>I was able to reproduce but not consistently, something very odd is going on :(</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81881</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2018-10-16 19:56:08 +0000</bug_when>
    <thetext>There were two issues, one was whitespace being squashed by any _remove operator, active or inactive. The other was _remove operators not being cached correctly. I&apos;ve sent patches for both.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81896</commentid>
    <comment_count>4</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2018-10-18 12:41:15 +0000</bug_when>
    <thetext>The fix: 
http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=f7f5e30667e1ad8e1ca76ee331be2843f2976bfa
Some extra tests:
http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=4ef016683d986cc5291e494789ff5a49b28030eb
The fix for the whitespace issue:
http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=a9aa1d24c7c4518173f622a1fab55a98a16150f9</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>