Browse Source

Do not bundle dependencies of platformthemes, should fix #236; previous commit led to segfault

master
probonopd 7 years ago
committed by GitHub
parent
commit
a7889b0d83
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      tools/linuxdeployqt/shared.cpp

10
tools/linuxdeployqt/shared.cpp

@ -351,17 +351,17 @@ LddInfo findDependencyInfo(const QString &binaryPath)
LddInfo info;
info.binaryPath = binaryPath;
if (binaryPath.contains("platformthemes")) {
LogDebug() << "Not running ldd on" << binaryPath << "because we do not bundle dependencies of platformthemes";
return info;
}
LogDebug() << "Using ldd:";
LogDebug() << " inspecting" << binaryPath;
QProcess ldd;
ldd.start("ldd", QStringList() << binaryPath);
ldd.waitForFinished();
if (binaryPath.contains("platformthemes")) {
LogDebug() << "Skipping" << binaryPath << "because we do not bundle dependencies of platformthemes";
return info;
}
if (ldd.exitStatus() != QProcess::NormalExit || ldd.exitCode() != 0) {
LogError() << "findDependencyInfo:" << ldd.readAllStandardError();
return info;

Loading…
Cancel
Save