Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

building: automatically exclude Qt plugins from upx processing #5881

Merged
merged 1 commit into from Jun 3, 2021

Conversation

rokm
Copy link
Member

@rokm rokm commented Jun 2, 2021

UPX is known to "corrupt" Qt plugins (it removes the .qtmetad section and QTMETADATA magic string - see upx/upx#107).

Instead of requiring users to manually exclude Qt plugins from UPX processing, do it automatically based on the file analysis, i.e.,
full back-to-front scan for the QTMETADATA magic string.

Fixes #4178.

@rokm
Copy link
Member Author

rokm commented Jun 2, 2021

I was originally leaning towards implementing some sort of mechanism for hooks to specify additional upx exclude patterns. However, after some reflection, content-based file exclusion seems like a better (albeit slower) option.

UPX is known to "corrupt" Qt plugins (it removes the .qtmetad
section and QTMETADATA magic string - see upx/upx#107).

Instead of requiring users to manually exclude Qt plugins from UPX
processing, do it automatically based on the file analysis, i.e.,
full back-to-front scan for the QTMETADATA magic string.

Fixes pyinstaller#4178.
@rokm rokm merged commit 71114c4 into pyinstaller:develop Jun 3, 2021
@rokm rokm deleted the no-upx-qt-plugins branch June 3, 2021 16:48
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Packaged app compressed with UPX crashes at startup in Windows x64
2 participants