Bug 337 - Obsoleting a package should remove src.rpm
Summary: Obsoleting a package should remove src.rpm
Status: ASSIGNED
Alias: None
Product: Infrastructure
Classification: Unclassified
Component: BuildSystem (show other bugs)
Version: unspecified
Hardware: i586 Linux
Priority: Normal enhancement
Target Milestone: ---
Assignee: Sysadmin Team
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 858
  Show dependency treegraph
 
Reported: 2011-03-11 11:50 CET by Pascal Terjan
Modified: 2014-03-24 10:52 CET (History)
3 users (show)

See Also:
Source RPM:
CVE:
Status comment:


Attachments
Script listing packages to delete (1.36 KB, text/plain)
2011-10-14 22:05 CEST, Pascal Terjan
Details
Log of the script on cauldron in 3 use cases (8.50 KB, text/plain)
2011-10-14 22:06 CEST, Pascal Terjan
Details

Description Pascal Terjan 2011-03-11 11:50:00 CET
When all subpackages of a src.rpm are removed, the src.rpm should too.

This is easy to detect (nothing remaining in repository built from that src.rpm)

Reproducible: 

Steps to Reproduce:
Pascal Terjan 2011-03-11 13:56:23 CET

Severity: normal => enhancement

Thierry Vignaud 2011-05-20 14:55:23 CEST

CC: (none) => thierry.vignaud

Comment 1 Marja Van Waes 2011-10-05 17:53:09 CEST
@ sysadmin-bugs

any news on this enhancement request?

CC: (none) => marja11

Comment 2 Nicolas Vigier 2011-10-14 14:50:33 CEST
debug packages should also be removed.

CC: (none) => boklm

Comment 3 Nicolas Vigier 2011-10-14 14:52:11 CEST
I think this can be done using a script in cron removing all source packages with no corresponding binary packages.
Nicolas Vigier 2011-10-14 14:53:19 CEST

Blocks: (none) => 858

Comment 4 Pascal Terjan 2011-10-14 15:03:20 CEST
I had such scripts in my home on n4 which got wiped out.
There is also some code in youri-check for that.
The Missing check lists the ones where there are binary packages from newer version, I don't remember why it does not list the ones without binary packages but this should be trivial to add.

I had http://svn.mandriva.com/viewvc/soft/build_system/distrib/cleaning/debugorphan?revision=269234&view=markup for removing / moving debug packages, this one can be simplified to only do the removing and be run in cron.
Comment 5 Pascal Terjan 2011-10-14 22:05:17 CEST
Created attachment 964 [details]
Script listing packages to delete
Comment 6 Pascal Terjan 2011-10-14 22:06:46 CEST
Created attachment 965 [details]
Log of the script on cauldron in 3 use cases

This script can list:
- binaries in a media without src.rpm (old binaries), it can be run on debug media too
- src.rpm in a media with no associated binary rpm
Pascal Terjan 2011-10-14 22:07:04 CEST

Attachment 965 mime type: application/octet-stream => text/plain

Jerome Quelin 2011-11-30 13:19:16 CET

CC: (none) => jquelin

Nicolas Vigier 2012-01-13 23:02:37 CET

Status: NEW => ASSIGNED

Comment 7 Pascal Terjan 2012-02-18 18:02:42 CET
This script has a problem, it only checks one arch so it will report a src.rpm as not having binaries if it is not built for that arch
Nicolas Vigier 2014-03-24 10:52:28 CET

CC: boklm => (none)


Note You need to log in before you can comment on or make changes to this bug.