|
57 | 57 | efi_libdir = '' |
58 | 58 | foreach dir : [get_option('efi-libdir'), |
59 | 59 | '/usr/lib/gnuefi' / efi_arch[0], |
60 | | - run_command('realpath', '-e', |
61 | | - '/usr/lib' / run_command(cc.cmd_array(), '-print-multi-os-directory').stdout().strip()).stdout().strip()] |
| 60 | + run_command( |
| 61 | + 'realpath', '-e', |
| 62 | + '/usr/lib' / run_command(cc.cmd_array(), '-print-multi-os-directory', check: false).stdout().strip(), |
| 63 | + check: false |
| 64 | + ).stdout().strip()] |
62 | 65 | if dir != '' and fs.is_dir(dir) |
63 | 66 | efi_libdir = dir |
64 | 67 | break |
@@ -125,7 +128,7 @@ elif get_option('sbat-distro') != '' |
125 | 128 | value = get_option(sbatvar[0]) |
126 | 129 | if (value == '' or value == 'auto') and not meson.is_cross_build() |
127 | 130 | cmd = 'if [ -e /etc/os-release ]; then . /etc/os-release; else . /usr/lib/os-release; fi; echo $@0@'.format(sbatvar[1]) |
128 | | - value = run_command(sh, '-c', cmd).stdout().strip() |
| 131 | + value = run_command(sh, '-c', cmd, check: true).stdout().strip() |
129 | 132 | endif |
130 | 133 | if value == '' |
131 | 134 | error('Required @0@ option not set and autodetection failed'.format(sbatvar[0])) |
@@ -254,7 +257,7 @@ if efi_arch[1] == 'arm' |
254 | 257 | efi_ldflags += ['-Wl,--no-warn-mismatch'] |
255 | 258 | endif |
256 | 259 |
|
257 | | -if run_command('grep', '-q', '__CTOR_LIST__', efi_lds).returncode() == 0 |
| 260 | +if run_command('grep', '-q', '__CTOR_LIST__', efi_lds, check: false).returncode() == 0 |
258 | 261 | # fedora has a patched gnu-efi that adds support for ELF constructors. |
259 | 262 | # If ld is called by gcc something about these symbols breaks, resulting |
260 | 263 | # in sd-boot freezing when gnu-efi runs the constructors. Force defining |
|
0 commit comments