getsolus / ypkg

Modern, declarative, structured build format
https://getsol.us
GNU General Public License v3.0
22 stars 11 forks source link

Add manpage compression #31

Closed EbonJaeger closed 2 years ago

EbonJaeger commented 2 years ago

With this, ypkg will compress manpage and info files with gzip at maximum compression. Symlinks will be updated to point to the new compressed files.

When compression has been applied, the output also includes how many files were compressed, and the amount of the space that was saved by compression.

This has been tested with the nano and xz packages both with fakeroot ypkg-build ... and with solbuild after patching Ypkg.

Fixes #30

joebonrichie commented 2 years ago

Nice work! Generally looking okay to me, some quick tests with systemd, xz, libabigail, working as expected.

I did completely forgot about info pages. Functionally, it should be the same as compressing man pages, with some pkgs like e2fsprogs having precompressed info pages but most not.

EbonJaeger commented 2 years ago

Is $installdir/usr/share/info the only directory we have to worry about for info pages?

joebonrichie commented 2 years ago

Is $installdir/usr/share/info the only directory we have to worry about for info pages?

Seems that way

joebonrichie commented 2 years ago

Ah very cool! Looks okay to me now, but summary could use updating. I'll take a last look tomorrow when i'm less tired before merging and let you push any last tweaks you want to do.

EbonJaeger commented 2 years ago

Awesome, sounds good! I might tweak some of the code doc comments, too.