Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
why portage wants to remove media-fonts/dejavu?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
vincent-
Developer
Developer


Joined: 13 Jan 2007
Posts: 415
Location: Valencia (Spain)

PostPosted: Sun Jul 03, 2011 1:59 pm    Post subject: why portage wants to remove media-fonts/dejavu? Reply with quote

Anyone can explain this to me?

Quote:
[15:44:59] root@fujitsu /home/peratu # equery depends dejavu
* These packages depend on dejavu:
virtual/ttf-fonts-1 (media-fonts/dejavu)
[15:45:45] root@fujitsu /home/peratu # emerge -a --depclean

* Depclean may break link level dependencies. Thus, it is
* recommended to use a tool such as `revdep-rebuild` (from
* app-portage/gentoolkit) in order to detect such breakage.
*
* Always study the list of packages to be cleaned for any obvious
* mistakes. Packages that are part of the world set will always
* be kept. They can be manually added to this set with
* `emerge --noreplace <atom>`. Packages that are listed in
* package.provided (see portage(5)) will be removed by
* depclean, even if they are part of the world set.
*
* As a safety measure, depclean will not remove any packages
* unless *all* required dependencies have been resolved. As a
* consequence, it is often necessary to run `emerge --update
* --newuse --deep @world` prior to depclean.

Calculating dependencies... done!
>>> Calculating removal order...

>>> These are the packages that would be unmerged:

media-fonts/dejavu
selected: 2.32
protected: none
omitted: none

All selected packages: media-fonts/dejavu-2.32

>>> 'Selected' packages are slated for removal.
>>> 'Protected' and 'omitted' packages will not be removed.

Would you like to unmerge these packages? [Yes/No]


If I have installed virtual/ttf-fonts, and that package depends on media-fonts/dejavu, so..., why portage wants to remove media-fonts/dejavu?

Thanks!
Back to top
View user's profile Send private message
vincent-
Developer
Developer


Joined: 13 Jan 2007
Posts: 415
Location: Valencia (Spain)

PostPosted: Sun Jul 03, 2011 2:20 pm    Post subject: Reply with quote

/usr/portage/virtual/ttf-fonts/ttf-fonts-1.ebuild

That file contains a logical OR of dependences:

Quote:
RDEPEND="|| (
media-fonts/dejavu
media-fonts/ttf-bitstream-vera
media-fonts/liberation-fonts
media-fonts/droid
media-fonts/freefont-ttf
media-fonts/corefonts
)
"


That means you can satisfy the dependences with, at least, one of that packages. One, two, or more...
I have other machine with sys-apps/portage-2.1.9.42 . In that machine portage doesn't want to remove media-fonts/dejavu, and I have installed media-fonts/corefonts too. So, I satisfy the dependences with two packages.

But in this machine I have sys-apps/portage-2.1.10.3, and I satisfy virtual/ttf-fonts dependences with the same two packages, media-fonts/dejavu and media-fonts/corefonts. But in this machine portage wants to remove media-fonts/dejavu. So, I understand that sys-apps/portage-2.1.10.3 only wants ONE package to satisfy the logical OR dependences. And for sys-apps/portage-2.1.9.42 it doesn't matter if you satisfy the dependences with one, two or more packages.

Am I right?
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 7746
Location: Somewhere over Atlanta, Georgia

PostPosted: Sun Jul 03, 2011 3:17 pm    Post subject: Reply with quote

I'm not an expert on Portage internals but I believe you've understood the situation correctly. I've noticed the same thing: that recent versions of Portage are doing a better and better job of keeping the system in good minimal trim, sometimes with non-obvious results.

If you want to keep media-fonts/dejavu, you know the proper solution, right? Add it to the world set:
Code:
emerge --noreplace dejavu
- John
_________________
This space intentionally left blank.
Back to top
View user's profile Send private message
vincent-
Developer
Developer


Joined: 13 Jan 2007
Posts: 415
Location: Valencia (Spain)

PostPosted: Sun Jul 03, 2011 3:24 pm    Post subject: Reply with quote

Yes, that was my "workaround" for not loose the dejavu font. Thanks anyway John :-)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum