Browse Source

Do not bundle dependencies of platformthemes, should fix #236

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

7
tools/linuxdeployqt/shared.cpp

@ -356,6 +356,11 @@ LddInfo findDependencyInfo(const QString &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();
@ -391,7 +396,7 @@ LddInfo findDependencyInfo(const QString &binaryPath)
}
}
if ((binaryPath.contains(".so.") || binaryPath.endsWith(".so")) && (!lddOutputContainsLinuxVDSO(output)) && (!binaryPath.contains("platformthemes"))) {
if ((binaryPath.contains(".so.") || binaryPath.endsWith(".so")) && (!lddOutputContainsLinuxVDSO(output))) {
const QRegularExpressionMatch match = regexp.match(outputLines.first());
if (match.hasMatch()) {
info.installName = match.captured(1);

Loading…
Cancel
Save