Bug 9404 - Smart will remove RECOMMENDS during a remove command
Summary: Smart will remove RECOMMENDS during a remove command
Status: RESOLVED INVALID
Alias: None
Product: Package Management Issues
Classification: Runtime
Component: package-management-issues (show other bugs)
Version: 1.5.5
Hardware: All Multiple
: Medium normal
Target Milestone: 2.3 M4
Assignee: Robert Yang
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-04-06 19:34 UTC by Jate Sujjavanich
Modified: 2017-03-16 06:24 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Don't know


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.