Bug 593956 - Xft support is broken in 0.18-10.fc12
Summary: Xft support is broken in 0.18-10.fc12
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: torsmo
Version: rawhide
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Andreas Bierfert
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-05-20 06:50 UTC by Sven
Modified: 2010-05-28 18:06 UTC (History)
1 user (show)

Fixed In Version: torsmo-0.18-11.fc13
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-05-21 08:09:15 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
--enable-xft but xft-config not found: workaround with CFLAGS and XFT_LIBS (743 bytes, application/octet-stream)
2010-05-20 06:52 UTC, Sven
no flags Details

Description Sven 2010-05-20 06:50:07 UTC
torsmo-0.18-10.fc12 complains "Xft not enabled" when setting "use_xft yes" in $HOME/.torsmorc

How reproducible:

Put this in your .torsmorc
------------------------------ snip ----------------------
# Use Xft?
use_xft yes

# Xft font when Xft is enabled
xftfont Sans:size=12:Shadow=2

# Text alpha when using Xft
xftalpha 0.8
------------------------------ snap ----------------------

Actual results:
"Xft not enabled", torsmo uses fixed font

Expected results:
I was expecting torsmo to use some xft sans font

Additional info:
xft is manually enabled in torsmo.spec but xft-config is not found, so xft is disabled.

I worked around this by setting XFT_LIBS and CFLAGS in the environment before %configure

------------------------------ snip ----------------------
...
%build
CFLAGS="`pkg-config xft --cflags` -DXFT" ; export CFLAGS
XFT_LIBS=`pkg-config xft --libs` ; export XFT_LIBS
%configure --enable-xft --enable-proc-uptime --enable-seti \
--x-includes=%{_includedir} --x-libraries=%{_libdir}
make %{?_smp_mflags}
...
------------------------------ snap ----------------------

Patch agains torsmo.spec is attached.

Comment 1 Sven 2010-05-20 06:52:00 UTC
Created attachment 415321 [details]
--enable-xft but xft-config not found: workaround with CFLAGS and XFT_LIBS

Comment 2 Fedora Update System 2010-05-20 18:19:28 UTC
torsmo-0.18-11.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/torsmo-0.18-11.fc12

Comment 3 Fedora Update System 2010-05-20 18:20:17 UTC
torsmo-0.18-11.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/torsmo-0.18-11.fc13

Comment 4 Sven 2010-05-21 08:09:15 UTC
thank you very much. Good idea including %{optflags} into the CFLAGS.

Works for me and did not break my setup.

Comment 5 Fedora Update System 2010-05-28 18:02:57 UTC
torsmo-0.18-11.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 6 Fedora Update System 2010-05-28 18:06:47 UTC
torsmo-0.18-11.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.