Re: Compressed man pages

Alejandro Colomar
2023-04-12T20:24:11Z

[-- Attachment #1.1: Type: text/plain, Size: 2467 bytes --]

Hi Mingye,

On 4/12/23 20:52, Mingye Wang wrote:
> On Wed, Apr 12, 2023 at 10:24 PM Alejandro Colomar
> <alx.manpages@gmail.com> wrote:
>> $ sudo make install-man prefix=/opt/local/man/xz___ -j LINK_PAGES=symlink Z=.xz XZFLAGS= | wc -l
>
> Small nitpick here as Kerin's recommended pb=0 isn't actually used.
> https://bugs.gentoo.org/169260#c19 (from Kerin) suggests that we might
> get one-third more.

Hmm, might be interesting to try at some point, but for now, since
man(1) is very unoptimized for non-gz, as we saw, I don't thinks it's
worth trying now.

>
> I'm having trouble getting the Makefile to behave on MSYS2, but it
> does shrink a manual copy of man*/ totalling 7.2 M (probably because
> `exit` and `nan` didn't get checked out by git -- case-insensitivity
> issues) down to 2.8 M (both `du --apparent-size -sh`).

I didn't push the changes needed to use .lz and .xz. Maybe that was
the issue?

* bc15c1d7b - Wed, 12 Apr 2023 16:54:01 +0200 (5 hours ago) (tar)
| Makefile: tfix - Alejandro Colomar
* db5795531 - Wed, 12 Apr 2023 16:53:32 +0200 (5 hours ago)
| *.mk: $Z: Support installing xz(1) compressed pages - Alejandro Colomar
* c2fffefba - Wed, 12 Apr 2023 16:46:16 +0200 (6 hours ago)
| *.mk: Add *FLAGS variables for compression commands - Alejandro Colomar
* b220bc5b0 - Wed, 12 Apr 2023 14:43:00 +0200 (8 hours ago)
| *.mk: $Z: Support installing lzip(1) compressed pages - Alejandro Colomar
* 69ad95988 - Wed, 12 Apr 2023 14:37:08 +0200 (8 hours ago)
| *.mk: dist, dist-lz: Create tarballs compressed with lzip(1) - Alejandro Colomar
* 254fe38b2 - Tue, 11 Apr 2023 22:33:44 +0200 (24 hours ago) (tag: man-pages-6.05-a1)
| dist.mk, version.mk: Create reproducible tarballs - Alejandro Colomar
| * c7e9f0ffe - Tue, 11 Apr 2023 22:13:00 +0200 (24 hours ago) (set)
|/ build-catman.mk: Use .set suffix for troff(1) output - Alejandro Colomar
* 121c8de01 - Tue, 11 Apr 2023 16:55:17 +0200 (29 hours ago) (HEAD -> master, korg/master)
| fts.3: SYNOPSIS: Fix nullability - Alejandro Colomar

I'll push in a moment so you can try that (already done at the time of
sending this email). Or did you see different issues about the Makefile?
Please report anything uncomfortable about it.

Cheers,
Alex

--
<http://www.alejandro-colomar.es/>
GPG key fingerprint: A9348594CE31283A826FBDD8D57633D441E25BB5

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]