Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 23634 - gnustep-back-0.8.5 dependency on Xft1 can be fixed! (One -I missing)
Summary: gnustep-back-0.8.5 dependency on Xft1 can be fixed! (One -I missing)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High blocker (vote)
Assignee: Todd Berman (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on: 14131
Blocks:
  Show dependency tree
 
Reported: 2003-06-28 00:09 UTC by Zhen Lin
Modified: 2004-01-18 04:33 UTC (History)
0 users

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


Attachments
gnustep-back-0.8.5.ebuild, using gnustep eclass and one-line fix for Xft2 (gnustep-back-0.8.5-r1.ebuild,1.93 KB, text/plain)
2003-06-28 00:37 UTC, Zhen Lin
Details
The patch (gnustep-back-0.8.5.xft2.patch,470 bytes, patch)
2003-06-28 00:38 UTC, Zhen Lin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Zhen Lin 2003-06-28 00:09:05 UTC
When compiling gnustep-back-0.8.5 on my XFree86 system, Xft support is
automagically dropped through ingenious use of sed.

The root of the problem: X11/Xft/Xft.h has a dependency on freetype/freetype.h ...
And GCC has found the wrong one!

Using -I/usr/include/freetype2 will fix the problem!

Reproducible: Always
Steps to Reproduce:
1. Using XFree86 4.3
2. Comment out the part which disables Xft in gnustep-back-0.8.5 ebuild
3. Compile
4. Observe the errors

Actual Results:  
Parse errors, undeclared symbols etc.

Expected Results:  
Linked nicely.
Comment 1 Zhen Lin 2003-06-28 00:37:33 UTC
Created attachment 13956 [details]
gnustep-back-0.8.5.ebuild, using gnustep eclass and one-line fix for Xft2

The ebuild.
Comment 2 Zhen Lin 2003-06-28 00:38:24 UTC
Created attachment 13957 [details, diff]
The patch
Comment 3 Nick Hadaway 2003-07-02 01:18:21 UTC
gnustep-back-0.8.5-r1 has been added to portage including support for xft2 utilizing your patch.  please test.
Comment 4 Zhen Lin 2003-07-03 03:59:47 UTC
Well, I have just tested a fix for gnustep-gui-0.8.7, but I think the same applies to 0.8.5:

When using -march=pentium4 -O2, rendering happens in the wrong place. Reducing -O2 to -Os seems to solve the problems though.

Sorry, can't test 0.8.5 without downgrading all the gnustep packages... Dangerous thing to do.

I also suggest switching over to the libart backend, it seems more pretty and somewhat more bugfree. (Problem: the libart backend requires .nfont packages, fortunately, .nfont packages can be created from any scalable font) Most importantly, switching to the libart backend will free us from this Xft problem.  

A set of nfonts can be found at http://developer.linuxstep.org/downloads/basic_fonts-2.tar.gz (legality uncertain, licensed under the GPL though)
Comment 5 Andrew Cooks (RETIRED) gentoo-dev 2004-01-18 04:33:03 UTC
The problem was fixed. Maybe a new bug should be filed for the libart stuff.

Please reopen if needed.