Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 14664 - pekwm port build failure
Summary: pekwm port build failure
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Brad Cowan (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-28 03:25 UTC by Mike Gardiner (RETIRED)
Modified: 2003-02-16 19:58 UTC (History)
1 user (show)

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


Attachments
Xft.h patch (Xft.h.patch,134 bytes, patch)
2003-01-28 03:27 UTC, Mike Gardiner (RETIRED)
Details | Diff
ft2build.h patch (ft2build.h.patch,100 bytes, patch)
2003-01-28 03:28 UTC, Mike Gardiner (RETIRED)
Details | Diff
ftheader.h patch (ftheader.h.patch,158 bytes, patch)
2003-01-28 03:28 UTC, Mike Gardiner (RETIRED)
Details | Diff
fftypes.h patch (fttypes.h.patch,72 bytes, patch)
2003-01-28 03:28 UTC, Mike Gardiner (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Gardiner (RETIRED) gentoo-dev 2003-01-28 03:25:57 UTC
the pekwm port as is won't build on my system, it fails with the following error -

g++ -mcpu=i686 -O2 -pipe  -I/usr/X11R6/include  -DSHAPE -DXFT -DXINERAMA  -DMENU    
S -DKEYS -DHARBOUR -DPREFIX=\"/usr\" -DDATADIR=\"/usr/share/pekwm\" -Wall -c  th
eme.cc -o theme.o
In file included from font.hh:28,
                 from theme.hh:27,
                 from theme.cc:22:
/usr/X11R6/include/X11/Xft/Xft.h:52: syntax error before `;' token
/usr/X11R6/include/X11/Xft/Xft.h:86: 'FT_UInt' is used as a type, but is not
defined as a type.
/usr/X11R6/include/X11/Xft/Xft.h:93: 'FT_UInt' is used as a type, but is not
defined as a type.
/usr/X11R6/include/X11/Xft/Xft.h:190: parse error before `*' token
/usr/X11R6/include/X11/Xft/Xft.h:295: parse error before `*' token
/usr/X11R6/include/X11/Xft/Xft.h:354: parse error before `*' token
/usr/X11R6/include/X11/Xft/Xft.h:393: parse error before `*' token
/usr/X11R6/include/X11/Xft/Xft.h:399: parse error before `*' token
/usr/X11R6/include/X11/Xft/Xft.h:408: type specifier omitted for parameter `FT_UInt'
/usr/X11R6/include/X11/Xft/Xft.h:408: parse error before `,' token
/usr/X11R6/include/X11/Xft/Xft.h:418: parse error before `*' token
/usr/X11R6/include/X11/Xft/Xft.h:461: parse error before `*' token
make[1]: *** [theme.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/var/tmp/portage/pekwm-0.1.2/work/pekwm-0.1.2/src'
make: *** [all] Error 2

It looks like some sort of XFT problem, and I've tried with both FreeType's 1
and 2 installed. So far I've found two fixes. The first is simply to remove the
--enable-xft from the ebuild, and build without XFT support. This way it builds
and runs without trouble, and without XFT support.

The second solution is to patch the following files (mostly core X and FreeType
files) to allow pekwm to build with XFT support, as follows.
Comment 1 Mike Gardiner (RETIRED) gentoo-dev 2003-01-28 03:27:39 UTC
Created attachment 7701 [details, diff]
Xft.h patch
Comment 2 Mike Gardiner (RETIRED) gentoo-dev 2003-01-28 03:28:13 UTC
Created attachment 7702 [details, diff]
ft2build.h patch
Comment 3 Mike Gardiner (RETIRED) gentoo-dev 2003-01-28 03:28:37 UTC
Created attachment 7703 [details, diff]
ftheader.h patch
Comment 4 Mike Gardiner (RETIRED) gentoo-dev 2003-01-28 03:28:52 UTC
Created attachment 7704 [details, diff]
fftypes.h patch
Comment 5 Mike Gardiner (RETIRED) gentoo-dev 2003-01-28 03:29:23 UTC
The locations of the files to be patched are:

/usr/X11R6/include/X11/Xft/Xft.h
/usr/include/ft2build.h
/usr/X11R6/include/freetype2/freetype/config/ftheader.h
/usr/X11R6/include/freetype2/freetype/fttypes.h
Comment 6 SpanKY gentoo-dev 2003-01-28 03:31:50 UTC

*** This bug has been marked as a duplicate of 13109 ***
Comment 7 SpanKY gentoo-dev 2003-01-28 03:33:06 UTC
bleh, wrong thing 
Comment 8 Martin Schlemmer (RETIRED) gentoo-dev 2003-02-03 14:12:22 UTC
Brad, seems like this puppy dont like Xft2 (guessing here).  I however do not
think patching Xft.h and co is an good idea :/
Comment 9 Brad Cowan (RETIRED) gentoo-dev 2003-02-03 23:39:02 UTC
Exactly what's wrong...there is no support for XFT2, and I'm definately no XFT expert. I also know patching our XFT libs is _NOT_ the way to solve this issue.  I've been in touch with the author in IRC, and he's feeling a little overwhelmed because he basically is doing this project himself. Right now there are no plans on adding XFT2 support, and he asked if we could come up with any kind of patch he would gladly accept with open arms :)
Comment 10 Martin Schlemmer (RETIRED) gentoo-dev 2003-02-04 18:55:48 UTC
Add the 'pkg-config xft' check for now?

--------------------
if pkg-config xft
then
      myconf="${myconf} --disable-xft"
else
      myconf="${myconf} --enable-xft"
fi
Comment 11 Brad Cowan (RETIRED) gentoo-dev 2003-02-06 01:10:57 UTC
hmm sorry for the non-wrapping comment, I've never had that problem with mozilla before, I'm wondering if there's a problem with the new bugzilla?
Comment 12 Brad Cowan (RETIRED) gentoo-dev 2003-02-06 01:20:57 UTC
grrrrr I don't know whats up with the wrapping, but I'm gonna add the pkg-config xft check :)
Comment 13 Brad Cowan (RETIRED) gentoo-dev 2003-02-16 19:58:50 UTC
added the check to diable xft2