commit:     a3b13fc187a4f7d428dccb6f6fcbc95565e9a64f
Author:     Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Apache <DOT> Org>
AuthorDate: Sun Mar 14 10:00:00 2021 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Sun Mar 21 15:15:54 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a3b13fc1

autotools.eclass: config_rpath_update(): Fix path to config.rpath.

Closes: https://bugs.gentoo.org/775914
Signed-off-by: Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Apache.Org>
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>

 eclass/autotools.eclass | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/eclass/autotools.eclass b/eclass/autotools.eclass
index 08c72cd7795..4ae360aa24d 100644
--- a/eclass/autotools.eclass
+++ b/eclass/autotools.eclass
@@ -447,7 +447,16 @@ eautopoint() {
 # use gettext directly.  So we have to copy it in manually since
 # we can't let `autopoint` do it for us.
 config_rpath_update() {
-       local dst src=$(type -P gettext | sed 
's:bin/gettext:share/gettext/config.rpath:')
+       local dst src
+
+       case ${EAPI:-0} in
+               0|1|2|3|4|5|6)
+                       src="${EPREFIX}/usr/share/gettext/config.rpath"
+                       ;;
+               *)
+                       src="${BROOT}/usr/share/gettext/config.rpath"
+                       ;;
+       esac
 
        [[ $# -eq 0 ]] && set -- $(find -name config.rpath)
        [[ $# -eq 0 ]] && return 0

Reply via email to