diff options
author | 2021-03-14 10:00:00 +0000 | |
---|---|---|
committer | 2021-03-21 11:15:54 -0400 | |
commit | a3b13fc187a4f7d428dccb6f6fcbc95565e9a64f (patch) | |
tree | b9ae100b40a554a7f575adef2bf85bdbc1dab3cd /eclass | |
parent | net-vpn/tor: version bumps to 0.4.4.8 and 0.4.5.7 (diff) | |
download | gentoo-a3b13fc187a4f7d428dccb6f6fcbc95565e9a64f.tar.gz gentoo-a3b13fc187a4f7d428dccb6f6fcbc95565e9a64f.tar.bz2 gentoo-a3b13fc187a4f7d428dccb6f6fcbc95565e9a64f.zip |
autotools.eclass: config_rpath_update(): Fix path to config.rpath.
Closes: https://bugs.gentoo.org/775914
Signed-off-by: Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/autotools.eclass | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/eclass/autotools.eclass b/eclass/autotools.eclass index 08c72cd77953..4ae360aa24d4 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 |