On Sat, 13 Sep 2025 14:32:00 +0200, Timo Röhling wrote:
* Guillem Jover <guillem@debian.org> [2025-09-13 14:11]:Thank you for the inspiration! I have adopted it as mmdebstrap hook for my build chroots: --chrooted-customize-hook="find /usr/lib/gcc/*/ /usr/libexec/gcc/*/ -maxdepth 2 -type f -size +10M -print0 | xargs -r0 strip --strip-unneeded --remove-section=.comment --remove-section=.note"As has been mentioned elsethread this is a recurring thing, so for some time, I've got installed on all my systems and chroots gcc-on-diet:
For those using pbuilder/cowbuilder: % cat /var/cache/pbuilder/hooks/E10cleanup #!/bin/sh … #783876 #http://git.hadrons.org/cgit/debian/gcc-on-diet.git/ find /usr/lib/gcc/*/ /usr/libexec/gcc/*/ \ -maxdepth 2 -type f -size +10M -print0 \ | xargs -r0 \ strip --strip-unneeded \ --remove-section=.comment --remove-section=.note || true Cheers, gregor -- .''`. https://info.comodo.priv.at -- Debian Developer https://www.debian.org : :' : OpenPGP fingerprint D1E1 316E 93A7 60A8 104D 85FA BB3A 6801 8649 AA06 `. `' Member VIBE!AT & SPI Inc. -- Supporter Free Software Foundation Europe`-
Attachment:
signature.asc
Description: Digital Signature