Re: [gentoo-dev] Re: [RFC] multilib-build.eclass and restricting unsupported ABIs

2013-03-15 Thread Michał Górny
On Fri, 15 Mar 2013 11:32:31 +0100 Alexis Ballier wrote: > On Sun, 10 Mar 2013 14:42:43 +0100 > Michał Górny wrote: > > > Let alone qmake, how do you suggest dealing with *-config scripts? > > > Some packages are just not written with multilib in mind, or have > > > to maintain historical compat

Re: [gentoo-dev] Re: [RFC] multilib-build.eclass and restricting unsupported ABIs

2013-03-15 Thread Alexis Ballier
On Sun, 10 Mar 2013 14:42:43 +0100 Michał Górny wrote: > > If you consider the argv trick fragile, which is understandable, the > > same wrapper idea can be used differently: If you want to wrap a > > binary foo, move it to foo_${abi} and build a wrapper with hardcoded > > 'foo' instead of argv[0]

Re: [gentoo-dev] Re: [RFC] multilib-build.eclass and restricting unsupported ABIs

2013-03-10 Thread Michał Górny
On Sat, 9 Mar 2013 11:10:11 +0100 Alexis Ballier wrote: > On Fri, 8 Mar 2013 17:30:10 +0100 > Michał Górny wrote: > > > We're talking about two different tricks. > > > > Busybox checks argv to support symlinking for a standard tool. With > > invalid argv[0], it still runs as the standard busyb

Re: [gentoo-dev] Re: [RFC] multilib-build.eclass and restricting unsupported ABIs

2013-03-09 Thread Alexis Ballier
On Fri, 08 Mar 2013 15:44:16 +0100 Thomas Sachau wrote: > Alexis Ballier schrieb: > > On Thu, 07 Mar 2013 19:59:35 +0100 > > Thomas Sachau wrote: > >> > >> I dont have a list of binaries, i either noticed myself some > >> abi-specific behaviour or got user reports for abi-specific > >> behaviour

Re: [gentoo-dev] Re: [RFC] multilib-build.eclass and restricting unsupported ABIs

2013-03-09 Thread Alexis Ballier
On Fri, 8 Mar 2013 17:30:10 +0100 Michał Górny wrote: > On Thu, 7 Mar 2013 17:25:23 +0100 > Alexis Ballier wrote: > > > On Mon, 4 Mar 2013 21:49:48 +0100 > > Michał Górny wrote: > > > > > I'm afraid that's the first potential point of failure. Relying > > > on argv[0] is a poor idea and means

Re: [gentoo-dev] Re: [RFC] multilib-build.eclass and restricting unsupported ABIs

2013-03-08 Thread Michał Górny
On Thu, 7 Mar 2013 17:25:23 +0100 Alexis Ballier wrote: > On Mon, 4 Mar 2013 21:49:48 +0100 > Michał Górny wrote: > > > I'm afraid that's the first potential point of failure. Relying > > on argv[0] is a poor idea and means that any application calling > > exec() with changed argv[0] on a wrapp

Re: [gentoo-dev] Re: [RFC] multilib-build.eclass and restricting unsupported ABIs

2013-03-08 Thread Thomas Sachau
Alexis Ballier schrieb: > On Thu, 07 Mar 2013 19:59:35 +0100 > Thomas Sachau wrote: >> >> I dont have a list of binaries, i either noticed myself some >> abi-specific behaviour or got user reports for abi-specific behaviour. >> As an example i remember, dev-libs/libIDL has a config binary not >> m

Re: [gentoo-dev] Re: [RFC] multilib-build.eclass and restricting unsupported ABIs

2013-03-08 Thread Thomas Sachau
Davide Pesavento schrieb: > On Thu, Mar 7, 2013 at 10:59 AM, Thomas Sachau wrote: >> Alexis Ballier schrieb: >>> On Mon, 04 Mar 2013 21:17:50 +0100 >>> Thomas Sachau wrote: dev-db/mysql abiwrapper dev-lang/perl abiwrapper dev-lang/python abiwrapper dev-lang/ruby abiwrapper >>>

Re: [gentoo-dev] Re: [RFC] multilib-build.eclass and restricting unsupported ABIs

2013-03-08 Thread Alexis Ballier
On Fri, 8 Mar 2013 05:47:23 +0100 Michał Górny wrote: > On Thu, 07 Mar 2013 19:59:35 +0100 > Thomas Sachau wrote: > > > I am not sure about the target of your qmake question, so as a > > general answer: > > > > qmake is something like configure for qmake based build systems. If > > you want to

Re: [gentoo-dev] Re: [RFC] multilib-build.eclass and restricting unsupported ABIs

2013-03-08 Thread Alexis Ballier
On Thu, 07 Mar 2013 19:59:35 +0100 Thomas Sachau wrote: > > I dont have a list of binaries, i either noticed myself some > abi-specific behaviour or got user reports for abi-specific behaviour. > As an example i remember, dev-libs/libIDL has a config binary not > matching the usual *-config schem

Re: [gentoo-dev] Re: [RFC] multilib-build.eclass and restricting unsupported ABIs

2013-03-07 Thread Michał Górny
On Thu, 07 Mar 2013 19:59:35 +0100 Thomas Sachau wrote: > I am not sure about the target of your qmake question, so as a general > answer: > > qmake is something like configure for qmake based build systems. If you > want to see the difference between qmake (32bit) and qmake (64bit), run > a 64b

Re: [gentoo-dev] Re: [RFC] multilib-build.eclass and restricting unsupported ABIs

2013-03-07 Thread Davide Pesavento
On Thu, Mar 7, 2013 at 10:59 AM, Thomas Sachau wrote: > Alexis Ballier schrieb: >> On Mon, 04 Mar 2013 21:17:50 +0100 >> Thomas Sachau wrote: >>> dev-db/mysql abiwrapper >>> dev-lang/perl abiwrapper >>> dev-lang/python abiwrapper >>> dev-lang/ruby abiwrapper >>> dev-libs/gobject-introspection abi

Re: [gentoo-dev] Re: [RFC] multilib-build.eclass and restricting unsupported ABIs

2013-03-07 Thread Thomas Sachau
Alexis Ballier schrieb: > On Mon, 04 Mar 2013 21:17:50 +0100 > Thomas Sachau wrote: >> dev-db/mysql abiwrapper >> dev-lang/perl abiwrapper >> dev-lang/python abiwrapper >> dev-lang/ruby abiwrapper >> dev-libs/gobject-introspection abiwrapper >> dev-libs/libIDL abiwrapper >> dev-scheme/guile abiwra

Re: [gentoo-dev] Re: [RFC] multilib-build.eclass and restricting unsupported ABIs

2013-03-07 Thread Alexis Ballier
On Mon, 04 Mar 2013 21:17:50 +0100 Thomas Sachau wrote: > The actual list of packages with wrapped binaries is in the profiles > dir of the multilib-portage overlay (expect this to be a minimal > list, there are probably more out there we did not yet catch): Thanks. > dev-db/mysql abiwrapper > d

Re: [gentoo-dev] Re: [RFC] multilib-build.eclass and restricting unsupported ABIs

2013-03-07 Thread Alexis Ballier
On Mon, 4 Mar 2013 21:49:48 +0100 Michał Górny wrote: > On Mon, 4 Mar 2013 11:02:40 +0100 > Alexis Ballier wrote: > > > On Sun, 3 Mar 2013 23:25:03 +0100 > > Michał Górny wrote: > > > > > On Sun, 3 Mar 2013 18:18:12 +0100 > > > Alexis Ballier wrote: > > > > > > > On Sun, 3 Mar 2013 17:58:26

Re: [gentoo-dev] Re: [RFC] multilib-build.eclass and restricting unsupported ABIs

2013-03-04 Thread Michał Górny
On Mon, 04 Mar 2013 23:21:36 +0100 Thomas Sachau wrote: > Michał Górny schrieb: > > On Mon, 4 Mar 2013 11:02:40 +0100 > > Alexis Ballier wrote: > > > >> you are called with ABI=sth argv[0] = your name > > > > I'm afraid that's the first potential point of failure. Relying > > on argv[0] is a p

Re: [gentoo-dev] Re: [RFC] multilib-build.eclass and restricting unsupported ABIs

2013-03-04 Thread Thomas Sachau
Michał Górny schrieb: > On Mon, 4 Mar 2013 11:02:40 +0100 > Alexis Ballier wrote: > >> On Sun, 3 Mar 2013 23:25:03 +0100 >> Michał Górny wrote: >> >>> On Sun, 3 Mar 2013 18:18:12 +0100 >>> Alexis Ballier wrote: >>> On Sun, 3 Mar 2013 17:58:26 +0100 Michał Górny wrote: > What

Re: [gentoo-dev] Re: [RFC] multilib-build.eclass and restricting unsupported ABIs

2013-03-04 Thread Michał Górny
On Mon, 4 Mar 2013 11:02:40 +0100 Alexis Ballier wrote: > On Sun, 3 Mar 2013 23:25:03 +0100 > Michał Górny wrote: > > > On Sun, 3 Mar 2013 18:18:12 +0100 > > Alexis Ballier wrote: > > > > > On Sun, 3 Mar 2013 17:58:26 +0100 > > > Michał Górny wrote: > > > > > > > What do we need that wrappe

Re: [gentoo-dev] Re: [RFC] multilib-build.eclass and restricting unsupported ABIs

2013-03-04 Thread Thomas Sachau
Alexis Ballier schrieb: > On Sun, 3 Mar 2013 23:25:03 +0100 > Michał Górny wrote: > >> On Sun, 3 Mar 2013 18:18:12 +0100 >> Alexis Ballier wrote: >> >>> On Sun, 3 Mar 2013 17:58:26 +0100 >>> Michał Górny wrote: >>> What do we need that wrapper for? What does the wrapper do? Does it ju

Re: [gentoo-dev] Re: [RFC] multilib-build.eclass and restricting unsupported ABIs

2013-03-04 Thread Alexis Ballier
On Sun, 3 Mar 2013 23:25:03 +0100 Michał Górny wrote: > On Sun, 3 Mar 2013 18:18:12 +0100 > Alexis Ballier wrote: > > > On Sun, 3 Mar 2013 17:58:26 +0100 > > Michał Górny wrote: > > > > > What do we need that wrapper for? What does the wrapper do? Does > > > it just rely on custom 'ABI' varia

Re: [gentoo-dev] Re: [RFC] multilib-build.eclass and restricting unsupported ABIs

2013-03-04 Thread Alexis Ballier
On Sun, 03 Mar 2013 22:39:42 +0100 Thomas Sachau wrote: > The wrapper is already in a seperate package [1], the currently active > and tested version (1.0) is in bash, also there is a (currently > masked) version 2.0 written by binki in C doing the same natively. So > you even have a choice in wha

Re: [gentoo-dev] Re: [RFC] multilib-build.eclass and restricting unsupported ABIs

2013-03-03 Thread Michał Górny
On Sun, 3 Mar 2013 18:18:12 +0100 Alexis Ballier wrote: > On Sun, 3 Mar 2013 17:58:26 +0100 > Michał Górny wrote: > > > What do we need that wrapper for? What does the wrapper do? Does it > > just rely on custom 'ABI' variable? > > yes -- it must perform some checks though. What kind of check

Re: [gentoo-dev] Re: [RFC] multilib-build.eclass and restricting unsupported ABIs

2013-03-03 Thread Thomas Sachau
Alexis Ballier schrieb: > On Sun, 03 Mar 2013 17:27:50 +0100 > Thomas Sachau wrote: > >> Alexis Ballier schrieb: >>> On Sun, 03 Mar 2013 16:47:43 +0100 >>> Thomas Sachau wrote: >>> Alexis Ballier schrieb: > On Sun, 03 Mar 2013 14:02:58 +0100 > Thomas Sachau wrote: >> >> Onc

Re: [gentoo-dev] Re: [RFC] multilib-build.eclass and restricting unsupported ABIs

2013-03-03 Thread Alexis Ballier
On Sun, 3 Mar 2013 17:58:26 +0100 Michał Górny wrote: > On Sun, 03 Mar 2013 17:27:50 +0100 > Thomas Sachau wrote: > > > Alexis Ballier schrieb: > > > On Sun, 03 Mar 2013 16:47:43 +0100 > > > Thomas Sachau wrote: > > > > > >> Alexis Ballier schrieb: > > >>> On Sun, 03 Mar 2013 14:02:58 +0100 >

Re: [gentoo-dev] Re: [RFC] multilib-build.eclass and restricting unsupported ABIs

2013-03-03 Thread Michał Górny
On Sun, 03 Mar 2013 17:27:50 +0100 Thomas Sachau wrote: > Alexis Ballier schrieb: > > On Sun, 03 Mar 2013 16:47:43 +0100 > > Thomas Sachau wrote: > > > >> Alexis Ballier schrieb: > >>> On Sun, 03 Mar 2013 14:02:58 +0100 > >>> Thomas Sachau wrote: > > Once the eclass has per-ABI heade

Re: [gentoo-dev] Re: [RFC] multilib-build.eclass and restricting unsupported ABIs

2013-03-03 Thread Alexis Ballier
On Sun, 03 Mar 2013 17:27:50 +0100 Thomas Sachau wrote: > Alexis Ballier schrieb: > > On Sun, 03 Mar 2013 16:47:43 +0100 > > Thomas Sachau wrote: > > > >> Alexis Ballier schrieb: > >>> On Sun, 03 Mar 2013 14:02:58 +0100 > >>> Thomas Sachau wrote: > > Once the eclass has per-ABI heade

Re: [gentoo-dev] Re: [RFC] multilib-build.eclass and restricting unsupported ABIs

2013-03-03 Thread Thomas Sachau
Alexis Ballier schrieb: > On Sun, 03 Mar 2013 16:47:43 +0100 > Thomas Sachau wrote: > >> Alexis Ballier schrieb: >>> On Sun, 03 Mar 2013 14:02:58 +0100 >>> Thomas Sachau wrote: Once the eclass has per-ABI header >>> >>> I think this is needed. >>> and binaries support, >>> >>> but

Re: [gentoo-dev] Re: [RFC] multilib-build.eclass and restricting unsupported ABIs

2013-03-03 Thread Alexis Ballier
On Sun, 03 Mar 2013 16:47:43 +0100 Thomas Sachau wrote: > Alexis Ballier schrieb: > > On Sun, 03 Mar 2013 14:02:58 +0100 > > Thomas Sachau wrote: > >> > >> Once the eclass has per-ABI header > > > > I think this is needed. > > > >> and binaries support, > > > > but here, could you enlighten m

Re: [gentoo-dev] Re: [RFC] multilib-build.eclass and restricting unsupported ABIs

2013-03-03 Thread Chí-Thanh Christopher Nguyễn
Alexis Ballier schrieb: >> and binaries support, > but here, could you enlighten me on its use cases ? I can't imagine > why having multi binaries support would be useful. One example is glxinfo from the mesa-progs package, it will display the information for the ABI it is compiled with. So if you

Re: [gentoo-dev] Re: [RFC] multilib-build.eclass and restricting unsupported ABIs

2013-03-03 Thread Thomas Sachau
Alexis Ballier schrieb: > On Sun, 03 Mar 2013 14:02:58 +0100 > Thomas Sachau wrote: >> >> Once the eclass has per-ABI header > > I think this is needed. > >> and binaries support, > > but here, could you enlighten me on its use cases ? I can't imagine > why having multi binaries support would b

Re: [gentoo-dev] Re: [RFC] multilib-build.eclass and restricting unsupported ABIs

2013-03-03 Thread Alexis Ballier
On Sun, 03 Mar 2013 14:02:58 +0100 Thomas Sachau wrote: > > Once the eclass has per-ABI header I think this is needed. > and binaries support, but here, could you enlighten me on its use cases ? I can't imagine why having multi binaries support would be useful. Alexis.

[gentoo-dev] Re: [RFC] multilib-build.eclass and restricting unsupported ABIs

2013-03-03 Thread Thomas Sachau
Michał Górny schrieb: > Hello, > > With the introduction of support for x32 ABI it has become necessary to > enhance the multilib-build eclass with some kind of support for > specifying the supported/unsupported ABIs. > > In this particular context, tetromino has noted that many packages > don't