Install uncompressed man pages
Subsystems (2)
PATCH 1/2 Install uncompressed man pages
Build systems do not typically compress man pages when installing them. This is generally left to distro packaging mechanisms, which may end up recompressing them using a different compressor.
--- Documentation/Makefile.in | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-)
Documentation/Makefile.in +11 -11
@@ -37,9 +37,9 @@ MAN3_TXT += btrfs-ioctl.asciidoc MAN_TXT = $(MAN3_TXT) $(MAN8_TXT) $(MAN5_TXT) MAN_XML = $(patsubst %.asciidoc,%.xml,$(MAN_TXT)) MAN_HTML = $(patsubst %.asciidoc,%.html,$(MAN_TXT)) -GZ_MAN3 = $(patsubst %.asciidoc,%.3.gz,$(MAN3_TXT)) -GZ_MAN5 = $(patsubst %.asciidoc,%.5.gz,$(MAN5_TXT)) -GZ_MAN8 = $(patsubst %.asciidoc,%.8.gz,$(MAN8_TXT)) +MAN3 = $(patsubst %.asciidoc,%.3,$(MAN3_TXT)) +MAN5 = $(patsubst %.asciidoc,%.5,$(MAN5_TXT)) +MAN8 = $(patsubst %.asciidoc,%.8,$(MAN8_TXT)) mandir ?= $(prefix)/share/man man3dir = $(mandir)/man3
@@ -86,9 +86,9 @@ endif all: man man: man3 man5 man8 -man3: $(GZ_MAN3) -man5: $(GZ_MAN5) -man8: $(GZ_MAN8) +man3: $(MAN3) +man5: $(MAN5) +man8: $(MAN8) html: $(MAN_HTML) install: install-man
@@ -96,15 +96,15 @@ install: install-man install-man: man $(INSTALL) -d -m 755 $(DESTDIR)$(man5dir) $(INSTALL) -d -m 755 $(DESTDIR)$(man8dir) - $(INSTALL) -m 644 $(GZ_MAN5) $(DESTDIR)$(man5dir) + $(INSTALL) -m 644 $(MAN5) $(DESTDIR)$(man5dir) # the source file name of btrfs.5 clashes with section 8 page, but we # want to keep the code generic - $(MV) $(DESTDIR)$(man5dir)/btrfs-man5.5.gz $(DESTDIR)$(man5dir)/btrfs.5.gz - $(INSTALL) -m 644 $(GZ_MAN8) $(DESTDIR)$(man8dir) - $(LN_S) -f btrfs-check.8.gz $(DESTDIR)$(man8dir)/btrfsck.8.gz + $(MV) $(DESTDIR)$(man5dir)/btrfs-man5.5 $(DESTDIR)$(man5dir)/btrfs.5 + $(INSTALL) -m 644 $(MAN8) $(DESTDIR)$(man8dir) + $(LN_S) -f btrfs-check.8 $(DESTDIR)$(man8dir)/btrfsck.8 uninstall: - cd $(DESTDIR)$(man8dir); rm -f btrfs-check.8.gz $(GZ_MAN8) + cd $(DESTDIR)$(man8dir); rm -f btrfs-check.8 $(MAN8) $(RMDIR) -p --ignore-fail-on-non-empty $(DESTDIR)$(man8dir) clean:
Signature · 1 line
2.18.0
PATCH 2/2 Install btrfs-ioctl.3 man page
--- Documentation/Makefile.in | 2 ++ 1 file changed, 2 insertions(+)
Documentation/Makefile.in +2 -0
@@ -94,8 +94,10 @@ html: $(MAN_HTML) install: install-man install-man: man + $(INSTALL) -d -m 755 $(DESTDIR)$(man3dir) $(INSTALL) -d -m 755 $(DESTDIR)$(man5dir) $(INSTALL) -d -m 755 $(DESTDIR)$(man8dir) + $(INSTALL) -m 644 $(MAN3) $(DESTDIR)$(man3dir) $(INSTALL) -m 644 $(MAN5) $(DESTDIR)$(man5dir) # the source file name of btrfs.5 clashes with section 8 page, but we # want to keep the code generic
Signature · 1 line
2.18.0
Re: [PATCH 2/2] Install btrfs-ioctl.3 man page
Quoted 9 lines · Mike Gilbert
--- Documentation/Makefile.in | 2 ++ 1 file changed, 2 insertions(+)Documentation/Makefile.in +0
-0
Documentation/Makefile.in html: $(MAN_HTML) · line 100
Quoted 7 lines
Documentation/Makefile.in +2
-0@@ -94,8 +94,10 @@ html: $(MAN_HTML) install: install-man install-man: man + $(INSTALL) -d -m 755 $(DESTDIR)$(man3dir) $(INSTALL) -d -m 755 $(DESTDIR)$(man5dir) $(INSTALL) -d -m 755 $(DESTDIR)$(man8dir) + $(INSTALL) -m 644 $(MAN3) $(DESTDIR)$(man3dir)
MAN3_TXT += btrfs-ioctl.asciidoc
The section 3 page is not ready to be published so it's intentionally left out of installation.
Quoted 3 lines · Mike Gilbert
Build systems do not typically compress man pages when installing them. This is generally left to distro packaging mechanisms, which may end up recompressing them using a different compressor.
Makes sense. I've tested this on openSUSE and there's a post-build step that indeed recompresses the manual pages. It does not work for me here with the uncompressed pages yet for some reason, also the symlinked pages would need to be reworked to the manual page links, but that can be fixed.
I'll queue this patch for a major release, expecting that some breakage might happen. Thanks.
Quoted 5 lines · David Sterba
Quoted 3 lines · Mike Gilbert
Build systems do not typically compress man pages when installing them. This is generally left to distro packaging mechanisms, which may end up recompressing them using a different compressor.
Quoted 8 lines
Makes sense. I've tested this on openSUSE and there's a post-build step that indeed recompresses the manual pages. It does not work for me here with the uncompressed pages yet for some reason, also the symlinked pages would need to be reworked to the manual page links, but that can be fixed.
I'll queue this patch for a major release, expecting that some breakage might happen. Thanks.
FYI, the patches are now in devel. Expected release is in 4.18.