diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2021-11-24 20:26:20 -0500 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek.chauhan@gmail.com> | 2021-11-25 23:19:57 +0530 |
commit | 858b114d5cf83827f1bd0fd123b0e00cc1f63961 (patch) | |
tree | 9fcba54371b00d1c83ed4b9c627695240534abd5 /mesonbuild/minstall.py | |
parent | 39856daf9a5e545a602536b76448a32cf3da590f (diff) | |
download | meson-858b114d5cf83827f1bd0fd123b0e00cc1f63961.zip meson-858b114d5cf83827f1bd0fd123b0e00cc1f63961.tar.gz meson-858b114d5cf83827f1bd0fd123b0e00cc1f63961.tar.bz2 |
minstall: do not run ldconfig on the *BSDs
They don't utilize a soname cache, so running ldconfig without arguments
is basically pointless -- and at least some of them are buggy: running
ldconfig with the verbose flag switches on "delete all directories from
the hints file, and recreate it using 0 command-line positional
arguments", which would soft-brick the system.
Fixes #9592
Diffstat (limited to 'mesonbuild/minstall.py')
-rw-r--r-- | mesonbuild/minstall.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mesonbuild/minstall.py b/mesonbuild/minstall.py index 7d0da13..cb87faf 100644 --- a/mesonbuild/minstall.py +++ b/mesonbuild/minstall.py @@ -18,6 +18,7 @@ import argparse import errno import os import pickle +import platform import shlex import shutil import subprocess @@ -251,6 +252,9 @@ def apply_ldconfig(dm: DirMaker) -> None: # If we don't have ldconfig, failure is ignored quietly. return + if 'bsd' in platform.system().lower(): + return + # Try to update ld cache, it could fail if we don't have permission. proc, out, err = Popen_safe(['ldconfig', '-v']) if proc.returncode == 0: |