FS#58346 - [pacman] [file] changes in file-5.33 cause PIE binaries to not be stripped by makepkg

Attached to Project: Arch Linux
Opened by Jeb Rosen (jebrosen) - Wednesday, 25 April 2018, 05:52 GMT
Last edited by Doug Newgard (Scimmia) - Wednesday, 25 April 2018, 06:02 GMT
Task Type Bug Report
Category Packages: Testing
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

file-5.33-1 (in testing) adds additional support for PIE binaries. Their mimetype as reported by `file -bi` is now:
application/x-pie-executable; charset=binary

file-5.32-1 (in core) reported them as:
application/x-sharedlib; charset=binary

makepkg uses `file -bi` (/usr/share/makepkg/tidy/strip.sh:114) to determine whether to strip files and what flags to apply, but does not account for x-pie-executable. The end result is that PIE binaries are no longer stripped, dramatically inflating built package sizes.
This task depends upon

Closed by  Doug Newgard (Scimmia)
Wednesday, 25 April 2018, 06:02 GMT
Reason for closing:  Not a bug
Additional comments about closing:  This was fixed nearly 5 days ago

Loading...