Gentoo Archives: gentoo-dev

From: Alexis Ballier <aballier@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [PATCH] autotools-multilib: wrapper eclass for multilib builds.
Date: Mon, 24 Sep 2012 17:54:44
Message-Id: 20120924145327.6af8917b@gentoo.org
In Reply to: Re: [gentoo-dev] [PATCH] autotools-multilib: wrapper eclass for multilib builds. by "Michał Górny"
1 On Mon, 24 Sep 2012 19:32:14 +0200
2 Michał Górny <mgorny@g.o> wrote:
3
4 > On Mon, 24 Sep 2012 12:17:58 -0300
5 > Alexis Ballier <aballier@g.o> wrote:
6 >
7 > > On Sun, 23 Sep 2012 18:31:25 +0200
8 > > Michał Górny <mgorny@g.o> wrote:
9 > >
10 > > > On Sun, 23 Sep 2012 12:47:44 -0300
11 > > > Alexis Ballier <aballier@g.o> wrote:
12 > > >
13 > > > > On Sun, 23 Sep 2012 09:21:20 +0200
14 > > > > Michał Górny <mgorny@g.o> wrote:
15 > > > >
16 > > > > > On Sat, 22 Sep 2012 21:46:02 -0300
17 > > > > > Alexis Ballier <aballier@g.o> wrote:
18 > > > > >
19 > > > > > > On Sat, 22 Sep 2012 23:24:46 +0200
20 > > > > > > Michał Górny <mgorny@g.o> wrote:
21 > > > > > >
22 > > > > > > > It is a simple eclass using autotools out-of-source
23 > > > > > > > builds to build packages for multiple ABIs when multilib
24 > > > > > > > is supported.
25 > > > > > > >
26 > > > > > >
27 > > > > > > to some extent, can't you do the same by unpacking twice to
28 > > > > > > different $S and calling src_prepare/compile/install
29 > > > > > > instead of their autotools-utils counterpart with tweaked
30 > > > > > > $S so that it works with almost every ebuild ?
31 > > > > >
32 > > > > > That would make this solution inefficient.
33 > > > >
34 > > > > Why ?
35 > > >
36 > > > Because it introduces unnecessarily copying files around.
37 > >
38 > > cp -l ? I can live with that.
39 >
40 > Can you guarantee that the build system won't modify any file
41 > in the source tree?
42
43 You can add it as a requirement. Your eclass implicitly requires it
44 anyway.
45
46 > So it's back to optimized solution vs bad, universal solution.
47
48 or rather writing multilib support for every package vs. using what
49 ebuilds already offer you: a common API for building every package.

Replies