Repository navigation
Enforce the Windows SDK top-level bin contract - #192
Open
devnoname120 wants to merge 2 commits into
Open
devnoname120 wants to merge 2 commits into
devnoname120 wants to merge 2 commits into
Conversation
Keep the Windows top-level bin policy while incorporating the pkgconf and vdpm updates now on master. Update the new Windows SDK fixtures so every simulated host executable satisfies the PE contract.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Enforce the Windows SDK's regular top-level
bin/contract during both staged SDK validation and core-package validation.A regular file directly under Windows
bin/is accepted only when it is:makepkg.conf;vita-makepkg(currently requires an external MSYS2 environment);vitasdk-update(the legacy compatibility updater;vdpmis the current native path);arm-vita-eabi-gdb-add-index(the upstream GNU GDB POSIX helper retained unchanged for compatibility).Every other non-PE regular top-level file is rejected with a diagnostic containing its path. Directories such as
bin/libmakepkg/remain outside this rule.The staged-tree and package paths call the same CMake policy function, so their allowlists cannot drift. Non-Windows validation is unchanged.
Dependency and landing order
This PR intentionally targets
master, but it must land after:The previous Windows pkg-config shell frontend would violate this contract. I tested the policy in a detached overlay containing the current #190 head. After #190 lands, this branch should be rebased and #190's newly-added synthetic Windows executable fixtures should retain PE
MZmagic; no production-code incompatibility was found. Neither prerequisite branch was modified.Until those prerequisites land, a current-
masterWindows SDK leg may fail when the new policy encounters the old non-PEarm-vita-eabi-pkg-configshell wrapper. That is the intended dependency signal; the obsolete wrapper should not be added to this allowlist.Verification
Standalone branch:
tests/cmake/*.cmakescript passed;git diff --checkpassed;Integrated with current #190:
New tests cover every explicit exception, PE acceptance, nested directories, rejection of an unknown script, rejection of unknown data, staged validation, package validation, path-bearing diagnostics, and unchanged Linux behavior.