Gentoo Archives: gentoo-dev

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-dev@l.g.o
Cc: Pacho Ramos <pacho@g.o>, "Ulrich Müller" <ulm@g.o>
Subject: [gentoo-dev] [PATCH] readme.gentoo-r1.eclass: Use fixed location for README.gentoo
Date: Sun, 15 Aug 2021 21:33:08
Message-Id: 20210815105537.23292-1-ulm@gentoo.org
1 Eclass documentation and the elog message indicate that the expected
2 location to install the file is /usr/share/doc/${PF}/README.gentoo,
3 not the location of the ebuild's last docinto call.
4
5 Signed-off-by: Ulrich Müller <ulm@g.o>
6 ---
7 eclass/readme.gentoo-r1.eclass | 5 ++++-
8 1 file changed, 4 insertions(+), 1 deletion(-)
9
10 diff --git a/eclass/readme.gentoo-r1.eclass b/eclass/readme.gentoo-r1.eclass
11 index 69d0e1c5c6b4..bebdba5b705a 100644
12 --- a/eclass/readme.gentoo-r1.eclass
13 +++ b/eclass/readme.gentoo-r1.eclass
14 @@ -76,7 +76,10 @@ readme.gentoo_create_doc() {
15 die "You are not specifying README.gentoo contents!"
16 fi
17
18 - dodoc "${T}"/README.gentoo
19 + ( # subshell to avoid pollution of calling environment
20 + docinto .
21 + dodoc "${T}"/README.gentoo
22 + )
23 README_GENTOO_DOC_VALUE=$(< "${T}/README.gentoo")
24 }
25
26 --
27 2.32.0

Replies