Bug 1409247 - dnf autoremove can not remove some packages
Summary: dnf autoremove can not remove some packages
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: fontconfig
Version: 25
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Akira TAGOH
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-12-30 17:17 UTC by wangzhao
Modified: 2017-12-12 10:20 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-12-12 10:20:24 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
debugdata debugdata-autoremove (13.73 MB, application/zip)
2017-01-02 16:03 UTC, wangzhao
no flags Details

Description wangzhao 2016-12-30 17:17:28 UTC
Description of problem:

# dnf install fluxbox 
# dnf remove fluxbox
# dnf autoremove

The package artwiz-aleczapka-drift-fonts is installed as a dependency, but it can not be uninstalled automatically

# dnf list installed |grep artwiz-aleczapka-drift-fonts.noarch
artwiz-aleczapka-drift-fonts.noarch  1.3-19.fc24                        @fedora
# dnf history userinstalled|grep artwiz-aleczapka-drift-fonts.noarch
#
# dnf history

ID     | Command line             | Date and time    | Action(s)      | Altered
-------------------------------------------------------------------------------
    40 | remove fluxbox           | 2016-12-30 23:16 | Erase          |   14   
    39 | install gxmessage        | 2016-12-30 22:29 | Install        |    1   
    38 | install fluxbox          | 2016-12-30 21:42 | Install        |   22   
    37 | install fdupes           | 2016-12-30 12:02 | Install        |    1  
...


Version-Release number of selected component (if applicable):
# dnf --version
1.1.10
  Installed: dnf-0:1.1.10-4.fc25.noarch at 2016-12-26 15:55
  Built    : Fedora Project at 2016-12-02 15:55

  Installed: rpm-0:4.13.0-6.fc25.x86_64 at 2016-12-26 15:55
  Built    : Fedora Project at 2016-12-03 12:31

How reproducible:
install fluxbox and remove it

Steps to Reproduce:
1. dnf install fluxbox 
2. dnf remove fluxbox
3. dnf autoremove

Actual results:

the package artwiz-aleczapka-drift-fonts is left in system.

Expected results:
the package artwiz-aleczapka-drift-fonts should be uninstalled.


Additional info:

Comment 1 Igor Gnatenko 2017-01-02 08:17:59 UTC
Please run dnf autoremove with --debugsolver and attach `debugdata` directory.

Comment 2 wangzhao 2017-01-02 16:03:26 UTC
Created attachment 1236671 [details]
debugdata  debugdata-autoremove

# dnf autoremove --debugsolver

Comment 3 Igor Gnatenko 2017-01-09 12:24:55 UTC
Requires:	font(:lang=en)

in fontconfig.



fontconfig maintainer, if you really want to make proper lang-dependent packages, look how langpacks are done. You can ping me anytime in question regarding this.

Comment 4 Akira TAGOH 2017-01-10 07:14:00 UTC
fontconfig just requires one English font (at least, and no deps to the specific fonts) to make it working. it was added to address it by the request. I'm not sure if the langpacks sasisfies that though, if you have any idea, please let me know.

Comment 5 Igor Gnatenko 2017-01-10 09:36:28 UTC
(In reply to Akira TAGOH from comment #4)
> fontconfig just requires one English font (at least, and no deps to the
> specific fonts) to make it working. it was added to address it by the
> request. I'm not sure if the langpacks sasisfies that though, if you have
> any idea, please let me know.
Imagine, you install fontconfig which pulls font X. Then you install fluxbox which pulls font Y. Both of them have Provides: font(:lang=en). When you remove fluxbox (and all unneeded packages) solver doesn't know which font is better to remove, X or Y. So it keeps both.

Langpack system works with weak (and IIRC rich dependencies). You can check implementation:
* https://src.fedoraproject.org/cgit/rpms/langpacks.git/tree/langpacks.spec
* https://fedoraproject.org/wiki/Packaging:Langpacks

Making something similar could take a bit of time, but it will be definitely better.


Backto original bug: how come that it requires one English font? Is there some bug behind it or ...?

Comment 6 Akira TAGOH 2017-01-10 10:48:24 UTC
(In reply to Igor Gnatenko from comment #5)
> (In reply to Akira TAGOH from comment #4)
> > fontconfig just requires one English font (at least, and no deps to the
> > specific fonts) to make it working. it was added to address it by the
> > request. I'm not sure if the langpacks sasisfies that though, if you have
> > any idea, please let me know.
> Imagine, you install fontconfig which pulls font X. Then you install fluxbox
> which pulls font Y. Both of them have Provides: font(:lang=en). When you
> remove fluxbox (and all unneeded packages) solver doesn't know which font is
> better to remove, X or Y. So it keeps both.

I could imagine why this happened. but there are no reaons to depend on the specific fonts in fontconfig, then I said I'm not sure if or how the langpacks sasisfies the fontconfig's requirements.

> Backto original bug: how come that it requires one English font? Is there
> some bug behind it or ...?

that's easy to imagine too... when no fonts installed on the system, fontconfig will returns no fonts against the request from the applications. then applications won't work as expected due to that.

Comment 7 Igor Gnatenko 2017-01-24 12:47:18 UTC
(In reply to Akira TAGOH from comment #6)
> (In reply to Igor Gnatenko from comment #5)
> > (In reply to Akira TAGOH from comment #4)
> > > fontconfig just requires one English font (at least, and no deps to the
> > > specific fonts) to make it working. it was added to address it by the
> > > request. I'm not sure if the langpacks sasisfies that though, if you have
> > > any idea, please let me know.
> > Imagine, you install fontconfig which pulls font X. Then you install fluxbox
> > which pulls font Y. Both of them have Provides: font(:lang=en). When you
> > remove fluxbox (and all unneeded packages) solver doesn't know which font is
> > better to remove, X or Y. So it keeps both.
> 
> I could imagine why this happened. but there are no reaons to depend on the
> specific fonts in fontconfig, then I said I'm not sure if or how the
> langpacks sasisfies the fontconfig's requirements.
> 
> > Backto original bug: how come that it requires one English font? Is there
> > some bug behind it or ...?
> 
> that's easy to imagine too... when no fonts installed on the system,
> fontconfig will returns no fonts against the request from the applications.
> then applications won't work as expected due to that.

I would recommend starting discussion on devel.o and get some feedback there.

Comment 8 Fedora End Of Life 2017-11-16 19:36:52 UTC
This message is a reminder that Fedora 25 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 25. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '25'.

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 25 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 9 Fedora End Of Life 2017-12-12 10:20:24 UTC
Fedora 25 changed to end-of-life (EOL) status on 2017-12-12. Fedora 25 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.


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