Gentoo Archives: gentoo-embedded

From: Ned Ludd <solar@g.o>
To: gentoo-embedded@l.g.o
Subject: Re: [gentoo-embedded] Re: Cross Wrappers
Date: Thu, 03 Jul 2008 16:01:44
Message-Id: 1215095684.5893.16.camel@media
In Reply to: Re: [gentoo-embedded] Re: Cross Wrappers by Christopher Friedt
1 On Thu, 2008-07-03 at 09:45 -0400, Christopher Friedt wrote:
2 > Hi Ned & Mike,
3 >
4 > I like the fix_la_files() and fix_pkgconfig_files() functions in
5 > cross-fix-root.
6 >
7 > Prefixing emerge with CHOST- might be better because of tab completion -
8 > i.e. using x86_64-pc-linux-gnu-[tab] would give you several results
9 > including gcc, emerge, etc. At least it would be more uniform in any
10 > case and uniformity makes it much easier to incorporate into other code.
11 >
12 > If your changes were incorporated into crossdev, so that the wrappers
13 > were automatically generated per-toolchain (or even if symlinks were
14 > made and $0 was checked), that would be awesome.
15
16
17 Here is the updated version which does all that.
18
19 http://dev.gentoo.org/~solar/embedded/crossdev-wrappers-20080622.ebuild
20
21
22
23
24 > Chris
25 >
26 > Mike Frysinger wrote:
27 > > On Sunday 22 June 2008, Ned Ludd wrote:
28 > >> On Sat, 2008-06-21 at 23:29 -0400, Mike Frysinger wrote:
29 > >>> On Saturday 21 June 2008, Ned Ludd wrote:
30 > >>> for the configure tests, ive been meaning to investigate switching over
31 > >>> to a config.site rather than exporting them through the environment ...
32 > >> I'll see what I can snag from here.
33 > >> https://dev.openwrt.org/browser/trunk/include/site (hate traq)
34 > >> Any tips/links to some others?
35 > >
36 > > it's just an idea i had floating around. havent actually looked into
37 > > implementation details. but if another project is already maintaining the
38 > > site files, then we should push our little differences to them and then just
39 > > start using their work ;).
40 > >
41 > >>> for the CHOST, how about checking $0 ? so people can symlink like:
42 > >>> x86_64-pc-linux-gnu-emerge and then they can just run that without
43 > >>> needing anything set in the
44 > >>> environment ... that's how i generally multiplex my cross scripts for
45 > >>> multiple targets.
46 > >> I have it right now as emerge-CHOST.
47 > >> I figured the logic there that CHOST-* should be mostly
48 > >> reserved for the toolchain, plus it's easier for me to emerge-\t\t and
49 > >> pull in the right wrapper foo for whatever I'm working on.
50 > >
51 > > i think having it all be CHOST- prefixed rather than suffixed is better for
52 > > consistency. or just provide both :).
53 > >
54 > >> When you run emerge-wrapper --init
55 > >> it sets up all the symlink love which would probably be run a
56 > >> pkg_postinst().
57 > >
58 > > i mean when you do `crossdev FOO`, it'll create symlinks in /usr/bin/ to the
59 > > wrappers already ... no need for the user to run any other commands in the
60 > > default case ...
61 > >
62 > > cant really divine what targets need what love from a pkg_postinst()
63 > >
64 > >>> we could have crossdev manage the symlinks automatically as well so they
65 > >>> get the ...-emerge and ...-pkg-config by default. and setup the
66 > >>> PORTAGE_CONFIGROOT too ...
67 > >> Yep that's what it does. I'll move the pkg over to usr/share/crossdev/
68 > >> Got a crossdev in cvs/svn some place so I can create a ./wrappers
69 > >> subdir?
70 > >
71 > > ive been lazy and maintaining crossdev in $FILESDIR ... if you want to ask
72 > > robbat2 for a crossdev git or svn, we can transition to that.
73 > > -mike
74
75 --
76 gentoo-embedded@l.g.o mailing list