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

bugzilla at redhat.com bugzilla at redhat.com
Tue Apr 5 01:45:24 UTC 2011


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


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

Yaakov (Cygwin Ports) <yselkowitz at cygwin.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |yselkowitz at cygwin.com

--- Comment #5 from Yaakov (Cygwin Ports) <yselkowitz at cygwin.com> 2011-04-04 21:45:23 EDT ---
(In reply to comment #3)
> We need the unset command in the rpm macro, but it's not needed for the wrapper
> script. In fact, it's not only unneeded but might cause problems when configure
> scripts call <host-triplet>-pkg-config.
> 
> I would say another solution is rewriting i686-pc-mingw32-pkg-config script so
> it wouldn't call rpm --eval internally. With that we'd be able to get rid of
> the 'unset' command in the script, but keep it in the rpm macro.

Why not just remove the "unset PKG_CONFIG_PATH" from %_mingw32_pkg_config but
leave it in %_mingw32_env?  That way PKG_CONFIG_PATH will still be honoured
when building manually, such as the OP's example, but will be ignored when
building RPMs.

-- 
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