Thu, 21 Sep 2023 00:15:53 -0500 "David C. Rankin" <drankinatty@suddenlinkmail.com> :
All,
Just a good example of why SUSE/openSUSE is as good as it is. I built pgloader naively on Arch and the package was 23MiB. Then needed to install the same package on leap 15.4 and install was only 300KiB - WTF?
Digging into the spec, the SUSE packager had noticed that the SBCL elf files contained gaps and no debug sections and so an objcopy of the executable would reduce the size by over 20M!!!
Absolutely brilliant, and quite space efficient. I added the objcopy to the Arch build and presto, a 23M executable drops to just 400K.
.spec explanation for the curious (like me)
%install install -d %{buildroot}%{_bindir} # # SBCL produces ELF files that # (1.) have excessive gaps and which could be fixed by objcopy/strip/etc. # (2.) do not have any .debug_* sections, therefore rpm's debuginfo # mechanism (would do strip) does not trigger at all. # # Hence this copyin-copyout call with objcopy, which reduces filesize from 20MB # to 300KB. # objcopy bin/pgloader %{buildroot}%{_bindir}/pgloader
Kudos to the packager!
-- David C. Rankin, J.D.,P.E.
Excellent, if we could only force all the mozilla bloat-code to go through their cubicles too (not to mention nvidia and chrome)! -- Thursdays are Leap days: openSUSE Leap 15.5, Kernel=5.14.21-150500.55.19-default on x86_64, DM=sddm, DE=KDE, ST=x11,grub2, GPT, BIOS-boot https://imgur.com/ekrJUUt.png https://imgur.com/RsbswMP.png