<?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>15534</bug_id>
          
          <creation_ts>2024-06-28 16:38:25 +0000</creation_ts>
          <short_desc>The PACKAGE_EXCLUDE is not working</short_desc>
          <delta_ts>2024-07-04 17:04:52 +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>oe-core other</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>5.1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jose Quaresma">quaresma.jose</reporter>
          <assigned_to name="Jose Quaresma">quaresma.jose</assigned_to>
          <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>99296</commentid>
    <comment_count>0</comment_count>
    <who name="Jose Quaresma">quaresma.jose</who>
    <bug_when>2024-06-28 16:38:25 +0000</bug_when>
    <thetext>for example: if we set python3 as exclude package and install python3-dbus it goes well and no errors was raised.

echo &apos;PACKAGE_EXCLUDE = &quot;python3&quot;&apos; &gt;&gt; conf/local.conf

bitbake python3-dbus -c do_rootfs



According to the documentation [1]

If you choose to not install a package using this variable and some other package is dependent on it (i.e. listed in a recipe’s RDEPENDS variable), the OpenEmbedded build system generates a fatal installation error. Because the build system halts the process with a fatal error, you can use the variable with an iterative development process to remove specific components from a system.

[1] https://docs.yoctoproject.org/ref-manual/variables.html?highlight=package_exclude#term-PACKAGE_EXCLUDE</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99309</commentid>
    <comment_count>1</comment_count>
    <who name="Jose Quaresma">quaresma.jose</who>
    <bug_when>2024-07-02 16:27:36 +0000</bug_when>
    <thetext>The steps to reproduce the issue in the reporting message is not correct and it should be:

cat&lt;&lt; &apos;EOF&apos; &gt;&gt;conf/local.conf
CORE_IMAGE_EXTRA_INSTALL += &quot;python3-dbus&quot;
PACKAGE_EXCLUDE = &quot;python3&quot;
EOF

bitbake core-image-minimal -c do_rootfs</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99315</commentid>
    <comment_count>2</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2024-07-04 14:36:56 +0000</bug_when>
    <thetext>Jose, can you try:

cat&lt;&lt; &apos;EOF&apos; &gt;&gt;conf/local.conf
CORE_IMAGE_EXTRA_INSTALL += &quot;python3-dbus&quot;
PACKAGE_EXCLUDE = &quot;python3-core&quot;
EOF

and report if that fails or not?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99321</commentid>
    <comment_count>3</comment_count>
    <who name="Jose Quaresma">quaresma.jose</who>
    <bug_when>2024-07-04 17:04:52 +0000</bug_when>
    <thetext>Everything is fine with the suggested configuration.

cat&lt;&lt; &apos;EOF&apos; &gt;&gt;conf/local.conf
CORE_IMAGE_EXTRA_INSTALL += &quot;python3-dbus&quot;
PACKAGE_EXCLUDE = &quot;python3-core&quot;
EOF

Sorry for the noise. I should have tested with more and different approaches.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>