ci: fix w64 cross build pkg-config path

pkg-config path is wrong: it's using /usr/share/pkgconfig from the *host*
instead of sysroot, which is leading to wrong pathes.

Fixes: d3933a24d1 - CI: Add an x86 MinGW-w64 cross build
Backport-Of: https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1655
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult 2024-08-14 11:42:59 +02:00
parent 68129d7369
commit 934a299066
2 changed files with 3 additions and 2 deletions

View File

@ -11,7 +11,8 @@ variables:
FDO_UPSTREAM_REPO: xorg/xserver
FDO_DISTRIBUTION_VERSION: buster-slim
FDO_DISTRIBUTION_EXEC: 'env FDO_CI_CONCURRENT=${FDO_CI_CONCURRENT} bash .gitlab-ci/debian-install.sh'
FDO_DISTRIBUTION_TAG: "2021-07-09"
FDO_DISTRIBUTION_TAG: "2024-08-23-21.1-fix-cross"
MESON_BUILDDIR: "build"
include:
- project: 'freedesktop/ci-templates'

View File

@ -11,7 +11,7 @@ HOST=$1
cat >/usr/local/bin/${HOST}-pkg-config <<EOF
#!/bin/sh
PKG_CONFIG_SYSROOT_DIR=/usr/${HOST} PKG_CONFIG_LIBDIR=/usr/${HOST}/lib/pkgconfig:/usr/share/pkgconfig pkg-config \$@
PKG_CONFIG_SYSROOT_DIR=/usr/${HOST} PKG_CONFIG_LIBDIR=/usr/${HOST}/lib/pkgconfig:/usr/${HOST}/share/pkgconfig pkg-config \$@
EOF
chmod +x /usr/local/bin/${HOST}-pkg-config