Bug 983979

Summary: yum doesn't remove no longer needed packages with langpacks
Product: [Fedora] Fedora Reporter: Kirill Voronin <yoursdearboy>
Component: yum-langpacksAssignee: Parag Nemade <pnemade>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 19CC: i18n-bugs, james.antill, jzeleny, petersen, pnemade, rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-02-18 13:59:44 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
libreoffice-writer install log
none
libreoffice-writer remove log
none
libreoffice-writer dependencies install reasons
none
Clean requirements from langpack install. none

Description Kirill Voronin 2013-07-12 12:37:47 UTC
Description of problem:
yum doesn't remove packages with langpacks that no longer needed by any other package.

Version-Release number of selected component (if applicable):
0.3.1-2.fc19

How reproducible:
always

Steps to Reproduce:
1. Install any package with deps that have langpacks (e. g. libreoffice-writer has mythes dependency with mythes-%s langpacks)
2. Remove this package

Actual results:
Dependencies with langpacks won't be erased

Expected results:
All leftover dependencies should be erased

Additional info:
For example: if I install libreoffice-writer it pulls mythes and language packs mythes-en, mythes-ru. If I delete libreoffice-writer package mythes won't be erased.
As I understand it happens because packages mythes-ru, mythes-en installs "by user" and have mythes dependency.

Comment 1 Kirill Voronin 2013-07-12 12:41:02 UTC
Created attachment 772670 [details]
libreoffice-writer install log

Comment 2 Kirill Voronin 2013-07-12 12:41:33 UTC
Created attachment 772671 [details]
libreoffice-writer remove log

Comment 3 Kirill Voronin 2013-07-12 12:44:54 UTC
Created attachment 772672 [details]
libreoffice-writer dependencies install reasons

Comment 4 Bill Nottingham 2013-07-12 15:30:22 UTC
What's your yum config - do you have clean_requirements_on_remove set?

Comment 5 Kirill Voronin 2013-07-12 16:00:53 UTC
(In reply to Bill Nottingham from comment #4)
> What's your yum config - do you have clean_requirements_on_remove set?

[main]
cachedir=/var/cache/yum/$basearch/$releasever
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
installonly_limit=3

# My changes
group_package_types=mandatory
clean_requirements_on_remove=1

and langpacks.conf
[main]
enabled=1

langpack_locales = en_US, ru_RU

Comment 6 Bill Nottingham 2013-07-12 19:33:18 UTC
James, Zdenek - is there something specific that yum-langpacks can do to mark the packages it installs so that this works?

Comment 7 Fedora Admin XMLRPC Client 2013-09-20 14:08:59 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 8 Parag Nemade 2013-10-16 08:50:33 UTC
James,
  Can you please provide your views on this bug?

thanks.

Comment 9 James Antill 2014-01-27 20:39:30 UTC
Created attachment 856256 [details]
Clean requirements from langpack install.

I believe this will fix it.

Comment 10 Kirill Voronin 2014-09-14 18:39:58 UTC
(In reply to James Antill from comment #9)
> Created attachment 856256 [details]
> Clean requirements from langpack install.
> 
> I believe this will fix it.

Yes, that works, but "yum autoremove" will delete all langpacks because they're marked installed as dependencies (but no package depends on them).

Comment 11 Fedora End Of Life 2015-01-09 22:11:55 UTC
This message is a notice that Fedora 19 is now at end of life. Fedora 
has stopped maintaining and issuing updates for Fedora 19. It is 
Fedora's policy to close all bug reports from releases that are no 
longer maintained. Approximately 4 (four) weeks from now this bug will
be closed as EOL if it remains open with a Fedora 'version' of '19'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 19 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 12 Fedora End Of Life 2015-02-18 13:59:44 UTC
Fedora 19 changed to end-of-life (EOL) status on 2015-01-06. Fedora 19 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.