Gentoo Archives: gentoo-dev

From: Alexis Ballier <aballier@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [PATCH 0/4] elt-patches: support wrapped Win32 MSVC toolchain
Date: Fri, 13 Mar 2020 09:19:37
Message-Id: ec2cbb56e65e5cbfbf5b0b83506e88e2ba4f5317.camel@gentoo.org
In Reply to: Re: [gentoo-dev] [PATCH 0/4] elt-patches: support wrapped Win32 MSVC toolchain by James Le Cuirot
1 On Thu, 2020-03-12 at 20:59 +0000, James Le Cuirot wrote:
2 > On Thu, 12 Mar 2020 11:23:04 +0100
3 > Alexis Ballier <aballier@g.o> wrote:
4 >
5 > > On Thu, 2020-03-12 at 09:06 +0100, haubi@g.o wrote:
6 > > > As this native Win32 support is considered highly experimental
7 > > > still,
8 > > > I
9 > > > would like to apply the libtool patches for parity via
10 > > > elibtoolize
11 > > > only,
12 > > > without applying them in sys-devel/libtool itself yet.
13 > > >
14 > >
15 > > IIRC you need to do it this way, experimental or not: elibtoolize
16 > > is
17 > > needed for packages whose autotools have been generated with an old
18 > > libtool (ie all of them for now). eautoreconf should call
19 > > elibtoolize,
20 > > so, after having this in elt-patches, better focus on upstreaming
21 > > this
22 > > in libtool itself so that the need for elibtoolize fades away with
23 > > time.
24 > >
25 > > You will probably run into the same issues as in the old days with
26 > > BSD:
27 > > not all packages run elibtoolize and you do not have a sane way to
28 > > force this besides editing ebuilds.
29 >
30 > I've long wanted to automatically apply elibtoolize to fix other
31 > cross-compile issues. I did come up with a rough prototype and it did
32 > work though I imagine it might break some packages. Maybe it should
33 > be
34 > opt-out rather than opt-in?
35
36 If a patch in elibtoolize might break something then it should not be
37 there in the first place: the function is called by a lot of packages.
38 However, we can assume that such packages have been tested whereas by
39 magically calling elibtoolize they have not. A good solution to avoid
40 this could be to modify the default src_prepare in EAPI8 to call it.
41
42 I think some hacks were implemented for fbsd via profile.bashrc because
43 the pain caused by *not* calling elibtoolize (soname changes) was worse
44 than having untested packages that might break under a red moon.
45
46
47 Alexis.