Bug 214519 - pkg-config should process recursively Requires.static
Summary: pkg-config should process recursively Requires.static
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: pkgconfig
Version: 6
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Matthias Clasen
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-11-07 22:38 UTC by Patrice Dumas
Modified: 2007-11-30 22:11 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-03-30 05:43:38 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
FreeDesktop.org 8788 0 None None None Never

Description Patrice Dumas 2006-11-07 22:38:51 UTC
Description of problem:

pkg-config --libs --static should take into account Requires.static
recursively. For example if one have, in the .pc file 

Libs: -L${libdir} -ltests
Requires.private: x11

One get:
$ pkg-config --static --libs tests
-ltests -lX11 -lpthread

While, there is
$ pkg-config --static --libs x11
-lX11 -lpthread -lXau -lXdmcp

One should have
$ pkg-config --static --libs tests
-ltests -lX11 -lpthread -lXau -lXdmcp

in the x11.pc there is
Requires.private: xau xdmcp
Libs.private: -lpthread

so -lpthread is taken into account, while Requires.private are
not taken into account.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Matthias Clasen 2007-01-24 15:09:28 UTC
True, but do we want to encourage static linking by fixing this ?

Comment 2 Rex Dieter 2007-01-24 15:12:28 UTC
It's the opposite, imo.  dynamic linking is harmed/influenced by
static-link-only bits in .pc files (without the patch)

Comment 3 Rex Dieter 2007-01-24 15:13:13 UTC
oops, ignore me, brain still stuck on last bug submitted wrt pkg-config. (:

Comment 4 Rex Dieter 2007-01-24 15:17:59 UTC
Seems to be reported upstream:
https://bugs.freedesktop.org/show_bug.cgi?id=8788
with (unverified) patch.

Comment 5 Matthias Clasen 2007-03-30 05:43:38 UTC
Fixed in 0.21-5.fc7


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