[Bug 688171] New: i686-pc-mingw32-pkg-config shouldn't unset PKG_CONFIG_PATH

bugzilla at redhat.com bugzilla at redhat.com
Wed Mar 16 14:23:41 UTC 2011


Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.

Summary: i686-pc-mingw32-pkg-config shouldn't unset PKG_CONFIG_PATH

https://bugzilla.redhat.com/show_bug.cgi?id=688171

           Summary: i686-pc-mingw32-pkg-config shouldn't unset
                    PKG_CONFIG_PATH
           Product: Fedora
           Version: rawhide
          Platform: Unspecified
        OS/Version: Unspecified
            Status: NEW
          Severity: unspecified
          Priority: unspecified
         Component: mingw32-filesystem
        AssignedTo: rjones at redhat.com
        ReportedBy: bpeeluk at yahoo.co.uk
         QAContact: extras-qa at fedoraproject.org
                CC: rjones at redhat.com, kalev at smartlink.ee,
                    erik-fedora at vanpienbroek.nl,
                    fedora-mingw at lists.fedoraproject.org, drizt at land.ru
    Classification: Fedora


The MingW32 compiler on Fedora includes a wrapper script for pkg-config called
i686-pc-mingw32-pkg-config that sets PKG_CONFIG_LIBDIR. Presumably the idea of
this is to prevent pkg-config from picking up the native system .pc files when
cross compiling for Windows. However the script also does “unset
PKG_CONFIG_PATH”. This makes it very difficult to use pkg-config when using a
custom cross-compile environment where all of your dependencies are installed
in a non-standard prefix (typically somewhere in your home directory). I can't
see why the script would want to unset PKG_CONFIG_PATH as this won't be
typically set on a normal system so it's unlikely to pick up any native .pc
files. A developer would usually want to explicitly set this variable when
building in a custom environment so he or she would know to set it to only
include the Win32 environment path.

This was causing problems when cross-compiling Clutter on Fedora systems.
Clutter includes a build script for cross-compiling that installs all of
Clutter's dependencies into a custom prefix and then tries to set
PKG_CONFIG_PATH to point to this prefix. However Fedora's pkg-config wrapper
script prevents this variable from being passed to pkg-config. Clutter's build
script now explicitly includes its own wrapper for pkg-config to work around
Fedora.

I think the solution is to just remove the line that unsets PKG_CONFIG_PATH.

-- 
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the mingw mailing list