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