https://bugzilla.novell.com/show_bug.cgi?id=671953

https://bugzilla.novell.com/show_bug.cgi?id=671953#c0


           Summary: Cannot override PKG_CONFIG_PATH with Mono's pkg-config
    Classification: Mono
           Product: Mono: Runtime
           Version: 2.10.x
          Platform: x86-64
        OS/Version: Mac OS X 10.6
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: packaging
        AssignedTo: [email protected]
        ReportedBy: [email protected]
         QAContact: [email protected]
          Found By: ---
           Blocker: ---


The pkg-config included with Mono on Mac has a script which sets pkg-config,
presumably to relocate it. Unfortunately, it inserts its values at the
beginning of PKG_CONFIG_PATH, which means that it's impossible to override
these pkgconfig paths.

I would suggest substituting it at the end:

PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/Library/Frameworks/Mono.framework/Versions/2.8.2/lib/pkgconfig:/Library/Frameworks/Mono.framework/Versions/2.8.2/share/pkgconfig

Or instead overriding PKG_CONFIG_LIBDIR (if empty), which overrides the paths
built into the pkgconfig binary:

if [ -z "$PKG_CONFIG_LIBDIR" ]; then
    export
PKG_CONFIG_LIBDIR=/Library/Frameworks/Mono.framework/Versions/2.8.2/lib/pkgconfig:/Library/Frameworks/Mono.framework/Versions/2.8.2/share/pkgconfig:/usr/lib/pkgconfig:/usr/share
 
fi

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to