summaryrefslogtreecommitdiff
path: root/.gitlab-ci
diff options
context:
space:
mode:
authorMichel Dänzer <mdaenzer@redhat.com>2020-07-03 17:27:42 +0200
committerOlivier Fourdan <ofourdan@redhat.com>2022-01-18 12:09:52 +0100
commit46675b1038f60542bf88f189bd7ab6445f9fe058 (patch)
treea32f5a5c14adc590617cf57812a864a189dfd7f0 /.gitlab-ci
parent16c4ff7806dedbb749017a69e0096bcdd25311ca (diff)
Drop Xwin DDX and x86 MinGW-w64 cross build
(cherry picked from commit 8f480147f6b63ebc51b8dcb80e55c7b8f91dad98) This partly reverts commit d3933a24d1abdcb56f45e6076cb84a1110674a8a.
Diffstat (limited to '.gitlab-ci')
-rw-r--r--.gitlab-ci/cross-i686-w64-mingw32.txt20
-rwxr-xr-x.gitlab-ci/cross-prereqs-build.sh79
-rw-r--r--.gitlab-ci/debian-install.sh6
3 files changed, 0 insertions, 105 deletions
diff --git a/.gitlab-ci/cross-i686-w64-mingw32.txt b/.gitlab-ci/cross-i686-w64-mingw32.txt
deleted file mode 100644
index 1c04f6547..000000000
--- a/.gitlab-ci/cross-i686-w64-mingw32.txt
+++ /dev/null
@@ -1,20 +0,0 @@
-[binaries]
-c = 'i686-w64-mingw32-gcc'
-cpp = 'i686-w64-mingw32-g++'
-ar = 'i686-w64-mingw32-ar'
-strip = 'i686-w64-mingw32-strip'
-pkgconfig = '/usr/local/bin/i686-w64-mingw32-pkg-config'
-windres = 'i686-w64-mingw32-windres'
-exe_wrapper = 'wine'
-
-[properties]
-# Directory that contains 'bin', 'lib', etc for the toolchain
-root = '/usr/i686-w64-mingw32'
-# Directory that contains 'bin', 'lib', etc which have been cross-compiled
-sys_root = '/usr/i686-w64-mingw32'
-
-[host_machine]
-system = 'windows'
-cpu_family = 'x86'
-cpu = 'i686'
-endian = 'little'
diff --git a/.gitlab-ci/cross-prereqs-build.sh b/.gitlab-ci/cross-prereqs-build.sh
deleted file mode 100755
index 4596667a1..000000000
--- a/.gitlab-ci/cross-prereqs-build.sh
+++ /dev/null
@@ -1,79 +0,0 @@
-#!/bin/bash
-
-set -e
-set -o xtrace
-
-HOST=$1
-
-# Debian's cross-pkg-config wrappers are broken for MinGW targets, since
-# dpkg-architecture doesn't know about MinGW target triplets.
-# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=930492
-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 \$@
-EOF
-chmod +x /usr/local/bin/${HOST}-pkg-config
-
-# when cross-compiling, some autoconf tests cannot be run:
-
-# --enable-malloc0returnsnull
-export xorg_cv_malloc0_returns_null=yes
-
-build() {
- url=$1
- commit=$2
- config=$3
-
- name=$(basename ${url} .git)
-
- if [[ $commit =~ ^[[:xdigit:]]{1,}$ ]]
- then
- git clone ${url} ${name}
- git -C ${name} checkout ${commit}
- else
- git clone --depth 1 --branch ${commit:-master} --recurse-submodules -c advice.detachedHead=false ${url} ${name}
- fi
-
- pushd ${name}
- NOCONFIGURE=1 ./autogen.sh || ./.bootstrap
- ./configure ${config} --host=${HOST} --prefix= --with-sysroot=/usr/${HOST}/
- make -j$(nproc)
- DESTDIR=/usr/${HOST} make install
-
- popd
- rm -rf ${OLDPWD}
-}
-
-build 'https://gitlab.freedesktop.org/pixman/pixman.git' 'pixman-0.38.4'
-build 'https://gitlab.freedesktop.org/xorg/lib/pthread-stubs.git' '0.4'
-# we can't use the xorgproto pkgconfig files from /usr/share/pkgconfig, because
-# these would add -I/usr/include to CFLAGS, which breaks cross-compilation
-build 'https://gitlab.freedesktop.org/xorg/proto/xorgproto.git' 'xorgproto-2021.4.99.2' '--datadir=/lib'
-build 'https://gitlab.freedesktop.org/xorg/lib/libXau.git' 'libXau-1.0.9'
-build 'https://gitlab.freedesktop.org/xorg/proto/xcbproto.git' 'xcb-proto-1.14'
-build 'https://gitlab.freedesktop.org/xorg/lib/libxcb.git' 'libxcb-1.14'
-build 'https://gitlab.freedesktop.org/xorg/lib/libxtrans.git' 'xtrans-1.4.0'
-# the default value of keysymdefdir is taken from the includedir variable for
-# xproto, which isn't adjusted by pkg-config for the sysroot
-build 'https://gitlab.freedesktop.org/xorg/lib/libX11.git' 'libX11-1.6.9' "--with-keysymdefdir=/usr/${HOST}/include/X11"
-build 'https://gitlab.freedesktop.org/xorg/lib/libxkbfile.git' 'libxkbfile-1.1.0'
-# freetype needs an explicit --build to know it's cross-compiling
-# disable png as freetype tries to use libpng-config, even when cross-compiling
-build 'git://git.savannah.gnu.org/freetype/freetype2.git' 'VER-2-10-1' "--build=$(cc -dumpmachine) --with-png=no"
-build 'https://gitlab.freedesktop.org/xorg//font/util.git' 'font-util-1.3.2'
-build 'https://gitlab.freedesktop.org/xorg/lib/libfontenc.git' 'libfontenc-1.1.4'
-build 'https://gitlab.freedesktop.org/xorg/lib/libXfont.git' 'libXfont2-2.0.3'
-build 'https://gitlab.freedesktop.org/xorg/lib/libXdmcp.git' 'libXdmcp-1.1.3'
-build 'https://gitlab.freedesktop.org/xorg/lib/libXfixes.git' 'libXfixes-5.0.3'
-build 'https://gitlab.freedesktop.org/xorg/lib/libxcb-util.git' '0.4.0'
-build 'https://gitlab.freedesktop.org/xorg/lib/libxcb-image.git' '0.4.0'
-build 'https://gitlab.freedesktop.org/xorg/lib/libxcb-wm.git' '0.4.1'
-
-# workaround xcb_windefs.h leaking all Windows API types into X server build
-# (some of which clash which types defined by Xmd.h) XXX: This is a bit of a
-# hack, as it makes this header depend on xorgproto. Maybe an upstreamable
-# fix would involve a macro defined in the X server (XFree86Server?
-# XCB_NO_WINAPI?), which makes xcb_windefs.h wrap things like XWinsock.h
-# does???
-sed -i s#winsock2#X11/Xwinsock# /usr/${HOST}/include/xcb/xcb_windefs.h
diff --git a/.gitlab-ci/debian-install.sh b/.gitlab-ci/debian-install.sh
index 89ca49e14..dbb361785 100644
--- a/.gitlab-ci/debian-install.sh
+++ b/.gitlab-ci/debian-install.sh
@@ -25,9 +25,7 @@ apt-get install -y \
build-essential \
ca-certificates \
ccache \
- dpkg-dev \
flex \
- gcc-mingw-w64-i686 \
git \
libaudit-dev \
libbsd-dev \
@@ -89,10 +87,8 @@ apt-get install -y \
libxt-dev \
libxtst-dev \
libxv-dev \
- libz-mingw-w64-dev \
mesa-common-dev \
meson \
- mingw-w64-tools \
nettle-dev \
pkg-config \
python3-mako \
@@ -103,8 +99,6 @@ apt-get install -y \
xtrans-dev \
xutils-dev
-.gitlab-ci/cross-prereqs-build.sh i686-w64-mingw32
-
cd /root
# xserver requires libxcvt