Bug 593956

Summary: Xft support is broken in 0.18-10.fc12
Product: [Fedora] Fedora Reporter: Sven <hunderteins>
Component: torsmoAssignee: Andreas Bierfert <andreas.bierfert>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: andreas.bierfert
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: torsmo-0.18-11.fc13 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-05-21 08:09:15 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
--enable-xft but xft-config not found: workaround with CFLAGS and XFT_LIBS none

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.