Gentoo Archives: gentoo-dev

From: Michael Palimaka <kensington@g.o>
To: gentoo-dev@l.g.o, heroxbd@g.o
Cc: kde@g.o
Subject: [gentoo-dev] Re: [PATCH] eclass/cmake-utils.eclass: restrict rpath hack to Prefix/rpath
Date: Mon, 15 Jul 2019 12:45:35
Message-Id: 1c152ba6-dce2-aec4-bc7a-9a85264b9f68@gentoo.org
In Reply to: [gentoo-dev] [PATCH] eclass/cmake-utils.eclass: restrict rpath hack to Prefix/rpath by heroxbd@gentoo.org
1 On 7/12/19 3:14 AM, heroxbd@g.o wrote:
2 > From: Benda Xu <heroxbd@g.o>
3 >
4 > Prefix/standalone does not need it.
5 > ---
6 > eclass/cmake-utils.eclass | 2 +-
7 > 1 file changed, 1 insertion(+), 1 deletion(-)
8 >
9 > diff --git a/eclass/cmake-utils.eclass b/eclass/cmake-utils.eclass
10 > index ea1858e9735f..109b584afb39 100644
11 > --- a/eclass/cmake-utils.eclass
12 > +++ b/eclass/cmake-utils.eclass
13 > @@ -612,7 +612,7 @@ cmake-utils_src_configure() {
14 > fi
15 > fi
16 >
17 > - if [[ ${EPREFIX} ]]; then
18 > + if use prefix-guest; then
19 > cat >> "${build_rules}" <<- _EOF_ || die
20 > # in Prefix we need rpath and must ensure cmake gets our default linker path
21 > # right ... except for Darwin hosts
22 >
23
24 This seems to break non-prefix builds, as the prefix-guest USE flag will
25 not exist.

Replies