makepkg script truncates precompiled binary
One of my colleagues complained, that on Archlinux our Software doesn't start anymore, after some investigating, I realized that the daemon elf-binary is 5MB shorter, than what it should be.
A friend helped me debug and found out that when you put !debug into the options, it doesn't happen anymore
according to him the makepkg script tries to ftruncate the binary and remove debug symbols...
which it should not do, as it's already compiled, no need to touch the binary, it's supposed to just copy it from one spot to the other.
the PKGBUILD in question: https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=tuxedo-control-center-bin
to reproduce it you need to remove !debug from the options. It happened both in version 2.1.7 as well as 2.1.8
it seems to have started happening with the recent update of makepkg.conf as we changed nothing in the PKGBUILD and for my colleague who had a different makepkg.conf it never broke...