Forum Discussion
Clodo1515
Dec 11, 2023Copper Contributor
Linux, 'strip' corrupt self-contained publish binary
For your knowledge (i search this community but i don't find anything related),
Linux command
strip -S --strip-unneeded "my_app"
performed on a binary created with
dotnet publish --runtime linux-x64 --self-contained true -p:PublishTrimmed=true -p:EnableCompressionInSingleFile=true
corrupt the binary.
Can be reproducible with any CLI program like the classic Hello World.
-----------------------
In any Debian-derivated, when building a package (.deb), it will require to add an exception (in /usr/share/lintian/overrides)
unstripped-binary-or-object
in Lintian, otherwise .deb will throw an ERROR when installed
(Lintian are called from package manager to validate the .deb package before install)
-----------------------
In any Arch-derivated, makepkg perform a strip automatically
==> Tidying install... > Stripping unneeded symbols from binaries and libraries...
resulting in a error when launching the binary:
"Failure processing application bundle; possible file corruption."
This can be avoided with options=('!strip') in PKGBUILD.
No RepliesBe the first to reply