mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 21:55:52 +01:00
[PR #653] [MERGED] OLD-7084: restore old upstream PR 7084 - pe_inspect: classify system DLLs on Linux through the Wine prefix, bundled names without case #693
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#693
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/653
Author: @aslan2142
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/25/2026
Merged by: @aslan2142
Base:
main← Head:pe-inspect-linux-classes📝 Commits (6)
0d666fcpe_inspect: classify system DLLs on Linux through the Wine prefix, bundled names without case70d615bMerge main into OLD-7084, pe_inspect Linux classes (#653)4532b5bpe_inspect: ws2_32.dll and wsock32.dll are host DLLs, as in owns_dll865e2d7Merge commit 'refs/fix2/main' into fix2-653b8c9250pe_inspect: advapi32.dll is host-owned too, as in owns_dll on mainca9e45dMerge main into pe-inspect-linux-classes📊 Changes
5 files changed (+440 additions, -12 deletions)
View changed files
📝
README.md(+4 -0)📝
docs/design.md(+6 -2)📝
scripts/first_look.ps1(+10 -0)📝
tests/test_pe_inspect.py(+197 -0)📝
tools/pe_inspect.py(+223 -10)📄 Description
Claimed in the coordination issue as: OLD-7084 https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7129526927
Restoration of my original pull request, old upstream PR 7084 in
ItsNotRexed/Leonida, which was closed unmerged when that repository went private on 2026-11-23 (old numbers link nowhere now). Rebased onto main at21625bca8c; no changes beyond the rebase.Depends on: #45 (conflicts only in
tests/test_pe_inspect.py, both add tests at the end; keeping both blocks resolves it)What and why
On a host that isn't Windows,
classify_dllintools/pe_inspect.pymarked the C runtime and every system DLL asshim, so the first look's to-do list was wrong there. There were three causes:MSVCP140.dllmissed the package'smsvcp140.dll.The change:
system32($WINEPREFIX, else~/.wine). API sets are resolved through the prefix'sapisetschema.dll(version-6 schema), because Wine installs no file for most of them.unverified, shown assystem (unverified). The shims' DLLs are theSHIM_TABLEs inruntime/shims, less the host DLLs thatowns_dllleaves out.scripts/first_look.ps1lists these DLLs after the to-do and prints a warning.system_dllsfield, plus a line in the Markdown and stdout summaries, says where system DLLs were checked.docs/design.md(day one, import table) andREADME.md(setWINEPREFIXon Linux) describe the above.Tested
Linux, Python 3.14.10, CPU only, synthetic PE images and temporary folders standing in for the game folder and the Wine prefix. No game files.
python -I tests/test_pe_inspect.py:pe_inspecthas noIS_WINDOWS).test_system_dll_is_classified_system, which needs Windows).python -I tests/test_text_write_line_endings.py: OK.python -m compileall -q tools tests,git diff --checkandpython -I scripts/check_no_game_data.pyon the five changed files: clean.scripts/first_look.ps1was not run (no PowerShell or game executable here).GPUs tested: n/a
AI-assisted: yes
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a: no translator change)AI-assisted (Claude Code, Claude Opus 5.5).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.