Bug 179736 - >freetype-2.2 needs >=fontconfig-2.4
Bug#: 179736 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: critical Priority: P2
Resolution: FIXED Assigned To: fonts@gentoo.org Reported By: armin76@gentoo.org
Component: Ebuilds
URL: 
Summary: >freetype-2.2 needs >=fontconfig-2.4
Keywords:  
Status Whiteboard: 
Opened: 2007-05-25 11:40 0000
Description:   Opened: 2007-05-25 11:40 0000
According to bug 166029, >freetype-2.2 needs >=fontconfig-2.4.

If you don't have >=fontconfig-2.4 everything related to fonts segfaulted. 

So, please, add that dep asap, because i rebuilt my chroot because everything
graphically was segfaulting after installing a font.

Because:

/usr/portage/eclass/font.eclass: line 53: 26695 Illegal instruction    
HOME="/root" fc-cache -f "${D}${FONTDIR}"

Thanks.

------- Comment #1 From Jakub Moc (RETIRED) 2007-05-25 14:18:20 0000 -------
*** Bug 179648 has been marked as a duplicate of this bug. ***

------- Comment #2 From Beetle B. 2007-05-31 17:08:59 0000 -------
Has this not been rectified? 

------- Comment #3 From Ryan Hill 2007-06-08 00:27:57 0000 -------
hmm, doesn't everyone have 2.4 in stable already?

------- Comment #4 From Raúl Porcel 2007-06-08 09:30:48 0000 -------
Yes, but suppose you only upgrade freetype...i don't think it hurts adding that
dep, but that's up to you, it was a suggestion.

------- Comment #5 From Ryan Hill 2007-06-08 13:10:58 0000 -------
oh, right, we're missing a DEPEND.  i'll fix this up tonight.

------- Comment #6 From Beetle B. 2007-06-08 15:42:42 0000 -------
Yes - just wanted to add that I'm not running fontconfig 2.4 and have masked it
on my own machine. The reason is that if I upgrade to 2.4, Firefox crashes on
certain pages (many of them, actually). I never could solve that, so I had to
mask fontconfig. I'm sure I'm not the only one as I found that "solution" on
the forums. So for people like us, upgrading freetype more or less kills the
system.

In any case, regardless of my own problems, it's a dep and should be marked as
such. Especially because if something goes wrong, it's very hard for the person
to figure out what's causing the problem. Everything just segfaults.

------- Comment #7 From Ryan Hill 2007-06-09 00:09:12 0000 -------
Added to RDEPEND.

(In reply to comment #6)
> Yes - just wanted to add that I'm not running fontconfig 2.4 and have masked it
> on my own machine. The reason is that if I upgrade to 2.4, Firefox crashes on
> certain pages (many of them, actually). I never could solve that, so I had to
> mask fontconfig. I'm sure I'm not the only one as I found that "solution" on
> the forums. So for people like us, upgrading freetype more or less kills the
> system.

Is there a bug open for this?  If not, could you file one?

------- Comment #8 From Ryan Hill 2007-06-09 19:03:51 0000 -------
Unfixed. 

Calculating dependencies... done!
[nomerge      ] media-libs/freetype-2.3.4-r2  USE="X zlib -bindist -debug -doc"
[ebuild  N    ]  media-libs/fontconfig-2.4.2  USE="xml -doc"
[ebuild  N    ]   media-libs/freetype-2.3.4-r2  USE="X zlib -bindist -debug
-doc"
!!! Error: circular dependencies:

('ebuild', '/', 'media-libs/freetype-2.3.4-r2', 'merge') depends on
   ('ebuild', '/', 'media-libs/fontconfig-2.4.2', 'merge') (medium)
('ebuild', '/', 'media-libs/fontconfig-2.4.2', 'merge') depends on
   ('ebuild', '/', 'media-libs/freetype-2.3.4-r2', 'merge') (hard)

!!! Note that circular dependencies can often be avoided by temporarily
!!! disabling USE flags that trigger optional dependencies.


I need to look at this in more detail.

------- Comment #9 From Doug Whitesell 2007-06-09 20:54:11 0000 -------
(In reply to comment #8)
> Unfixed. 
> 
> Calculating dependencies... done!
> [nomerge      ] media-libs/freetype-2.3.4-r2  USE="X zlib -bindist -debug -doc"
> [ebuild  N    ]  media-libs/fontconfig-2.4.2  USE="xml -doc"
> [ebuild  N    ]   media-libs/freetype-2.3.4-r2  USE="X zlib -bindist -debug
> -doc"
> !!! Error: circular dependencies:
> 
> ('ebuild', '/', 'media-libs/freetype-2.3.4-r2', 'merge') depends on
>    ('ebuild', '/', 'media-libs/fontconfig-2.4.2', 'merge') (medium)
> ('ebuild', '/', 'media-libs/fontconfig-2.4.2', 'merge') depends on
>    ('ebuild', '/', 'media-libs/freetype-2.3.4-r2', 'merge') (hard)
> 
> !!! Note that circular dependencies can often be avoided by temporarily
> !!! disabling USE flags that trigger optional dependencies.
> 
> 
> I need to look at this in more detail.
> 

Same circular dependencies problem here. freetype is in fontconfig's RDEPEND
field, and fontconfig is in freetype's RDEPEND field, and portage's mind is
blown.

This issue is currently blocking me from setting up any windowing environments
(bummer). A user on the forums has reported that he can install the packages
successfully by tweaking use flags (?):
http://forums.gentoo.org/viewtopic-t-564311-highlight-freetype+fontconfig+circular+dependencies.html

Thanks,

------- Comment #10 From Ryan Hill 2007-06-09 21:31:08 0000 -------
i reverted the change.  if you sync it should work properly.

------- Comment #11 From Ryan Hill 2007-06-10 20:08:32 0000 -------
Fixed. (i hope)

------- Comment #12 From Beetle B. 2007-08-03 19:00:32 0000 -------
(In reply to comment #7)
> Added to RDEPEND.
> 
> (In reply to comment #6)
> > Yes - just wanted to add that I'm not running fontconfig 2.4 and have masked it
> > on my own machine. The reason is that if I upgrade to 2.4, Firefox crashes on
> > certain pages (many of them, actually). I never could solve that, so I had to
> > mask fontconfig. I'm sure I'm not the only one as I found that "solution" on
> > the forums. So for people like us, upgrading freetype more or less kills the
> > system.
> 
> Is there a bug open for this?  If not, could you file one?
> 

Sorry for the delay. See:

http://bugs.gentoo.org/show_bug.cgi?id=187634