Gentoo Archives: gentoo-dev

From: Joakim Tjernlund <Joakim.Tjernlund@××××××××.com>
To: "gentoo-dev@l.g.o" <gentoo-dev@l.g.o>
Subject: Re: [gentoo-dev] [EAPI 7] Cross-compile improvements (BDEPEND, BROOT, sysroot)
Date: Fri, 04 Dec 2015 07:15:36
Message-Id: 1449213310.14754.92.camel@infinera.com
In Reply to: Re: [gentoo-dev] [EAPI 7] Cross-compile improvements (BDEPEND, BROOT, sysroot) by James Le Cuirot
1 On Thu, 2015-12-03 at 23:32 +0000, James Le Cuirot wrote:
2 > On Thu, 3 Dec 2015 08:22:01 +0000
3 > Joakim Tjernlund <Joakim.Tjernlund@××××××××.com> wrote:
4 >
5 > > > There's also a further complication here that I forgot to mention to
6 > > > mgorny. While calling configure with --with-sysroot certainly helps,
7 > > > it still stumbles on a significant number of packages that do
8 > > > relinking at the end of the build if elibtoolize hasn't been called.
9 > > > elibtoolize has long patched ltmain.sh with
10 > > > ELT-patches/cross/link-ROOT  
11 > >
12 > > I looked at ELT-patches/cross/link-ROOT and it has
13 > > --- libltdl/config/ltmain.sh 2008-09-07 19:56:33.000000000
14 > > +0200 +++ libltdl/config/ltmain.sh.new 2009-02-15
15 > > 20:37:47.000000000 +0100 @@ -5768,7 +5768,7 @@
16 > >          test "$hardcode_direct_absolute" = no; then
17 > >         add="$libdir/$linklib"
18 > >       elif test "$hardcode_minus_L" = yes; then
19 > > -       add_dir="-L$libdir"
20 > > +       add_dir="-L$ROOT/$libdir"
21 > >         add="-l$name"
22 > >       elif test "$hardcode_shlibpath_var" = yes; then
23 > >         case :$finalize_shlibpath: in
24 > > @@ -5785,7 +5785,7 @@
25 > >         fi
26 > >       else
27 > >         # We cannot seem to hardcode it, guess we'll fake it.
28 > > -       add_dir="-L$libdir"
29 > > +       add_dir="-L$ROOT/$libdir"
30 > >
31 > > I think this should be "add_dir=-L$lt_sysroot$libdir" rather than
32 > > ROOT. See also bug https://bugs.gentoo.org/show_bug.cgi?id=521184
33 > > and since I think this is also a libool bug there is a post upstream
34 > >  http://lists.gnu.org/archive/html/libtool/2015-10/msg00012.html
35 > > This has not gotten any attention from upstream libtool folks. Would
36 > > be great if someone more could push for such a change.
37 >
38 > Agreed. I already wondered if there was an autotools variable that
39 > would be more appreciate. Since aballier also said that this should be
40 > corrected, I'll see about doing that in conjunction with these changes.
41 >
42 > I wouldn't hold your breath for upstream. I've heard of them ignoring
43 > other issues like the "as-needed" one for years.
44
45 Upstream seems a bit unfocused and probably needs some prodding to get
46 going. The suggested change is simple and won't affect normal libtool use
47 so it should not be to hard to get it committed.
48
49  Jocke, off for the weekend as of now.