Skip to content

Commit 0f05a16

Browse files
committed
fix(prefix): collapse Wine fixme/err/Preparing spam from dotnet/physx winetricks output
dotnet48/472 and physx each emit thousands of fixme:msi:ACTION_CustomAction, fixme:heap:RtlSetHeapInformation, err:ole:CoGetContextToken, err:ole:CoReleaseMarshalData, and 'Preparing: C:\...' extraction lines. These are expected Wine stub messages with no effect on the outcome. Replaced the grep filter with awk that counts and summarises: N Wine fixme stubs, M COM/auth errors, K files extracted — one summary line per category instead of thousands of identical lines.
1 parent c127a77 commit 0f05a16

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

lib/prefix.sh

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,17 @@ _install_winetricks_verbs() {
5858
print_info "winetricks → $v"
5959
WINETRICKS_LATEST_VERSION_CHECK=disabled \
6060
winetricks -q --force "$v" 2>&1 \
61-
| grep -Ev "^warning:|winetricks latest version|^Executing cd|^-{10,}\$|^WINEPREFIX INFO:|Drive C:|^[dl-][-rwx]{9} |^Registry info:|/#arch=|^\$" \
61+
| awk '
62+
/^[0-9a-f]+:fixme:/ { fixme++; next }
63+
/^[0-9a-f]+:err:ole:Co|^[0-9a-f]+:err:kerberos:|^[0-9a-f]+:err:ntlm:/ { errc++; next }
64+
/^Preparing: / { prep++; next }
65+
/^warning:|winetricks latest|^Executing cd|^-{10,}$|^WINEPREFIX INFO:|Drive C:|^[dl-][-rwx]{9} |^Registry info:|^\/#arch=|^$/ { next }
66+
{ print }
67+
END {
68+
if (fixme+0 > 0) printf "[note] %d Wine fixme stubs (harmless)\n", fixme
69+
if (errc+0 > 0) printf "[note] %d COM/auth errors (harmless)\n", errc
70+
if (prep+0 > 0) printf "[note] %d files extracted\n", prep
71+
}' \
6272
|| print_warning "$v failed or was skipped — continuing"
6373
done
6474
)

0 commit comments

Comments
 (0)