msys2 / msys2-pacman

A friendly fork of https://gitlab.archlinux.org/pacman/pacman
GNU General Public License v2.0
21 stars 12 forks source link

Fix strip with file >= 5.44 #25

Closed lazka closed 1 year ago

lazka commented 1 year ago

file 5.44 no longer reports .exe and .dll as "application/x-dosexec", but as "application/vnd.microsoft.portable-executable". Likely related to https://github.com/file/file/commit/d22701be6a71b946eacb

This leads to pacman no longer stripping binaries resulting in very larger packages.

When looking for files to strip check for both strings instead.