Bug 202366 - freetype-config --libs returns invalid rpath.
Summary: freetype-config --libs returns invalid rpath.
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: freetype
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Behdad Esfahbod
QA Contact: Brock Organ
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-08-13 18:06 UTC by Mamoru TASAKA
Modified: 2007-11-30 22:11 UTC (History)
0 users

(edit)
Clone Of:
(edit)
Last Closed: 2006-08-13 21:02:51 UTC


Attachments (Terms of Use)

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


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