Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 33369 - ebuild for freetype 2.1.7
Summary: ebuild for freetype 2.1.7
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: foser (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-13 00:00 UTC by Ken Deeter
Modified: 2004-03-07 10:29 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
ebuild (freetype-2.1.7.ebuild,1.38 KB, text/plain)
2003-11-13 00:00 UTC, Ken Deeter
Details
cleaner ebuild (freetype-2.1.7-r1.ebuild,1.40 KB, text/plain)
2003-11-15 00:41 UTC, Ken Deeter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ken Deeter 2003-11-13 00:00:22 UTC
Attaching an ebuild for freetype 2.1.7, based on 2.1.4-r1 

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Ken Deeter 2003-11-13 00:00:55 UTC
Created attachment 20675 [details]
ebuild
Comment 2 Ken Deeter 2003-11-15 00:41:24 UTC
Created attachment 20773 [details]
cleaner ebuild

This one uses econf and standard make commands instead of what was before. I'm
not sure why there was the other stuff before, but it seems to work with just
the standard commands now.
Comment 3 Ken Deeter 2003-11-15 00:53:47 UTC
It appears that with this version of freetype, one cannot say

#include <freetype/freetype.h>

anymore. you need

#include <ft2build.h>
#include FT_FREETYPE_H

instead.

It appears in /usr/X11R6/include/X11/Xft/Xft.h line 35, we have the incorrect older way, and so if you install this 2.1.7, it breaks anything that has to include Xft.h

Which means the Xft.h needs to be patched.

I haven't discovered the problem in any other program yet, but I suspect it might crop up.
Comment 4 foser (RETIRED) gentoo-dev 2003-11-15 11:28:23 UTC
Dunno if we should add this at this time, needs a lot of changes.

We should make a list of what includes freetype.h the old way or maybe we should fix freetype to allow the old way for now.
Comment 5 Ken Deeter 2003-11-15 14:59:01 UTC
If I run fgrep freetype * in /usr/include or /usr/X11R6/inclue, i don't get many hits, but i do get
fontconfig
libwmf
pango

Now thats not to say I have everything that uses ft2 installed, but my guess is the number might be quite small.


In the new freetype.h, there is this part right at the top:

#ifndef FT_FREETYPE_H
#error "`ft2build.h' hasn't been included yet!"
#error "Please always use macros to include FreeType header files."
#error "Example:"
#error "  #include <ft2build.h>"
#error "  #include FT_FREETYPE_H"
#endif

I wonder if we just take that out, perhaps it might work.
Comment 6 foser (RETIRED) gentoo-dev 2003-11-15 15:22:54 UTC
don't think so, we should probably also add the given statements.

Current gtk2/qt apps shouldnt really need to dep on freetype directly anymore, but a lot of older stuff does. A quick dep grep in the portage tree should pick up most of them, but probably not even all.
Comment 7 Ken Deeter 2003-11-15 19:14:35 UTC
what do you mean 'add the given statements'?

I think this change was actually around a while ago, so some apps that require freetype2 already use the new kind of include. (I remember seeing it in the changelog a while ago) Its just that it used to be that you could do it either way, and now only the new way works.

Comment 8 SpanKY gentoo-dev 2003-11-15 21:18:32 UTC
why not throw it into unstable and see what breaks

thats the whole point of unstable :)
Comment 9 foser (RETIRED) gentoo-dev 2003-11-16 07:11:09 UTC
i don't think so.. ~ is not for known not working stuff. Read the policy. I dunno why most of the users and even the large part of the devs think that these days, it's a sort of self-sustaining myth that everyone tells eachother.

In short see ~ as testing for ebuilds, not for the packages themselves. Only known stable and working stuff should be any one of the two trees. package.mask would be the place to give this testing to some extent.

Anyway, current apps may be adapting yes, the problem lies with old packages that are still useful, but most likely won't get another update.

Plan for now is to get the non 'new-style' 2.1.5 in (which was delayed because of a lack of time on my side) and check out 2.1.7 local and then move it into p.mask soon-ish.
Comment 10 Ken Deeter 2003-12-09 18:18:57 UTC
looks like they fixed up the freetype includes in the gtk-devel versions.. just a matter of time until others catch up.
Comment 11 foser (RETIRED) gentoo-dev 2003-12-10 04:19:08 UTC
yes, but it will be some months before the 2.3 series will be in the tree (2.4 by then). But we should probably steadily go make fixes, so i'll try to add it one of these days to p.mask as said.
Comment 12 foser (RETIRED) gentoo-dev 2004-03-07 10:29:17 UTC
2.1.7 is in the tree, p.mask though.