bugThe FreeType Project - Bugs: bug #25814, pkg-config promotes already...

 
 

bug #25814: pkg-config promotes already fulfilled library dependency

Submitted by:  None
Submitted on:  Tue 10 Mar 2009 07:30:23 PM UTC  
 
Severity: 3 - NormalItem Group: Incorrect behaviour
Status: FixedPrivacy: Public
Assigned to: Werner LEMBERG <wl>Open/Closed: Closed
Planned Release: 2.3.9

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 12 Mar 2009 08:11:22 AM UTC, comment #3:

Thanks. I've adjusted the CVS accordingly.

Werner LEMBERG <wl>
Project AdministratorIn charge of this item.
Thu 12 Mar 2009 07:56:57 AM UTC, comment #2:

Just I've checked that Mac OS X linker does not
require the frameworks listed in @FT2_EXTRA_LIBS@,
when it links FT2 client objects (ftdump) with
shared library libfreetype.6.dylib. I've tested
that on Mac OS X 10.1 (lazy binding is not supported)
and 10.5 (lazy binding is supported).

Thus, @FT2_EXTRA_LIBS@ is essential only for
static linking (with libfreetype.a).

suzuki toshiya <mpsuzuki>
Project Administrator
Wed 11 Mar 2009 07:08:38 AM UTC, comment #1:

Applied, thanks.

Suzuki-san, am I right that @FT2_EXTRA_LIBS@ are needed
for both static and dynamic linking?

Werner LEMBERG <wl>
Project AdministratorIn charge of this item.
Tue 10 Mar 2009 07:30:23 PM UTC, original submission:

In /usr/lib/pkgconfig/freetype2.pc is the line
Libs: -L${libdir} -lfreetype -lz
The freetype library is correct here, but the dependency to zlib seems to be wrong for the shared version of the library. I would say that it is better to change it to:

- Libs: -L${libdir} -lfreetype -lz
+ Libs: -L${libdir} -lfreetype
+ Libs.private: -L${libdir} -lfreetype -lz

This will give the right dependencies for the static version when you call
pkg-config --static --libs freetype2
and for the shared version
pkg-config --libs freetype2

Those changes will hopefully remove maaaaany unused dependencies in graphical programs.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #17640:  nozlib-pkgconfig.patch added by None (472B - text/x-diff)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by mpsuzuki (Posted a comment)
  • -unavailable- added by wl (Posted a comment)
  • -unavailable- added by wl
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 11 Mar 2009 07:08:38 AM UTCwlStatusNone=>Fixed
      Assigned toNone=>wl
      Open/ClosedOpen=>Closed
      Planned ReleaseNone=>2.3.9
      Carbon-Copy-=>Added mpsuzuki
    Tue 10 Mar 2009 07:30:24 PM UTCNoneAttached File-=>Added nozlib-pkgconfig.patch, #17640

    Back to the top


    Powered by Savane 3.1-cleanup1