summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>2021-03-14 10:00:00 +0000
committerMike Gilbert <floppym@gentoo.org>2021-03-21 11:15:54 -0400
commita3b13fc187a4f7d428dccb6f6fcbc95565e9a64f (patch)
treeb9ae100b40a554a7f575adef2bf85bdbc1dab3cd /eclass
parentnet-vpn/tor: version bumps to 0.4.4.8 and 0.4.5.7 (diff)
downloadgentoo-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.eclass11
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