public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Mike Gilbert" <floppym@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-fs/btrfs-progs/, sys-fs/btrfs-progs/files/
Date: Mon,  6 Aug 2018 17:58:41 +0000 (UTC)	[thread overview]
Message-ID: <1533578289.4c6e73df9d616d5c472c276dd5bef70efea02907.floppym@gentoo> (raw)

commit:     4c6e73df9d616d5c472c276dd5bef70efea02907
Author:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Mon Aug  6 17:58:09 2018 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Mon Aug  6 17:58:09 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4c6e73df

sys-fs/btrfs-progs: install uncompressed man pages

Closes: https://bugs.gentoo.org/662920
Package-Manager: Portage-2.3.44_p5_p421668, Repoman-2.3.10_p20_p421668

 ...rogs-4.17.ebuild => btrfs-progs-4.17-r1.ebuild} |  4 ++
 .../btrfs-progs/files/btrfs-progs-man-no-gz.patch  | 64 ++++++++++++++++++++++
 2 files changed, 68 insertions(+)

diff --git a/sys-fs/btrfs-progs/btrfs-progs-4.17.ebuild b/sys-fs/btrfs-progs/btrfs-progs-4.17-r1.ebuild
similarity index 98%
rename from sys-fs/btrfs-progs/btrfs-progs-4.17.ebuild
rename to sys-fs/btrfs-progs/btrfs-progs-4.17-r1.ebuild
index 0936ade7591..b11eba1014a 100644
--- a/sys-fs/btrfs-progs/btrfs-progs-4.17.ebuild
+++ b/sys-fs/btrfs-progs/btrfs-progs-4.17-r1.ebuild
@@ -72,6 +72,10 @@ fi
 
 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
 
+PATCHES=(
+	"${FILESDIR}"/btrfs-progs-man-no-gz.patch
+)
+
 pkg_setup() {
 	use python && python-single-r1_pkg_setup
 }

diff --git a/sys-fs/btrfs-progs/files/btrfs-progs-man-no-gz.patch b/sys-fs/btrfs-progs/files/btrfs-progs-man-no-gz.patch
new file mode 100644
index 00000000000..aeb187baaf4
--- /dev/null
+++ b/sys-fs/btrfs-progs/files/btrfs-progs-man-no-gz.patch
@@ -0,0 +1,64 @@
+From 0a319cad0f002c2dfd44cffc1de0a26cf270560f Mon Sep 17 00:00:00 2001
+From: Mike Gilbert <floppym@gentoo.org>
+Date: Mon, 6 Aug 2018 11:26:54 -0400
+Subject: [PATCH] Install uncompressed man pages
+
+Bug: https://bugs.gentoo.org/662920
+---
+ Documentation/Makefile.in | 22 +++++++++++-----------
+ 1 file changed, 11 insertions(+), 11 deletions(-)
+
+diff --git a/Documentation/Makefile.in b/Documentation/Makefile.in
+index 184647c4..c4c843cb 100644
+--- a/Documentation/Makefile.in
++++ b/Documentation/Makefile.in
+@@ -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:
+-- 
+2.18.0
+


             reply	other threads:[~2018-08-06 17:58 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-06 17:58 Mike Gilbert [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-11-05 20:37 [gentoo-commits] repo/gentoo:master commit in: sys-fs/btrfs-progs/, sys-fs/btrfs-progs/files/ Sam James
2023-09-02 16:21 Sam James
2023-05-05  7:04 Sam James
2023-01-05  0:28 Sam James
2021-12-31  2:50 Sam James
2021-01-16 19:28 Lars Wendler
2018-11-10 21:45 Sergei Trofimovich
2018-04-12  9:42 Sergei Trofimovich
2017-03-31 20:53 Sergei Trofimovich
2016-10-24  8:20 Sergei Trofimovich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1533578289.4c6e73df9d616d5c472c276dd5bef70efea02907.floppym@gentoo \
    --to=floppym@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox