Gentoo Archives: gentoo-portage-dev

From: Ulrich Mueller <ulm@g.o>
To: Zac Medico <zmedico@g.o>
Cc: gentoo-portage-dev@l.g.o
Subject: Re: [gentoo-portage-dev] [PATCH] dosym: revert deprecated prefix compat (bug 615594)
Date: Sun, 19 Jan 2020 19:33:59
Message-Id: w6gmuajjl5x.fsf@kph.uni-mainz.de
In Reply to: [gentoo-portage-dev] [PATCH] dosym: revert deprecated prefix compat (bug 615594) by Zac Medico
1 >>>>> On Sun, 19 Jan 2020, Zac Medico wrote:
2
3 > --- a/bin/ebuild-helpers/dosym
4 > +++ b/bin/ebuild-helpers/dosym
5 > @@ -21,14 +21,6 @@ fi
6 > destdir=${2%/*}
7 > [[ ! -d ${ED%/}/${destdir#/} ]] && dodir "${destdir}"
8 > target="${1}"
9 > -# DEPRECATED HACK: when absolute, prefix with offset for Gentoo Prefix
10 > -# (but only if ${EPREFIX} is not there already)
11 > -# this will eventually be removed, #615594
12 > -if [[ ${target:0:1} == "/" && ${target}/ != "${EPREFIX}"/* ]]; then
13 > - eqawarn "dosym: prepending EPREFIX to path implicitly. If this is desired,"
14 > - eqawarn " please fix the ebuild to use \${EPREFIX} explicitly."
15 > - target="${EPREFIX}${target}"
16 > -fi
17 > ln -snf "${target}" "${ED%/}/${2#/}"
18
19 The intermediate "target" variable is no longer needed, you can simply
20 say "$1" here.
21
22 Ulrich

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies