1 |
Yes, it's a way to do it, also you can create a file with the options as |
2 |
"/etc/portage/env/options" and then simlink to |
3 |
"/etc/portage/env/category/package"... |
4 |
|
5 |
This way you will always emerge this package with the settings declared in |
6 |
the environment dir, it's also usefull so made some optimizations over |
7 |
especific packages without affect the rest of the system, or when a package |
8 |
needs especial values in environment variables as LC_ALL, i.e. ghc-6.8... |
9 |
|
10 |
2008/5/25 dhk <dhkuhl@×××××××××.net>: |
11 |
|
12 |
> I did the build the non-persistent way and ran my program with the |
13 |
> debugger. When I got to the breakpoint for the the library function it says |
14 |
> "no line number". See the following from gdb. |
15 |
> |
16 |
> 3271 pobj=xmlXPathEvalExpression(tag, pctx); |
17 |
> (gdb) |
18 |
> |
19 |
> Breakpoint 3, 0x00002ab4493e4480 in xmlXPathEvalExpression () |
20 |
> from /usr/lib/libxml2.so.2 |
21 |
> (gdb) |
22 |
> Single stepping until exit from function xmlXPathEvalExpression, |
23 |
> which has no line number information. |
24 |
> |
25 |
> Does this mean the source was removed after the emerge? If so how can I |
26 |
> keep the source. |
27 |
> |
28 |
> Also I like the idea of using "/etc/portage/env/category/package" but I'm |
29 |
> not sure what to do since I don't have the env directory. Would I just do a |
30 |
> mkdir -p /etc/portage/env/dev-libs/ and create a file called libxml2 with |
31 |
> CFLAGS="$CFLAGS -g2" in it? |
32 |
> |
33 |
> Thanks all, |
34 |
> |
35 |
> Dave |
36 |
> |
37 |
> |
38 |
> |
39 |
> |
40 |
> |
41 |
> Sebastian Magri wrote: |
42 |
> |
43 |
>> You can use the "/etc/portage/env/category/package" to declare environment |
44 |
>> variables for specific packages... |
45 |
>> |
46 |
>> 2008/5/25 Erik Ruotsalainen <aegis@×××××.fi>: |
47 |
>> |
48 |
>> On Sat, May 24, 2008 at 10:02:50AM +0000, dhk wrote: |
49 |
>>> |
50 |
>>>> How can I modify the CFLAGS before emerging a package? I want to add |
51 |
>>>> -g2 to the compile of libxml2 so I can step through their functions. If |
52 |
>>>> I add -g2 to CFLAGS in make.conf it will do it for all packages which is |
53 |
>>>> not what I want. |
54 |
>>>> |
55 |
>>>> Thanks, |
56 |
>>>> |
57 |
>>>> Dave |
58 |
>>>> -- |
59 |
>>>> gentoo-user@l.g.o mailing list |
60 |
>>>> |
61 |
>>>> Same way as with USE flags, I think. |
62 |
>>> |
63 |
>>> # CFLAGS="-g2" emerge libxml2 |
64 |
>>> |
65 |
>>> - aegis |
66 |
>>> -- |
67 |
>>> gentoo-user@l.g.o mailing list |
68 |
>>> |
69 |
>>> |
70 |
>>> |
71 |
>> |
72 |
>> |
73 |
> -- |
74 |
> gentoo-user@l.g.o mailing list |
75 |
> |
76 |
> |
77 |
|
78 |
|
79 |
-- |
80 |
En el pasado creímos que se nos acababa |
81 |
el petróleo, pero en realidad lo que se nos |
82 |
acababan eran las IDEAS. |
83 |
Gentoo/* (Linux #455615) |
84 |
53:04:4e:b5:f9:7e:4a:fb:66:a2:19:12:da:d5:97:f8 |
85 |
8A3A C955 715D D88A 87CD E21F F827 ADD7 F589 B4A4 |
86 |
Sebastian Magri (sebasmagri) <sebasmagri@×××××.com> |