Strip more PE binaries
Task Info (Flyspray) | |
---|---|
Opened By | Emil (xexaxo) |
Task ID | 78851 |
Type | Bug Report |
Project | Community Packages |
Category | Packages: Multilib |
Version | None |
OS | All |
Opened | 2023-06-21 13:00:58 UTC |
Status | Assigned |
Assignee | Felix Yan (felixonmars) |
Details
Description:
With earlier task https://bugs.archlinux.org/task/68007 we started stripping the DLLs shipped with Wine. At the same time all other files - drv, sys, cpl, exe and even the static libraries - were left as-is.
As the https://wiki.archlinux.org/index.php/MinGW_package_guidelines suggest, we should be stripping at least the static libraries. Although in practise, we should probably do everything in /usr/lib*/wine/*windows/
- package version(s) wine 8.10-1
Steps to reproduce:
- file /usr/lib/wine/x86_64-windows/* | grep -v stripped | wc -l -> 381
- change the PKGBUILD to strip everything, rebuild and install
- aka
sed s/\.dll// PKGBUILD
- aka
- file /usr/lib/wine/x86_64-windows/* | grep -v stripped | wc -l -> 0
- wine and windows apps work as usual
- bonus: wine package is ~15% smaller