summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2021-04-17 09:46:30 +0200
committerFlorian Bruhin <me@the-compiler.org>2021-04-17 09:46:30 +0200
commit1b4daf7c37782bf6a63814c5e9cdc0bebec559ea (patch)
tree6bdc77c1b8ea07752cd0c19b688f910ba7b67f60 /scripts
parent9fdfd3b4c02be01824900c5e548994495be4ccea (diff)
downloadqutebrowser-1b4daf7c37782bf6a63814c5e9cdc0bebec559ea.tar.gz
qutebrowser-1b4daf7c37782bf6a63814c5e9cdc0bebec559ea.zip
mkvenv: Handle failing ldconfig
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/mkvenv.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts/mkvenv.py b/scripts/mkvenv.py
index 51b10d254..31b185fe1 100755
--- a/scripts/mkvenv.py
+++ b/scripts/mkvenv.py
@@ -271,7 +271,13 @@ def apply_xcb_util_workaround(
print("Workaround not needed: Not installing Qt 5.15.")
return
- libs = _find_libs()
+ try:
+ libs = _find_libs()
+ except subprocess.CalledProcessError as e:
+ utils.print_error(
+ f'Workaround failed: ldconfig exited with status {e.returncode}')
+ return
+
abi_type = 'libc6,x86-64' # the only one PyQt wheels are available for
if ('libxcb-util.so.1', abi_type) in libs: