commit:     e97d61d1e41787cccf015dac8eb0ff60f9ef09f0
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Sun Aug 15 10:46:24 2021 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Thu Aug 19 06:29:44 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e97d61d1

readme.gentoo-r1.eclass: Use fixed location for README.gentoo

Eclass documentation and the elog message indicate that the expected
location to install the file is /usr/share/doc/${PF}/README.gentoo,
not the location of the ebuild's last docinto call.

Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 eclass/readme.gentoo-r1.eclass | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/eclass/readme.gentoo-r1.eclass b/eclass/readme.gentoo-r1.eclass
index 69d0e1c5c6b..e47e1ac20af 100644
--- a/eclass/readme.gentoo-r1.eclass
+++ b/eclass/readme.gentoo-r1.eclass
@@ -76,7 +76,10 @@ readme.gentoo_create_doc() {
                die "You are not specifying README.gentoo contents!"
        fi
 
-       dodoc "${T}"/README.gentoo
+       ( # subshell to avoid pollution of calling environment
+               docinto .
+               dodoc "${T}"/README.gentoo
+       ) || die
        README_GENTOO_DOC_VALUE=$(< "${T}/README.gentoo")
 }
 

Reply via email to