|
3 | 3 | {{- $version := get $.Version $gitRepoName }}
|
4 | 4 | {{- $gitRepoUrl := cat $.SOURCE_REPO "/libvirt/libvirt.git" | nospace }}
|
5 | 5 |
|
6 |
| -{{/* |
7 |
| - |
8 |
| -# image: {{ $.ImageName }}-alt |
9 |
| -# final: false |
10 |
| -# fromImage: base-alt-p11 |
11 |
| -# git: |
12 |
| -# - add: /images/{{ $.ImageName }}/ |
13 |
| -# to: / |
14 |
| -# includePaths: |
15 |
| -# - install-libvirt.sh |
16 |
| -# - patches |
17 |
| -# excludePaths: |
18 |
| -# - patches/README.md |
19 |
| -# stageDependencies: |
20 |
| -# install: |
21 |
| -# - '**/*' |
22 |
| -# setup: |
23 |
| -# - install-libvirt.sh |
24 |
| -# shell: |
25 |
| -# beforeInstall: |
26 |
| -# - | |
27 |
| -# apt-get update && apt-get install --yes \ |
28 |
| -# binutils \ |
29 |
| -# dmidecode \ |
30 |
| -# gcc-c++ \ |
31 |
| -# git \ |
32 |
| -# gettext \ |
33 |
| -# bash-completion \ |
34 |
| -# clang \ |
35 |
| -# ccache \ |
36 |
| -# make cmake \ |
37 |
| -# meson \ |
38 |
| -# ninja-build \ |
39 |
| -# libudev-devel \ |
40 |
| -# libpciaccess-devel \ |
41 |
| -# libyajl-devel \ |
42 |
| -# sanlock-devel \ |
43 |
| -# libpcap-devel \ |
44 |
| -# libnl-devel \ |
45 |
| -# libselinux-devel \ |
46 |
| -# iproute \ |
47 |
| -# iptables \ |
48 |
| -# iptables-nft \ |
49 |
| -# iptables-ipv6 \ |
50 |
| -# openvswitch \ |
51 |
| -# ebtables \ |
52 |
| -# libsasl2-devel \ |
53 |
| -# pkgconfig \ |
54 |
| -# libssh-devel \ |
55 |
| -# libssh2-devel \ |
56 |
| -# polkit kmod \ |
57 |
| -# qemu-img \ |
58 |
| -# lvm2 \ |
59 |
| -# libparted-devel \ |
60 |
| -# parted \ |
61 |
| -# libdevmapper-devel \ |
62 |
| -# ceph-devel \ |
63 |
| -# open-iscsi \ |
64 |
| -# libiscsi-devel \ |
65 |
| -# libglusterfs-devel \ |
66 |
| -# libnuma-devel \ |
67 |
| -# libcap-ng-devel \ |
68 |
| -# libcurl-devel \ |
69 |
| -# libaudit-devel \ |
70 |
| -# libfuse-devel \ |
71 |
| -# libnbd-devel \ |
72 |
| -# libblkid-devel \ |
73 |
| -# libgcrypt-devel \ |
74 |
| -# libgnutls-devel \ |
75 |
| -# libp11-kit-devel \ |
76 |
| -# libreadline-devel \ |
77 |
| -# libtasn1-devel \ |
78 |
| -# libattr-devel \ |
79 |
| -# libbsd-devel \ |
80 |
| -# libsystemd-devel \ |
81 |
| -# libuuid-devel \ |
82 |
| -# libjson-c-devel \ |
83 |
| -# systemtap-sdt-devel \ |
84 |
| -# systemd-container \ |
85 |
| -# attr \ |
86 |
| -# libacl-devel \ |
87 |
| -# glib2-devel \ |
88 |
| -# glibc-utils \ |
89 |
| -# libgio-devel \ |
90 |
| -# libxml2-devel \ |
91 |
| -# xml-utils \ |
92 |
| -# xsltproc \ |
93 |
| -# python3 python3-devel \ |
94 |
| -# python3-module-pytest \ |
95 |
| -# python3-module-docutils \ |
96 |
| -# python3-tools \ |
97 |
| -# python3-module-pip \ |
98 |
| -# polkit \ |
99 |
| -# libtirpc-devel \ |
100 |
| -# libsasl2-devel \ |
101 |
| -# wireshark-devel \ |
102 |
| -# tshark \ |
103 |
| -# zlib-devel \ |
104 |
| -# mdevctl \ |
105 |
| -# util-linux dmsetup pm-utils libclocale \ |
106 |
| -# libfuse3-devel libnuma libslirp-devel \ |
107 |
| -# libyajl-devel libselinux-devel |
108 |
| - |
109 |
| -# apt-get clean |
110 |
| -# rm --recursive --force /var/lib/apt/lists/ftp.altlinux.org* /var/cache/apt/*.bin |
111 |
| - |
112 |
| -# rm -f /usr/lib*/python3*/EXTERNALLY-MANAGED |
113 |
| -# rpm -qa | sort > /packages.txt |
114 |
| -# mkdir -p /usr/libexec/ccache-wrappers |
115 |
| -# ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/cc |
116 |
| -# ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/clang |
117 |
| -# ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/gcc |
118 |
| - |
119 |
| -# pip3 install black |
120 |
| - |
121 |
| -# install: |
122 |
| -# - | |
123 |
| -# export CCACHE_WRAPPERSDIR="/usr/libexec/ccache-wrappers" |
124 |
| -# export CCACHE_DIR="$CCACHE_BASEDIR/ccache" |
125 |
| -# export CCACHE_BASEDIR="$(pwd)" |
126 |
| -# export PATH="$CCACHE_WRAPPERSDIR:$PATH" |
127 |
| -# export MAKE="/usr/bin/make" |
128 |
| -# export NINJA="/usr/bin/ninja" |
129 |
| -# export PYTHON="/usr/bin/python3" |
130 |
| - |
131 |
| -# git clone --depth=1 --branch v{{ $version }} {{ $gitRepoUrl }} {{ $gitRepoName }}-{{ $version }} |
132 |
| - |
133 |
| -# cd {{ $gitRepoName }}-{{ $version }} |
134 |
| - |
135 |
| - |
136 |
| -# for p in /patches/*.patch ; do |
137 |
| -# echo -n "Apply ${p} ... " |
138 |
| -# git apply --ignore-space-change --ignore-whitespace ${p} && echo OK || (echo FAIL ; exit 1) |
139 |
| -# done |
140 |
| - |
141 |
| -# CFLAGS="-Wframe-larger-than=262144" meson setup build \ |
142 |
| -# -Dinit_script=systemd \ |
143 |
| -# -Dsystem=true \ |
144 |
| -# -Dremote_default_mode=direct \ |
145 |
| -# -Dpciaccess=enabled \ |
146 |
| -# -Dsasl=enabled \ |
147 |
| -# -Dpolkit=enabled \ |
148 |
| -# -Dlibssh=enabled \ |
149 |
| -# -Dlibssh2=enabled \ |
150 |
| -# -Dnumactl=enabled \ |
151 |
| -# -Dcapng=enabled \ |
152 |
| -# -Dudev=enabled \ |
153 |
| -# -Ddriver_network=enabled \ |
154 |
| -# -Ddriver_interface=enabled \ |
155 |
| -# -Ddriver_libvirtd=enabled \ |
156 |
| -# -Ddriver_qemu=enabled \ |
157 |
| -# -Ddriver_remote=enabled \ |
158 |
| -# -Dselinux=enabled \ |
159 |
| -# -Dselinux_mount=enabled \ |
160 |
| -# -Ddriver_esx=disabled -Dcurl=disabled \ |
161 |
| -# -Dfirewalld=disabled \ |
162 |
| -# -Dfirewalld_zone=disabled \ |
163 |
| -# -Ddocs=disabled \ |
164 |
| -# -Ddriver_ch=disabled \ |
165 |
| -# -Ddriver_lxc=disabled -Dlogin_shell=disabled \ |
166 |
| -# -Ddriver_openvz=disabled \ |
167 |
| -# -Ddriver_test=disabled \ |
168 |
| -# -Ddriver_vbox=disabled \ |
169 |
| -# -Ddriver_vmware=disabled \ |
170 |
| -# -Ddriver_hyperv=disabled -Dopenwsman=disabled \ |
171 |
| -# -Ddriver_vz=disabled \ |
172 |
| -# -Ddriver_bhyve=disabled \ |
173 |
| -# -Dvbox_xpcomc_dir=disabled \ |
174 |
| -# -Dwireshark_dissector=disabled \ |
175 |
| -# -Dwireshark_plugindir=disabled \ |
176 |
| -# -Dstorage_gluster=disabled -Dglusterfs=disabled \ |
177 |
| -# -Dstorage_fs=disabled \ |
178 |
| -# -Dstorage_lvm=disabled \ |
179 |
| -# -Dstorage_zfs=disabled \ |
180 |
| -# -Dstorage_vstorage=disabled \ |
181 |
| -# -Dstorage_rbd=disabled \ |
182 |
| -# -Dstorage_mpath=disabled \ |
183 |
| -# -Dstorage_iscsi=disabled \ |
184 |
| -# -Dstorage_iscsi_direct=disabled -Dlibiscsi=disabled \ |
185 |
| -# -Dlibiscsi=disabled |
186 |
| - |
187 |
| -# ninja -C build -j$(nproc) |
188 |
| - |
189 |
| -# setup: |
190 |
| -# - | |
191 |
| -# /install-libvirt.sh --version-num "{{ $version }}" \ |
192 |
| -# -s /{{ $gitRepoName }}-{{ $version }} \ |
193 |
| -# -d /BINS \ |
194 |
| -# -b build |
195 |
| -# --- |
196 |
| -*/}} |
197 |
| - |
198 | 6 | image: {{ $.ImageName }}
|
199 | 7 | final: false
|
200 | 8 | from: {{ $.Images.BASE_DEBIAN_BOOKWORM_SLIM }}
|
|
0 commit comments