[csw-maintainers] GAR performance, calls to mkpackage

Ben Walton bwalton at opencsw.org
Sun Oct 2 16:56:59 CEST 2011


Excerpts from Maciej (Matchek) Bliziński's message of Sun Oct 02 09:46:27 -0400 2011:
> When finishing 'gmake platforms', the build spends quite a bit of time
> at this step:
> 
> * Platform solaris9-i386 (built on host 'unstable9x')
> Use of uninitialized value $REVISION in sprintf at
> /home/maciej/src/opencsw/.buildsys/v2/gar/gar//bin/mkpackage line 31.
> Use of uninitialized value $REVISION in sprintf at
> /home/maciej/src/opencsw/.buildsys/v2/gar/gar//bin/mkpackage line 31.
> Use of uninitialized value $REVISION in sprintf at
> /home/maciej/src/opencsw/.buildsys/v2/gar/gar//bin/mkpackage line 31.
> Use of uninitialized value $REVISION in sprintf at
> /home/maciej/src/opencsw/.buildsys/v2/gar/gar//bin/mkpackage line 31.
> Use of uninitialized value $REVISION in sprintf at
> /home/maciej/src/opencsw/.buildsys/v2/gar/gar//bin/mkpackage line 31.
> Use of uninitialized value $REVISION in sprintf at
> /home/maciej/src/opencsw/.buildsys/v2/gar/gar//bin/mkpackage line 31.
> 
> It looks like repeated mkpackage calls.  But gar already knows what
> packages have been built, doesn't it? Why call mkpackage again?

It's been a long time since I looked at this part of GAR, but iirc,
it's using these calls to generate the file names for display.  It's
relying on some of the gspec magic, I think, and doing it directly in
GAR was challenging so this made sense.  (This is all from memory.)

Dago, is this right?

Thanks
-Ben
--
Ben Walton
Systems Programmer - CHASS
University of Toronto
C:416.407.5610 | W:416.978.4302



More information about the maintainers mailing list