1 |
On Wednesday 08 December 2004 12:13, Neil McKenzie wrote: |
2 |
> I ended up finding /var/db/pkg/$category/$package/CFLAGS |
3 |
> and hacked this bit of perl to list all installed packages and their |
4 |
> CFLAGS: |
5 |
> |
6 |
> open PKGS, "find /var/db/pkg/ -type f -name CFLAGS|"; |
7 |
> while ($filename = <PKGS>) |
8 |
> { |
9 |
> ($_,$_,$_,$_,$cat,$pkg,$_) = split /\//,$filename; |
10 |
> print "=$cat/$pkg => ".`cat $filename`; |
11 |
> } |
12 |
> |
13 |
> This info can save you having to do an emerge -e world unneccessarily. |
14 |
|
15 |
Yes and no. Try using it to reemerge and then using it to --pretend afterward. |
16 |
You'll find it wanting to re-emerge a large portion of what was just merged |
17 |
with. The reason is that the CFLAGS stored in those files are the CFLAGS at |
18 |
(technically, after) compile time rather than those that were read from |
19 |
make.conf. This may be changed or extended in the future, but for the time |
20 |
being there is no way it can be done accurately. |
21 |
|
22 |
Regards, |
23 |
Jason Stubbs |
24 |
|
25 |
-- |
26 |
gentoo-dev@g.o mailing list |