<?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>14099</bug_id>
          
          <creation_ts>2020-10-19 10:52:50 +0000</creation_ts>
          <short_desc>PACKAGE_EXCLUDE not removing packages when PACKAGE_CLASSES = &quot;package_deb&quot;</short_desc>
          <delta_ts>2022-09-27 03:46:58 +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>core</component>
          <version>3.3</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>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>4.1 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Diego Sueiro">diego.sueiro</reporter>
          <assigned_to name="Chee Yang">chee.yang.lee</assigned_to>
          <cc>chee.yang.lee</cc>
    
    <cc>diego.sueiro</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>stacygaikovaia</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>88427</commentid>
    <comment_count>0</comment_count>
    <who name="Diego Sueiro">diego.sueiro</who>
    <bug_when>2020-10-19 10:52:50 +0000</bug_when>
    <thetext>I&apos;m having problems with `IMAGE_FEATURES += &quot;dev-pkgs&quot;`,  `PACKAGE_EXCLUDE_append=&quot; grub-dev&quot;` and `PACKAGE_CLASSES = &quot;package_deb&quot;`,  where despite of the package has the &quot;Pin-Priority: -1&quot; in /apt/preferences, apt-get install still tries to install it.

This is the build failure output:

```
WARNING: core-image-minimal-1.0-r0 do_rootfs: Unable to install packages. Command &apos;&lt;snip&gt;/build/tmp/work/n1sdp-poky-linux/core-image-minimal/1.0-r0/recipe-sysroot-native/usr/bin/apt-get  install --force-yes --allow-unauthenticated --no-remove apt-dev bc-dev binutils-dev bison-dev bridge-utils-dev busybox-dev bzip2-dev ca-certificates-dev cgroup-lite-dev containerd-opencontainers-dev docker-ce-dev dpkg-dev eudev-dev flex-dev gcc-dev grub-bootconf-dev grub-dev grub-efi-dev init-ifupdown-dev init-system-helpers-dev initscripts-dev iptables-dev kernel-dev kernel-devsrc-dev kmod-dev libcap-ng-dev libffi-dev libgnutls-dev libidn2-dev libjitterentropy-dev libnsl-dev libsqlite3-dev libtirpc-dev libunistring-dev linux-firmware-dev lz4-dev m4-dev modutils-initscripts-dev netbase-dev nettle-dev openssh-dev packagegroup-core-boot-dev packagegroup-core-ssh-openssh-dev packagegroup-docker-runtime-minimal-dev python3-dev rng-tools-dev run-postinsts-dev runc-docker-dev sysfsutils-dev sysvinit-dev sysvinit-inittab-dev tar-dev tini-dev update-rc.d-dev util-linux-dev xz-dev&apos; returned 100:
Reading package lists...
Building dependency tree...
Reading state information...
Package grub-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

W: --force-yes is deprecated, use one of the options starting with --allow instead.
E: Package &apos;grub-dev&apos; has no installation candidate

WARNING: core-image-minimal-1.0-r0 do_rootfs: [log_check] core-image-minimal: found 1 warning message in the logfile:
[log_check] WARNING: Unable to install packages. Command &apos;&lt;snip&gt;/build/tmp/work/n1sdp-poky-linux/core-image-minimal/1.0-r0/recipe-sysroot-native/usr/bin/apt-get  install --force-yes --allow-unauthenticated --no-remove apt-dev bc-dev binutils-dev bison-dev bridge-utils-dev busybox-dev bzip2-dev ca-certificates-dev cgroup-lite-dev containerd-opencontainers-dev docker-ce-dev dpkg-dev eudev-dev flex-dev gcc-dev grub-bootconf-dev grub-dev grub-efi-dev init-ifupdown-dev init-system-helpers-dev initscripts-dev iptables-dev kernel-dev kernel-devsrc-dev kmod-dev libcap-ng-dev libffi-dev libgnutls-dev libidn2-dev libjitterentropy-dev libnsl-dev libsqlite3-dev libtirpc-dev libunistring-dev linux-firmware-dev lz4-dev m4-dev modutils-initscripts-dev netbase-dev nettle-dev openssh-dev packagegroup-core-boot-dev packagegroup-core-ssh-openssh-dev packagegroup-docker-runtime-minimal-dev python3-dev rng-tools-dev run-postinsts-dev runc-docker-dev sysfsutils-dev sysvinit-dev sysvinit-inittab-dev tar-dev tini-dev update-rc.d-dev util-linux-dev xz-dev&apos; returned 100:

ERROR: core-image-minimal-1.0-r0 do_rootfs: [log_check] core-image-minimal: found 1 error message in the logfile:
[log_check] E: Package &apos;grub-dev&apos; has no installation candidate

```</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89685</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2021-03-22 21:33:27 +0000</bug_when>
    <thetext>Bumping to M4. 

Stacy,
   Please let me know if you want to keep this bug and plan to work on it over the coming weeks or 3.4 release cycle. 
Randy</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90762</commentid>
    <comment_count>2</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2021-06-24 19:24:42 +0000</bug_when>
    <thetext>Moved to unassigned since I don&apos;t use .deb packaging myself.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94049</commentid>
    <comment_count>3</comment_count>
    <who name="Chee Yang">chee.yang.lee</who>
    <bug_when>2022-09-22 11:52:57 +0000</bug_when>
    <thetext>PACKAGE_EXCLUDE is for optional package, like for example to exclude &quot;vim-help&quot; or &quot;vim-tutor&quot; package when installing &quot;vim&quot; through IMAGE_INSTALL.

&quot;-dev&quot; package as complementary package should be exclude using PACKAGE_EXCLUDE_COMPLEMENTARY [1]. 

Hence i think this is not real issue.

[1] https://docs.yoctoproject.org/ref-manual/variables.html?highlight=package_exclude_complementary#term-PACKAGE_EXCLUDE_COMPLEMENTARYY</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94063</commentid>
    <comment_count>4</comment_count>
    <who name="Chee Yang">chee.yang.lee</who>
    <bug_when>2022-09-23 09:14:59 +0000</bug_when>
    <thetext>with master (99b35ab818538c83ca2df87f685b35b3619cc2ef), i can produce similar error with package_ipk and package_rpm too.

PACKAGE_EXCLUDE_COMPLEMENTARY works well with all 3 ipk, deb and rpm.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94073</commentid>
    <comment_count>5</comment_count>
    <who name="Chee Yang">chee.yang.lee</who>
    <bug_when>2022-09-27 03:46:58 +0000</bug_when>
    <thetext>closing this as not a bug.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>