Debian Codegraph @

.gitlab-ci/container/fedora/x86_64_build.sh

raw symbols SCIP
1 #!/usr/bin/envscip-shell filesystem . . `/usr/bin/env`. bash
2 # shellcheck disable=SC1091
3
4 # When changing this file, you need to bump the following
5 # .gitlab-ci/image-tags.yml tags:
6 # FEDORA_X86_64_BUILD_TAG
7
8 set -e
9
10 . .gitlab-ci/setup-test-env.shscip-shell source . . `.gitlab-ci/setup-test-env.sh`.
11
12 set -o xtrace
13
14
15 EPHEMERAL=(
16 autoconf
17 automake
18 bzip2
19 cmake
20 git
21 libtool
22 "pkgconfig(epoxy)"
23 "pkgconfig(gbm)"
24 "pkgconfig(openssl)"
25 python3-pip
26 unzip
27 xz
28 )
29
30 DEPS=(
31 bison
32 ccache
33 clang-devel
34 flex
35 flatbuffers-compiler
36 gcc
37 gcc-c++
38 gettext
39 glslang
40 kernel-headers
41 libstdc++-static
42 llvm-devel
43 ninja-build
44 "pkgconfig(LLVMSPIRVLib)"
45 "pkgconfig(SPIRV-Tools)"
46 "pkgconfig(dri2proto)"
47 "pkgconfig(expat)"
48 "pkgconfig(flatbuffers)"
49 "pkgconfig(glproto)"
50 "pkgconfig(libclc)"
51 "pkgconfig(libelf)"
52 "pkgconfig(libglvnd)"
53 "pkgconfig(libva)"
54 "pkgconfig(pciaccess)"
55 "pkgconfig(vulkan)"
56 "pkgconfig(x11)"
57 "pkgconfig(x11-xcb)"
58 "pkgconfig(xcb)"
59 "pkgconfig(xcb-dri2)"
60 "pkgconfig(xcb-dri3)"
61 "pkgconfig(xcb-glx)"
62 "pkgconfig(xcb-present)"
63 "pkgconfig(xcb-randr)"
64 "pkgconfig(xcb-sync)"
65 "pkgconfig(xcb-xfixes)"
66 "pkgconfig(xdamage)"
67 "pkgconfig(xext)"
68 "pkgconfig(xfixes)"
69 "pkgconfig(xrandr)"
70 "pkgconfig(xshmfence)"
71 "pkgconfig(xtensor)"
72 "pkgconfig(xxf86vm)"
73 "pkgconfig(zlib)"
74 procps-ng
75 python-unversioned-command
76 python3-devel
77 python3-mako
78 python3-packaging
79 python3-ply
80 python3-pycparser
81 python3-yaml
82 spirv-tools-devel
83 spirv-llvm-translator-devel
84 vulkan-headers
85 which
86 )
87
88 dnf install -y --setopt=install_weak_deps=False "${DEPS[@]}" "${EPHEMERAL[@]}"
89
90
91 . .gitlab-ci/container/container_pre_build.shscip-shell source . . `.gitlab-ci/container/container_pre_build.sh`.
92
93
94 # dependencies where we want a specific version
95 export XORG_RELEASES=https://xorg.freedesktop.org/releases/individual
96
97 export XORGMACROS_VERSION=util-macros-1.19.0
98
99 curlscip-shell system . . curl. -L --retry 4 -f --retry-all-errors --retry-delay 60 \
100 -O $XORG_RELEASES/util/$XORGMACROS_VERSION.tar.bz2
101 tarscip-shell system . . tar. -xvf $XORGMACROS_VERSION.tar.bz2 && rmscip-shell system . . rm. $XORGMACROS_VERSION.tar.bz2
102 cd $XORGMACROS_VERSION; ./configure; makescip-shell system . . make. install; cd ..
103 rmscip-shell system . . rm. -rf $XORGMACROS_VERSION
104
105 . .gitlab-ci/container/install-meson.shscip-shell source . . `.gitlab-ci/container/install-meson.sh`.
106
107 . .gitlab-ci/container/build-rust.shscip-shell source . . `.gitlab-ci/container/build-rust.sh`. build
108
109 . .gitlab-ci/container/build-bindgen.shscip-shell source . . `.gitlab-ci/container/build-bindgen.sh`.
110
111 . .gitlab-ci/container/build-mold.shscip-shell source . . `.gitlab-ci/container/build-mold.sh`.
112
113 . .gitlab-ci/container/build-libdrm.shscip-shell source . . `.gitlab-ci/container/build-libdrm.sh`.
114
115 . .gitlab-ci/container/build-wayland.shscip-shell source . . `.gitlab-ci/container/build-wayland.sh`.
116
117
118 ############### Uninstall the build software
119
120 dnf remove -y "${EPHEMERAL[@]}"
121
122 . .gitlab-ci/container/container_post_build.shscip-shell source . . `.gitlab-ci/container/container_post_build.sh`.