]> git.pld-linux.org Git - packages/libvirt.git/blame - libvirt-path-options.patch
- updated to 6.10.0
[packages/libvirt.git] / libvirt-path-options.patch
CommitLineData
40a24f8b
JB
1--- libvirt-6.10.0/meson.build.orig 2020-12-01 09:51:29.000000000 +0100
2+++ libvirt-6.10.0/meson.build 2022-06-15 21:02:52.949418900 +0200
3@@ -943,17 +943,20 @@ optional_programs = [
4 ]
5
6 foreach name : optional_programs
7+ varname = name.underscorify()
8+ prog_path = get_option('@0@_path'.format(varname))
9+ if prog_path == ''
10 prog = find_program(name, required: false, dirs: libvirt_sbin_path)
11- varname = name.underscorify()
12 if prog.found()
13 prog_path = prog.path()
14 else
15 prog_path = name
16 endif
17+ endif
18
19 conf.set_quoted(varname.to_upper(), prog_path)
20 conf.set_quoted('@0@_PATH'.format(varname.to_upper()), prog_path)
21- set_variable('@0@_prog'.format(varname), prog)
22+ set_variable('@0@_path'.format(varname), prog_path)
23 endforeach
24
25
26@@ -1085,9 +1088,15 @@ endif
27 libparted_version = '1.8.0'
28 libparted_dep = dependency('libparted', version: '>=' + libparted_version, required: false)
29 if libparted_dep.found()
30+ parted_path = get_option('parted_path')
31+ if parted_path == ''
32 parted_prog = find_program('parted', required: false, dirs: libvirt_sbin_path)
33 if parted_prog.found()
34- conf.set_quoted('PARTED', parted_prog.path())
35+ parted_path = parted_prog.path()
36+ endif
37+ endif
38+ if parted_path != ''
39+ conf.set_quoted('PARTED', parted_path)
40 else
41 libparted_dep = dependency('', required: false)
42 endif
43@@ -1725,6 +1734,8 @@ if not get_option('driver_qemu').disable
44 conf.set_quoted('QEMU_USER', qemu_user)
45 conf.set_quoted('QEMU_GROUP', qemu_group)
46
47+ qemu_bridge_path = get_option('qemu_bridge_path')
48+ if qemu_bridge_path == ''
49 qemu_bridge_prog = find_program(
50 'qemu-bridge-helper',
51 dirs: [ '/usr/libexec', '/usr/lib/qemu', '/usr/lib' ],
52@@ -1735,8 +1746,11 @@ if not get_option('driver_qemu').disable
53 else
54 qemu_bridge_path = '/usr/libexec/qemu-bridge-helper'
55 endif
56+ endif
57 conf.set_quoted('QEMU_BRIDGE_HELPER', qemu_bridge_path)
58
59+ qemu_pr_path = get_option('qemu_pr_path')
60+ if qemu_pr_path == ''
61 qemu_pr_prog = find_program(
62 'qemu-pr-helper',
63 dirs: [ '/usr/bin', '/usr/libexec' ],
64@@ -1747,8 +1761,11 @@ if not get_option('driver_qemu').disable
65 else
66 qemu_pr_path = '/usr/bin/qemu-pr-helper'
67 endif
68+ endif
69 conf.set_quoted('QEMU_PR_HELPER', qemu_pr_path)
70
71+ qemu_slirp_path = get_option('qemu_slirp_path')
72+ if qemu_slirp_path == ''
73 qemu_slirp_prog = find_program(
74 'slirp-helper',
75 dirs: [ '/usr/bin', '/usr/libexec' ],
76@@ -1759,8 +1776,11 @@ if not get_option('driver_qemu').disable
77 else
78 qemu_slirp_path = '/usr/bin/slirp-helper'
79 endif
80+ endif
81 conf.set_quoted('QEMU_SLIRP_HELPER', qemu_slirp_path)
82
83+ qemu_dbus_daemon_path = get_option('qemu_dbus_daemon_path')
84+ if qemu_dbus_daemon_path == ''
85 qemu_dbus_daemon_prog = find_program(
86 'dbus-daemon',
87 dirs: [ '/usr/bin', '/usr/libexec' ],
88@@ -1771,6 +1791,7 @@ if not get_option('driver_qemu').disable
89 else
90 qemu_dbus_daemon_path = '/usr/bin/dbus-daemon'
91 endif
92+ endif
93 conf.set_quoted('QEMU_DBUS_DAEMON', qemu_dbus_daemon_path)
94 endif
95 endif
96@@ -1850,11 +1871,29 @@ if conf.has('WITH_LIBVIRTD')
97 endif
98
99 if fs_enable
100+ mount_path = get_option('mount_path')
101+ if mount_path == ''
102 mount_prog = find_program('mount', required: get_option('storage_fs'), dirs: libvirt_sbin_path)
103+ if mount_prog.found()
104+ mount_path = mount_prog.path()
105+ endif
106+ endif
107+ umount_path = get_option('umount_path')
108+ if umount_path == ''
109 umount_prog = find_program('umount', required: get_option('storage_fs'), dirs: libvirt_sbin_path)
110+ if umount_prog.found()
111+ umount_path = umount_prog.path()
112+ endif
113+ endif
114+ mkfs_path = get_option('mkfs_path')
115+ if mkfs_path == ''
116 mkfs_prog = find_program('mkfs', required: get_option('storage_fs'), dirs: libvirt_sbin_path)
117+ if mkfs_prog.found()
118+ mkfs_path = mkfs_prog.path()
119+ endif
120+ endif
121
122- if not mount_prog.found() or not umount_prog.found() or not mkfs_prog.found()
123+ if mount_path == '' or umount_path == '' or mkfs_path == ''
124 fs_enable = false
125 endif
126 endif
127@@ -1863,15 +1902,17 @@ if conf.has('WITH_LIBVIRTD')
128 use_storage = true
129
130 conf.set('WITH_STORAGE_FS', 1)
131- conf.set_quoted('MOUNT', mount_prog.path())
132- conf.set_quoted('UMOUNT', umount_prog.path())
133- conf.set_quoted('MKFS', mkfs_prog.path())
134+ conf.set_quoted('MOUNT', mount_path)
135+ conf.set_quoted('UMOUNT', umount_path)
136+ conf.set_quoted('MKFS', mkfs_path)
137
138+ showmount_path = get_option('showmount_path')
139+ if showmount_path == ''
140 showmount_prog = find_program('showmount', required: false, dirs: libvirt_sbin_path)
141- showmount_path = ''
142 if showmount_prog.found()
143 showmount_path = showmount_prog.path()
144 endif
145+ endif
146 conf.set_quoted('SHOWMOUNT', showmount_path)
147 endif
148 endif
149@@ -1883,7 +1924,7 @@ if conf.has('WITH_LIBVIRTD')
150 error('Need glusterfs (libgfapi) for gluster storage driver')
151 endif
152
153- if not get_option('storage_iscsi').disabled() and iscsiadm_prog.found()
154+ if not get_option('storage_iscsi').disabled() and iscsiadm_path != ''
155 use_storage = true
156 conf.set('WITH_STORAGE_ISCSI', 1)
157 elif get_option('storage_iscsi').enabled()
158@@ -1906,11 +1947,17 @@ if conf.has('WITH_LIBVIRTD')
159 'pvs', 'vgs', 'lvs',
160 ]
161 foreach name : lvm_progs
162+ prog_path = get_option('@0@_path'.format(name))
163+ if prog_path == ''
164+ prog = find_program(name, required: get_option('storage_lvm'), dirs: libvirt_sbin_path)
165+ if prog.found()
166+ prog_path = prog.path()
167+ endif
168+ endif
169 set_variable(
170- '@0@_prog'.format(name),
171- find_program(name, required: get_option('storage_lvm'), dirs: libvirt_sbin_path)
172+ '@0@_path'.format(name), prog_path
173 )
174- if not get_variable('@0@_prog'.format(name)).found()
175+ if prog_path == ''
176 lvm_enable = false
177 endif
178 endforeach
179@@ -1920,7 +1967,7 @@ if conf.has('WITH_LIBVIRTD')
180 conf.set('WITH_STORAGE_LVM', 1)
181
182 foreach name : lvm_progs
183- conf.set_quoted(name.to_upper(), get_variable('@0@_prog'.format(name)).path())
184+ conf.set_quoted(name.to_upper(), get_variable('@0@_path'.format(name)))
185 endforeach
186 endif
187 endif
188@@ -1945,12 +1992,17 @@ if conf.has('WITH_LIBVIRTD')
189 endif
190
191 if not get_option('storage_sheepdog').disabled()
192+ sheepdogcli_path = get_option('sheepdogcli_path')
193+ if sheepdogcli_path == ''
194 sheepdogcli_prog = find_program(['collie', 'dog'], required: get_option('storage_sheepdog'), dirs: libvirt_sbin_path)
195-
196 if sheepdogcli_prog.found()
197+ sheepdogcli_path = sheepdogcli_prog.path()
198+ endif
199+ endif
200+ if sheepdogcli_path != ''
201 use_storage = true
202 conf.set('WITH_STORAGE_SHEEPDOG', 1)
203- conf.set_quoted('SHEEPDOGCLI', sheepdogcli_prog.path())
204+ conf.set_quoted('SHEEPDOGCLI', sheepdogcli_path)
205 endif
206 endif
207
208@@ -1958,11 +2010,17 @@ if conf.has('WITH_LIBVIRTD')
209 vstorage_enable = true
210
211 foreach name : ['vstorage', 'vstorage-mount', 'umount']
212+ prog_path = get_option('@0@_path'.format(name.underscorify()))
213+ if prog_path == ''
214+ prog = find_program(name, required: get_option('storage_vstorage'), dirs: libvirt_sbin_path)
215+ if prog.found()
216+ prog_path = prog.path()
217+ endif
218+ endif
219 set_variable(
220- '@0@_prog'.format(name.underscorify()),
221- find_program(name, required: get_option('storage_vstorage'), dirs: libvirt_sbin_path)
222+ '@0@_path'.format(name.underscorify()), prog_path
223 )
224- if not get_variable('@0@_prog'.format(name.underscorify())).found()
225+ if prog_path == ''
226 vstorage_enable = false
227 endif
228 endforeach
229@@ -1971,7 +2029,7 @@ if conf.has('WITH_LIBVIRTD')
230 use_storage = true
231 conf.set('WITH_STORAGE_VSTORAGE', 1)
232 foreach name : ['vstorage', 'vstorage-mount', 'umount']
233- path = get_variable('@0@_prog'.format(name.underscorify())).path()
234+ path = get_variable('@0@_path'.format(name.underscorify()))
235 conf.set_quoted(name.to_upper(), path)
236 endforeach
237 endif
238@@ -1980,11 +2038,17 @@ if conf.has('WITH_LIBVIRTD')
239 if not get_option('storage_zfs').disabled()
240 zfs_enable = true
241 foreach name : ['zfs', 'zpool']
242+ prog_path = get_option('@0@_path'.format(name))
243+ if prog_path == ''
244+ prog = find_program(name, required: get_option('storage_zfs'), dirs: libvirt_sbin_path)
245+ if prog.found()
246+ prog_path = prog.path()
247+ endif
248+ endif
249 set_variable(
250- '@0@_prog'.format(name),
251- find_program(name, required: get_option('storage_zfs'), dirs: libvirt_sbin_path)
252+ '@0@_path'.format(name), prog_path
253 )
254- if not get_variable('@0@_prog'.format(name)).found()
255+ if prog_path == ''
256 zfs_enable = false
257 endif
258 endforeach
259@@ -1993,7 +2057,7 @@ if conf.has('WITH_LIBVIRTD')
260 use_storage = true
261 conf.set('WITH_STORAGE_ZFS', 1)
262 foreach name : ['zfs', 'zpool']
263- conf.set_quoted(name.to_upper(), get_variable('@0@_prog'.format(name)).path())
264+ conf.set_quoted(name.to_upper(), get_variable('@0@_path'.format(name)))
265 endforeach
266 endif
267 endif
268@@ -2104,10 +2168,16 @@ if not get_option('nss').disabled()
269 endif
270
271 if not get_option('numad').disabled() and numactl_dep.found()
272+ numad_path = get_option('numad_path')
273+ if numad_path == ''
274 numad_prog = find_program('numad', required: get_option('numad'), dirs: libvirt_sbin_path)
275 if numad_prog.found()
276+ numad_path = numad_prog.path()
277+ endif
278+ endif
279+ if numad_path != ''
280 conf.set('WITH_NUMAD', 1)
281- conf.set_quoted('NUMAD', numad_prog.path())
282+ conf.set_quoted('NUMAD', numad_path)
283 endif
284 elif get_option('numad').enabled()
285 error('You must have numactl enabled for numad support.')
286--- libvirt-6.10.0/build-aux/meson.build.orig 2020-12-01 09:51:29.000000000 +0100
287+++ libvirt-6.10.0/build-aux/meson.build 2022-06-15 21:13:56.995821452 +0200
288@@ -2,10 +2,6 @@ syntax_check_conf = configuration_data()
289 syntax_check_conf.set('top_srcdir', meson.source_root())
290 syntax_check_conf.set('top_builddir', meson.build_root())
291
292-flake8_path = ''
293-if flake8_prog.found()
294- flake8_path = flake8_prog.path()
295-endif
296 syntax_check_conf.set('flake8_path', flake8_path)
297 syntax_check_conf.set('runutf8', ' '.join(runutf8))
298 syntax_check_conf.set('PYTHON3', python3_prog.path())
299--- libvirt-6.10.0/src/meson.build.orig 2020-12-01 09:51:29.000000000 +0100
300+++ libvirt-6.10.0/src/meson.build 2022-06-15 21:23:22.326092128 +0200
301@@ -982,11 +982,11 @@ test(
302 env: runutf8,
303 )
304
305-if augparse_prog.found()
306+if find_program('augparse', required: false).found()
307 foreach data : augeas_test_data
308 test(
309 'check-augeas-@0@'.format(data['name']),
310- augparse_prog,
311+ find_program('augparse'),
312 args: [
313 '-I', data['srcdir'],
314 '-I', data['builddir'],
315@@ -996,7 +996,7 @@ if augparse_prog.found()
316 endforeach
317 endif
318
319-if pdwtags_prog.found() and cc.get_id() != 'clang'
320+if pdwtags_path != '' and cc.get_id() != 'clang'
321 foreach proto : check_protocols
322 lib = proto['lib']
323 test(
324@@ -1007,7 +1007,7 @@ if pdwtags_prog.found() and cc.get_id()
325 proto['name'],
326 lib.name(),
327 lib.full_path(),
328- pdwtags_prog.path(),
329+ pdwtags_path,
330 files('@0@-structs'.format(proto['name'])),
331 ],
332 env: runutf8,
333--- libvirt-6.10.0/meson_options.txt.orig 2020-12-01 09:51:29.000000000 +0100
334+++ libvirt-6.10.0/meson_options.txt 2022-06-15 21:47:27.468263121 +0200
335@@ -102,3 +102,51 @@ option('numad', type: 'feature', value:
336 option('pm_utils', type: 'feature', value: 'auto', description: 'use pm-utils for power management')
337 option('sysctl_config', type: 'feature', value: 'auto', description: 'Whether to install sysctl configs')
338 option('tls_priority', type: 'string', value: 'NORMAL', description: 'set the default TLS session priority string')
339+
340+option('addr2line_path', type: 'string', value: '', description: 'executable path')
341+option('augparse_path', type: 'string', value: '', description: 'executable path')
342+option('dmidecode_path', type: 'string', value: '', description: 'executable path')
343+option('dnsmasq_path', type: 'string', value: '', description: 'executable path')
344+option('ebtables_path', type: 'string', value: '', description: 'executable path')
345+option('flake8_path', type: 'string', value: '', description: 'executable path')
346+option('ip6tables_path', type: 'string', value: '', description: 'executable path')
347+option('ip_path', type: 'string', value: '', description: 'executable path')
348+option('iptables_path', type: 'string', value: '', description: 'executable path')
349+option('iscsiadm_path', type: 'string', value: '', description: 'executable path')
350+option('lvchange_path', type: 'string', value: '', description: 'executable path')
351+option('lvcreate_path', type: 'string', value: '', description: 'executable path')
352+option('lvremove_path', type: 'string', value: '', description: 'executable path')
353+option('lvs_path', type: 'string', value: '', description: 'executable path')
354+option('mdevctl_path', type: 'string', value: '', description: 'executable path')
355+option('mkfs_path', type: 'string', value: '', description: 'executable path')
356+option('mm_ctl_path', type: 'string', value: '', description: 'executable path')
357+option('modprobe_path', type: 'string', value: '', description: 'executable path')
358+option('mount_path', type: 'string', value: '', description: 'executable path')
359+option('numad_path', type: 'string', value: '', description: 'executable path')
360+option('ovs_vsctl_path', type: 'string', value: '', description: 'executable path')
361+option('parted_path', type: 'string', value: '', description: 'executable path')
362+option('pdwtags_path', type: 'string', value: '', description: 'executable path')
363+option('pvcreate_path', type: 'string', value: '', description: 'executable path')
364+option('pvremove_path', type: 'string', value: '', description: 'executable path')
365+option('pvs_path', type: 'string', value: '', description: 'executable path')
366+option('qemu_bridge_path', type: 'string', value: '', description: 'executable path')
367+option('qemu_dbus_daemon_path', type: 'string', value: '', description: 'executable path')
368+option('qemu_pr_path', type: 'string', value: '', description: 'executable path')
369+option('qemu_slirp_path', type: 'string', value: '', description: 'executable path')
370+option('radvd_path', type: 'string', value: '', description: 'executable path')
371+option('rmmod_path', type: 'string', value: '', description: 'executable path')
372+option('scrub_path', type: 'string', value: '', description: 'executable path')
373+option('sheepdogcli_path', type: 'string', value: '', description: 'executable path')
374+option('showmount_path', type: 'string', value: '', description: 'executable path')
375+option('tc_path', type: 'string', value: '', description: 'executable path')
376+option('udevadm_path', type: 'string', value: '', description: 'executable path')
377+option('umount_path', type: 'string', value: '', description: 'executable path')
378+option('vgchange_path', type: 'string', value: '', description: 'executable path')
379+option('vgcreate_path', type: 'string', value: '', description: 'executable path')
380+option('vgremove_path', type: 'string', value: '', description: 'executable path')
381+option('vgs_path', type: 'string', value: '', description: 'executable path')
382+option('vgscan_path', type: 'string', value: '', description: 'executable path')
383+option('vstorage_path', type: 'string', value: '', description: 'executable path')
384+option('vstorage_mount_path', type: 'string', value: '', description: 'executable path')
385+option('zfs_path', type: 'string', value: '', description: 'executable path')
386+option('zpool_path', type: 'string', value: '', description: 'executable path')
This page took 0.09291 seconds and 4 git commands to generate.