Bug 682823 - Bogus Requires: line in netcf.pc cause unnecessary direct library linkage in apps
Summary: Bogus Requires: line in netcf.pc cause unnecessary direct library linkage in ...
Keywords:
Status: CLOSED DUPLICATE of bug 662056
Alias: None
Product: Fedora
Classification: Fedora
Component: netcf
Version: 14
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Laine Stump
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-03-07 17:16 UTC by Daniel Berrangé
Modified: 2011-05-12 13:26 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-05-12 13:26:14 UTC
Type: ---


Attachments (Terms of Use)

Description Daniel Berrangé 2011-03-07 17:16:47 UTC
Description of problem:
The pkgconfig file for netcf includes a line:

   Requires: augeas >= 0.5.0 libxml-2.0 libxslt

The semantics of the 'Requires' line is that this lists deps that need to be included on the compiler command line in order to compile netcf.

 ie,  -I /usr/include/libxml2

This would only be required if  netcf.h actually exposed some part of augeas, libxml or libxslt in its public API. This is not the case, the use of these libraries is an entirely private implementation detail. Thus the 'Requires:' line should be killed.

NB if you want to support static linking with netcf you would want to change 'Requires' to "Requires.private", but I'd just not support static libs myself.

Version-Release number of selected component (if applicable):
netcf-0.1.7-1.fc14.x86_64

How reproducible:
Always

Steps to Reproduce:
1.$ pkg-config --libs --cflags netcf
2.
3.
  
Actual results:
-I/usr/include/libxml2  -lnetcf -laugeas -lxslt -lz -lm -lxml2  


Expected results:
-lnetcf


Additional info:

Comment 1 Laine Stump 2011-05-12 13:26:14 UTC

*** This bug has been marked as a duplicate of bug 662056 ***


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