Gentoo Archives: gentoo-dev

From: Mike Frysinger <vapier@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] crossdev and multilib interference
Date: Thu, 27 Mar 2014 07:18:39
Message-Id: 7262834.NuY2vWfT7M@vapier
In Reply to: Re: [gentoo-dev] crossdev and multilib interference by "Michał Górny"
1 On Thu 27 Mar 2014 07:51:32 Michał Górny wrote:
2 > Dnia 2014-03-27, o godz. 02:13:52 Mike Frysinger napisał(a):
3 > > On Wed 26 Mar 2014 01:17:14 Mike Frysinger wrote:
4 > > > (2) use tuples with loaded vendor fields to reduce the chance of
5 > > > collisions. e.g. having an ABI=amd64 system use
6 > > > i686-gentoo%multilib-linux-gnu instead of i686-pc-linux-gnu would
7 > > > defeat any automatic path searches.
8 > >
9 > > this patch keeps the status quo. although the status quo is broken, but
10 > > we
11 > > can sort that out independently.
12 >
13 > Except that it breaks stuff that is installed at the point and comes
14 > with no plan of cleaning up the resulting mess.
15
16 such as ... ? vague statements can't be addressed.
17
18 > > --- profiles/arch/amd64/make.defaults 18 Jan 2014 01:03:24 -0000 1.21
19 > > +++ profiles/arch/amd64/make.defaults 27 Mar 2014 06:13:22 -0000
20 > > @@ -21,17 +21,17 @@ ABI="amd64"
21 > >
22 > > # 64bit specific settings.
23 > > CFLAGS_amd64="-m64"
24 > > LDFLAGS_amd64="-m elf_x86_64"
25 > >
26 > > -CHOST_amd64="x86_64-pc-linux-gnu"
27 > > +CHOST_amd64="${CHOST}"
28 > >
29 > > # 32bit specific settings.
30 > > CFLAGS_x86="-m32"
31 > > LDFLAGS_x86="-m elf_i386"
32 > >
33 > > -CHOST_x86="i686-pc-linux-gnu"
34 > > +CHOST_x86="i686-gentoo%multilib-linux-gnu"
35 >
36 > Using percent sign here looks like asking for trouble at some point.
37 > I don't see why you can't use plain 'gentoomultilib' that is more
38 > fool-proof.
39
40 i merely picked a value that was highly unlikely for people to use. the %
41 should be safe as it is not interpreted by the shell and strongly indicates
42 "hey man, don't mess with me". it could just as easily be a _ or nothing at
43 all. i don't feel strongly about it.
44 -mike

Attachments

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

Replies

Subject Author
Re: [gentoo-dev] crossdev and multilib interference "Michał Górny" <mgorny@g.o>