Bug 202366

Summary: freetype-config --libs returns invalid rpath.
Product: [Fedora] Fedora Reporter: Mamoru TASAKA <mtasaka>
Component: freetypeAssignee: Behdad Esfahbod <behdad>
Status: CLOSED RAWHIDE QA Contact: Brock Organ <borgan>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-08-13 21:02:51 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:

Description Mamoru TASAKA 2006-08-13 18:06:22 UTC
Description of problem:
executing "freetype-config --libs" shows "-L/usr/include -Wl,--rpath
-Wl,/usr/include -lfreetype", which contains a invalid rpath
"/usr/include".

Rebuiling ImageMagick with fedora-rpmdevtools fails because
rebuiling ImageMagick calls "freetype-config" in configure and 
uses the result, which annoys /usr/lib/rpm/check-rpaths 
when "/usr/lib/rpm/check-rpaths /usr/lib/rpm/check-buildroot" is called.

Version-Release number of selected component (if applicable):
freetype-devel-2.2.1-3

How reproducible:
100%

Steps to Reproduce:
1. execute "freetype-config --libs"
2.
3.
  
Actual results:
returns "-L/usr/include -Wl,--rpath -Wl,/usr/include -lfreetype",
which is not correct.

Expected results:
On FC5 (freetype-devel-2.1.10-5.2.1), it returns
"-lfreetype -lz"

Additional info:
/usr/bin/freetype-config includes the line:
libdir=`pkg-config --variable includedir freetype2`
This must be:
libdir=`pkg-config --variable libdir freetype2` , perhaps?

Comment 1 Mamoru TASAKA 2006-08-13 18:33:22 UTC
Even it is corrected so that "freetype-config --libs" returns
-L/usr/include -Wl,--rpath -Wl,/usr/lib -lfreetype", including a standard
rpath such as "/usr/lib" would not be recommended (I am not sure).

Comment 2 Matthias Clasen 2006-08-13 21:02:51 UTC
fixed in 2.2.1-4.fc6