develooper Front page | perl.perl5.porters | Postings from January 2009

[BUG] Race condition on git_version.h

Thread Next
Jerry D. Hedden
January 12, 2009 12:01
[BUG] Race condition on git_version.h
Message ID:
There is a race condition (maybe not the correct term) for
the generation of git_version.h.

miniperl requires perl.o, and perl.o requires git_version.h.
This triggers the copying of stock_git_version.h to
git_version.h.  (Since there is no miniperl at this point, cannot be run.)  This causes PERL_PATCHNUM
to be set to UNKNOWN in perl.o.

After miniperl is built, is run and
git_version.h gets "real" values.  However, perl.o is not
remade afterwards.  As a result, 'perl -v' ends up showing:

    This is perl, v5.11.0 (UNKNOWN*) built for cygwin-thread-multi-64int

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About