Bug 95422 - pkg-config 0.29.1 check fails when building in mingw32+msys1
Summary: pkg-config 0.29.1 check fails when building in mingw32+msys1
Status: RESOLVED MOVED
Alias: None
Product: pkg-config
Classification: Unclassified
Component: src (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Windows (All)
: medium normal
Assignee: pkg-config
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-16 09:57 UTC by Elio Blanca
Modified: 2018-08-25 12:56 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Elio Blanca 2016-05-16 09:57:17 UTC
I'm trying to get a simple, clean build of pkg-config in a windows xp environment using mingw32 (not the newest mingw-W64) and msys1, with gcc-4.9.3 and binutils-2.25.1.
I enabled the '--with-internal-glib' option in order not to ship the final executable with huge several dll files. Build went ok, then when I launched 'make check' two tests failed:

[cut]
make[2]: Entering directory `/home/David/pkg-config-0.29.1/check'
PASS: check-cflags
PASS: check-libs
PASS: check-mixed-flags
PASS: check-non-l-flags
PASS: check-define-variable
PASS: check-libs-private
PASS: check-requires-private
PASS: check-circular-requires
PASS: check-includedir
PASS: check-conflicts
PASS: check-missing
PASS: check-special-flags
PASS: check-sort-order
PASS: check-duplicate-flags
PASS: check-whitespace
PASS: check-cmd-options
PASS: check-version
PASS: check-requires-version
PASS: check-print-options
../pkg-config.exe --variable=pc_path pkg-config :
'C:\MSYS_1\msys\1.0\home\David\pkg-config-0.29.1\lib\pkgconfig;C:\MSYS_1\msys\1.0\home\David\pkg-config-0.29.1\share\pkgconfig' != 'C:\MSYS_1\msys\1.0\home\David\pkg-config-0.29.1\.libs\lib\pkgconfig;C:\MSYS_1\msys\1.0\home\David\pkg-config-0.29.1\.libs\share\pkgconfig'
FAIL: check-path
PASS: check-sysroot
PASS: check-uninstalled
PASS: check-debug
PASS: check-gtk
PASS: check-tilde
PASS: check-relocatable
../pkg-config.exe --variable=prefix simple :
'C:/MSYS_1/msys/1.0/foo' != '/foo'
FAIL: check-variable-override
PASS: check-variables
[cut]

The code is from the vanilla tarball, maybe the git master has some latest useful fix? Can anybody help me fixing this?
Thank you
Elio
Comment 1 Dan Nicholson 2016-08-22 22:35:26 UTC
I don't think master has changed here, but I'm not sure there's actually a problem here. It might be more that the assumptions made in the tests don't quite hold in all the windows environments. I've had trouble handling all of those correctly.

Could you tell me the contents of the environment variable OSTYPE? I.e., "echo $OSTYPE"? Also, can you show the contents of the generated file check/config.sh? Thanks.
Comment 2 Elio Blanca 2016-08-29 08:32:36 UTC
Hi Dan,
$OSTYPE gives "msys" (without quotes) and here you can read the content of 'config.sh' from check/ subdir:


#
# Settings from the configure script
#

abs_srcdir=/home/David/pkg-config-0.29.1/check
top_srcdir=..
abs_top_srcdir=/home/David/pkg-config-0.29.1
abs_builddir=/home/David/pkg-config-0.29.1/check
top_builddir=..
abs_top_builddir=/home/David/pkg-config-0.29.1
prefix=/usr/local
exec_prefix=${prefix}
includedir=${prefix}/include
libdir=${exec_prefix}/lib
datarootdir=${prefix}/share
datadir=${datarootdir}
pc_path="/usr/local/lib/pkgconfig:/usr/lib/pkgconfig"
system_include_path="/usr/include"
system_library_path="/usr/lib:/lib"
list_indirect_deps=no
PACKAGE_VERSION=0.29.1
native_win32=yes
WINE=
Comment 3 GitLab Migration User 2018-08-25 12:56:52 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/pkg-config/pkg-config/issues/47.


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.