Bug 2687

Summary: pgk-config does not always remove '-I/usr/include'
Product: pkg-config Reporter: Matthias Clasen <mclasen>
Component: srcAssignee: Scott James Remnant <scott>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: high    
Version: unspecified   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Matthias Clasen 2005-03-09 11:22:14 UTC
From https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=102991:

Description of problem:
pgk-config --cflags (by default) is supposed to remove '-I/usr/include'
from the output cflags, it does not always do this.

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

How reproducible:
Every time

Steps to Reproduce:
1. Run these commands
pkg-config --cflags gconfgtk
-> -I/usr/include/gconf/1 -I/usr/include ...

pkg-config --cflags gconf
-> -I/usr/include/gconf/1 -I/usr/include ...

pkg-config --cflags oaf
-> -I/usr/include ..
    
Actual results:
'-I/usr/include' is output

Expected results:
'-I/usr/include' is removed from the output.

Additional info:
PKG_CONFIG_ALLOW_SYSTEM_CFLAGS is not set.
Comment 1 Tollef Fog Heen 2005-04-02 05:22:46 UTC
Can you try again with a reasonably modern pkg-config?  0.14 is very old.

This may also happen if the binary doesn't ship a .pc file and pkg-config falls
back to using gnome-config, since that doesn't do stripping.

If you still can see the problem with a modern pkg-config, please reopen this
bug with a transcript where --debug is enabled.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.