Daniel E. Macks wrote:

I just implemented 'fink dumpinfo [pkgname]' in CVS HEAD so you can
see how fink parses a package description, including percent expansion
(and hence variant info), and conditional Depends.

This is certainly useful, especially since it allows to extract splitoffs, even for traditional packages, just for seeing whether the percent expansions do what they are supposed to.


BTW, here are two problems with the variant system:

1. "fink validate" classifies the package names with variants syntax as error:

% fink validate gimp2.info
Error: Package name may only contain lowercase letters, numbers,'.', '+' and '-' (gimp2.info)



2. When I run /usr/bin/leaks on "fink index", I am seeing a lot about the variants, although so far only 3 packages (including bluefish) exist that use the variants system. I suspect that /usr/bin/leaks and /usr/bin/perl don't agree about the question of what constitutes a memory leak, but this output still shows that perl spends a lot of effort on these 3 packages in comparison with the 3000 other packages.


Here is a sample output. I only show the lines containing leaks identifiable by their association with strings. There are a lot of other leaks that only have hexdumps associated with them. I run "fink index" and then in another shell the command line

sudo leaks `ps aux | grep "fink index" | grep root | awk '{print $2}'` | grep string

One typical output is

Leak: 0x0118df10 size=48 string 'gimp2%type_pkg[-svg]%type_pkg[-noprint]'
Leak: 0x01b769a0 size=48 string 'gimp2%type_pkg[-svg]%type_pkg[-noprint]'
Leak: 0x01b73dc0 size=48 string 'gimp2%type_pkg[-svg]%type_pkg[-noprint]'
Leak: 0x01b733c0 size=48 string 'gimp2%type_pkg[-svg]%type_pkg[-noprint]'
Leak: 0x01b73110 size=48 string '-svg (boolean), -noprint (boolean)'
Leak: 0x01b70a30 size=48 string '-svg (boolean), -noprint (boolean)'
Leak: 0x01db2ac0 size=48 string '-x11 ., -gnome (boolean), -qt (boolean)'
Leak: 0x01db0750 size=48 string '-x11 , -gnome (boolean), -qt (boolean)'
Leak: 0x01dad970 size=48 string '-x11 , -gnome (boolean), -qt (boolean)'
Leak: 0x01dace80 size=48 string '-x11 (boolean), -gnome (boolean), -qt (boolean)'
Leak: 0x01dabfa0 size=48 string '-x11 ., -gnome (boolean), -qt (boolean)'
Leak: 0x01daa050 size=48 string '-x11 (boolean), -gnome (boolean), -qt (boolean)'
Leak: 0x011143e0 size=32 string '(-gnome2\s*)\(.*?\)'
Leak: 0x01115a50 size=32 string '(-x11\s*)\(.*?\)'
Leak: 0x011161a0 size=32 string '-gnome2 (boolean)'
Leak: 0x01116340 size=32 string 'bluefish%type_pkg[-gnome2]'
Leak: 0x01db34f0 size=32 string '-x11 ., -gnome , -qt (boolean)'
Leak: 0x01db0e60 size=32 string '-x11 , -gnome ., -qt (boolean)'
Leak: 0x01dae480 size=32 string '-x11 , -gnome , -qt (boolean)'
Leak: 0x01dad750 size=32 string '(-gnome\s*)\(.*?\)'
Leak: 0x01dad3c0 size=32 string '(-gnome\s*)\(.*?\)'
Leak: 0x01dac570 size=32 string '(-x11\s*)\(.*?\)'
Leak: 0x01dabb20 size=32 string '(-gnome\s*)\(.*?\)'
Leak: 0x01b718f0 size=32 string '(-svg\s*)\(.*?\)'
Leak: 0x01b71940 size=32 string '(-noprint\s*)\(.*?\)'
Leak: 0x01b74d90 size=32 string '-svg , -noprint (boolean)'
Leak: 0x01b75fe0 size=32 string '(-svg\s*)\(.*?\)'
Leak: 0x01b770d0 size=32 string '(-gnome\s*)\(.*?\)'
Leak: 0x02b61db0 size=16 string '%N-nothread'
Leak: 0x02b60350 size=16 string '%N-mpm-prefork'
Leak: 0x02b49180 size=16 string '%N-common'
Leak: 0x029c42b0 size=16 string '%N-doc'
Leak: 0x01db32e0 size=16 string '(-qt\s*)\(.*?\)'
Leak: 0x01db0bc0 size=16 string '(-qt\s*)\(.*?\)'
Leak: 0x01dae270 size=16 string '(-qt\s*)\(.*?\)'
Leak: 0x01d70810 size=16 string '%N-shlibs'
Leak: 0x01d6d0b0 size=16 string '%N-bin'
Leak: 0x01be10d0 size=16 string '%N-dev'
Leak: 0x01be02e0 size=16 string '%N-common'
Leak: 0x01b865f0 size=16 string '%N-shlibs'
Leak: 0x01936110 size=16 string '%N-default'
Leak: 0x01765af0 size=16 string '%N-man'
Leak: 0x011baf10 size=16 string '%N-nothread'
Leak: 0x011564a0 size=16 string '%N-mpm-prefork'
Leak: 0x0111eb50 size=16 string '%N-doc'
Leak: 0x005f0120 size=16 string 'constant'
Leak: 0x005efee0 size=16 string 'constant'
Leak: 0x005efdc0 size=16 string 'constant'
Leak: 0x005efca0 size=16 string 'constant'
Leak: 0x00145790 size=16 string 'constant'
Leak: 0x001455b0 size=16 string 'constant'
Leak: 0x00145230 size=16 string 'constant'
Leak: 0x001450a0 size=16 string 'constant'
Leak: 0x00144c30 size=16 string 'constant'
Leak: 0x00144ba0 size=16 string 'constant'
Leak: 0x00144a30 size=16 string 'constant'
Leak: 0x00144890 size=16 string 'constant'
Leak: 0x00123360 size=16 string 'constant'


--
Martin





-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to