Bug 4267

Summary: [PENDING] pkg-config creates wrong path for -uninstalled.pc files on mingw32
Product: pkg-config Reporter: j^ <j>
Component: srcAssignee: Tollef Fog Heen <tfheen>
Status: RESOLVED FIXED QA Contact:
Severity: critical    
Priority: high    
Version: unspecified   
Hardware: Other   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: replacing backslash with slash as it is also done in parse.c in scan_dir

Description j^ 2005-08-27 02:49:23 UTC
trying to use pkg-config on windows with mingw32, it failed.
using uninstalled sources adding the path to PKG_CONFIG_PATH,
i.e. using libogg in /home/j/src/ogg i get
export PKG_CONFIG_PATH=/home/j/src/ogg:/usr/local/lib/pkgconfig

pkg-config --cflags ogg
-IC:msys1.0homejsrcogg/include

this should be -I/home/j/src/ogg/include using the path i set
in PKG_CONFIG_PATH or any valid version of that.

(this is the same for 0.15 and 0.19)
Comment 1 j^ 2005-08-28 10:05:16 UTC
Created attachment 3083 [details] [review]
replacing backslash with slash as it is also done in parse.c in scan_dir

this way -uninstalled.pc files spit out working paths.
Comment 2 Tollef Fog Heen 2005-10-01 03:25:59 UTC
2005-10-01  Tollef Fog Heen  <tfheen@err.no>

        * pkg.c (scan_dir): Turn backslashes into slashes or poptParseArgvString()
        will eat them when ${prefix} has been expanded in parse_libs().
        Thanks to j^ for the patch.  Freedesktop #4267
Comment 3 Tollef Fog Heen 2005-10-16 23:21:31 UTC
0.20 has been released with a fix for this problem.

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.