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

[BUG] Race condition on git_version.h

Thread Next
From:
Jerry D. Hedden
Date:
January 12, 2009 12:01
Subject:
[BUG] Race condition on git_version.h
Message ID:
1ff86f510901121201o38cfef34nd982a6dcb86e177b@mail.gmail.com
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,
make_patchnum.pl cannot be run.)  This causes PERL_PATCHNUM
to be set to UNKNOWN in perl.o.

After miniperl is built, make_patchnum.pl 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


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About