Bug 9404

Summary: Smart will remove RECOMMENDS during a remove command
Product: [Runtime] Package Management Issues Reporter: Jate Sujjavanich <jatedev>
Component: package-management-issuesAssignee: Robert Yang <liezhi.yang>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: Medium CC: randy.macleod, richard.purdie, sgw
Version: 1.5.5   
Target Milestone: 2.3 M4   
Hardware: All   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know

Description Jate Sujjavanich 2016-04-06 19:34:51 UTC
Preconditions/Environment
-------------------------
On an derived from poky dora-1.5, firewall kernel modules were moved from module space to kernel space. The image used RPM packages.

Triggering Action/Cause
-----------------------
smart remove kernel-module-nf-* 

Expectation
-----------
The smart package manager should remove only kernel-module-nf*

Actual Result
-------------
The smart package manager removes ufw which RECOMMENDS a number of kernel firewall modules

Reproducibility
---------------
Always
Comment 1 Richard Purdie 2016-04-07 14:53:30 UTC
Can you confirm if this is present on master. If its only present in dora, we're unlikely to go back and fix it at this point.
Comment 2 Jate Sujjavanich 2016-04-07 23:59:22 UTC
Preconditions/Environment
-------------------------
Tried the master branch of poky. Machine is qemuarm. Started with core-image-base, and added iptables which pulled in several kernel modules via RRECOMMENDS.

Triggering Action/Cause
-----------------------
root@qemuarm:~# smart remove kernel-module-x-tables

Expectation
-----------
The smart package manager should not remove iptables. The package iptables RECOMMENDS the kernel modules.

Actual Result
-------------
Loading cache...
Updating cache...               ######################################## [100%]

Computing transaction...

Removing packages (4):
  iptables-1.6.0-r0@armv5e                                                      
  kernel-module-ip-tables-4.4.3+git0+770996a263_8809b2c36a-r0@qemuarm           
  kernel-module-iptable-filter-4.4.3+git0+770996a263_8809b2c36a-r0@qemuarm      
  kernel-module-x-tables-4.4.3+git0+770996a263_8809b2c36a-r0@qemuarm            

897.9kB will be freed.

Confirm changes? (Y/n):

There are RDEPENDS between kernel-module-ip-tables and the other two kernel modules listed.

Reproducibility
---------------
Always
Comment 3 Stephen K Jolley 2016-04-18 20:42:30 UTC
It appears the NEEDINFO has been supplied.  If not, please comment on what is still needed.
Comment 4 Robert Yang 2017-03-16 06:24:48 UTC
Smart is gone, now it is DNF.