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

Prevent MERGE from creating self-references for duplicated TOC entries #5652

Merged
merged 1 commit into from Mar 27, 2021

Conversation

rokm
Copy link
Member

@rokm rokm commented Mar 19, 2021

A duplicated TOC entry (e.g., a resource being once listed as binary in Analysis.binaries and once as data in Analysis.datas) in the first Analysis being passed to MERGE() ends up generating a spurious DEPENDENCY entry with a self-reference to itself.

Therefore, the dependencies TOC of the primary Analysis object ends up non-empty, and if passed to EXE(), results in a non-functional executable.

@rokm rokm force-pushed the multipackage-toc-duplicates branch from e2147f9 to a9250e4 Compare March 19, 2021 21:24
@rokm
Copy link
Member Author

rokm commented Mar 19, 2021

Fixes a problem with dependencies of the first (primary) Analysis object not being empty after the MERGE() when using the example from #5636.

…TOC entries

A duplicated TOC entry (e.g., a resource being once listed as binary
in Analysis.binaries and once as data in Analysis.datas) in the
first Analysis being passed to MERGE() ends up generating
a spurious DEPENDENCY entry with a self-reference to itself.

Therefore, the dependencies TOC of the primary Analysis object ends
up non-empty, and if passed to EXE(), results in a non-functional
executable.
@rokm rokm force-pushed the multipackage-toc-duplicates branch from a9250e4 to 0aa65ff Compare March 19, 2021 21:30
@rokm rokm changed the title building: prevent duplicated TOC entries from causing self-references Prevent MERGE from creating self-references for duplicated TOC entries Mar 19, 2021
@bwoodsend bwoodsend merged commit 7d8ffec into pyinstaller:develop Mar 27, 2021
@rokm rokm deleted the multipackage-toc-duplicates branch May 5, 2021 09:41
@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.

None yet

2 participants