Gentoo Archives: gentoo-dev

From: Ian Stakenvicius <axs@g.o>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] Re: crossdev and multilib interference
Date: Fri, 20 Jun 2014 20:11:17
Message-Id: 53A4954E.20002@gentoo.org
In Reply to: [gentoo-dev] Re: Re: Re: Re: crossdev and multilib interference by "Steven J. Long"
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA256
3
4 On 19/06/14 05:20 PM, Steven J. Long wrote:
5 > On Tue, Jun 17, 2014 at 10:56 -0400, Alexandre Rostovtsev wrote:
6 >> All multilib packages that use pkgconfig, for one thing. (Which
7 >> means almost all multilib packages.) Because current crossdev
8 >> versions blindly install their
9 >> /usr/bin/i686-pc-linux-gnu-pkg-config wrapper script, overwriting
10 >> the binary belonging to pkgconfig[abi_x86_32].
11 >
12 > Well I've spent far too long at crossdev code, only to see this and
13 > realise you can simply hard-mask:
14 > cross-i686-pc-linux-gnu/{binutils,gcc,glibc,pkg-config} in the
15 > amd64 multilib profile, unless I'm missing something. You'd be
16 > hard-pushed to install a clashing crossdev with such a mask,
17 > afaict.
18 >
19 > If you do want to change crossdev[1], afaict you're looking at
20 > interaction between toolchain.eclass (and toolchain-binutils, and
21 > likely -funcs), crossdev and gcc-config. I could well be wrong, as
22 > ever. This is just my preliminary understanding, and maybe it'll
23 > provoke a more thorough explanation. [ Snip! ]
24
25 Thank you for the explanation and research!
26
27 Tangental to this, mgorny wrote a little tool yesterday that might
28 work well as an alternative to crossdev for multilib systems. It
29 simply wraps all the native toolchain calls with proper -m and
30 provides the new CTARGETs.
31
32 If anybody wants to take a look, this is the link he posted on -dev :
33
34 http://git.overlays.gentoo.org/gitweb/?p=dev/mgorny.git;a=blob;f=sys-devel/multilib-gcc-wrapper/multilib-gcc-wrapper-0.ebuild;h=3e304313c0812ffc7da79603e38979fc81a83081;hb=HEAD
35
36 Whether or not this suits everyone's needs for an i686 crossdev on
37 amd64 systems, i don't know. Thoughts?
38
39 -----BEGIN PGP SIGNATURE-----
40 Version: GnuPG v2.0.22 (GNU/Linux)
41
42 iF4EAREIAAYFAlOklU4ACgkQ2ugaI38ACPBBawD/aRIYx3q5RcSom87YWKCUf6SL
43 jXyavRbB1g5hP8S6B1wBAMBYvZABlKiZckvZYnIQfgsaNkuW1EoPGC5nwkq1Nl24
44 =3JNA
45 -----END PGP SIGNATURE-----

Replies

Subject Author
Re: [gentoo-dev] Re: crossdev and multilib interference Greg Turner <gmt@×××××.us>
[gentoo-dev] Re: crossdev and multilib interference "Steven J. Long" <slong@××××××××××××××××××.uk>