<?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>14809</bug_id>
          
          <creation_ts>2022-05-20 14:52:45 +0000</creation_ts>
          <short_desc>append adds a space when value is &quot;&quot;</short_desc>
          <delta_ts>2022-05-26 12:49: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>BitBake</product>
          <component>bitbake</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="akuster">akuster808</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</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>93290</commentid>
    <comment_count>0</comment_count>
    <who name="akuster">akuster808</who>
    <bug_when>2022-05-20 14:52:45 +0000</bug_when>
    <thetext>a) KERNEL_FEATURES=&quot; features/nfsd/nfsd-enable.scc features/debug/printk.scc  cfg/fs/vfat.scc features/kernel-sample/kernel-sample.scc features/netfilter/netfilter.scc cfg/virtio.scc features/drm-bochs/drm-bochs.scc   features/scsi/scsi-debug.scc  features/gpio/mockup.scc   &quot;


b) KERNEL_FEATURES=&quot; features/nfsd/nfsd-enable.scc features/debug/printk.scc  cfg/fs/vfat.scc features/kernel-sample/kernel-sample.scc features/netfilter/netfilter.scc cfg/virtio.scc features/drm-bochs/drm-bochs.scc   features/scsi/scsi-debug.scc  features/gpio/mockup.scc


KERNEL_FEATURES:append = &quot; ${@bb.utils.contains(&quot;DISTRO_FEATURES&quot;, &quot;apparmor&quot;, &quot;features/apparmor/apparmor.scc&quot;, &quot;&quot; ,d)}&quot;

When this DISTRO FEATURES is not set it appends a space as seen in &quot;a&quot; and changes the signature of the KERNEL_FEATURES variables.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93323</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2022-05-26 12:49:59 +0000</bug_when>
    <thetext>It would do since you&apos;re doing KERNEL_FEATURES:append = &quot; XXX&quot;, i.e. there is an unconditional space in there.

Move the space into the conditional, i.e. &quot; features/apparmor/apparmor.scc&quot;.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>