Bug #55938 Weird timestamps of generated sql_yacc.cc and sql_yacc.h
Submitted: 12 Aug 2010 7:59 Modified: 24 Sep 2010 21:07
Reporter: Alexander Nozdrin Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S2 (Serious)
Version:M3, M4, M5 OS:Any
Assigned to: Hery Ramilison CPU Architecture:Any

[12 Aug 2010 7:59] Alexander Nozdrin
Description:
From time to time timestamps of generated sql_yacc.h and sql_yacc.cc
are older than their source -- sql_yacc.yy.

For instance:
daily-next-mr-bugfixing
Build from 2010-Aug-10.
Source archive: 2137295.mysql-5.6.99-m5.tar.gz
> ls -l --full-time sql/sql_yacc.*
-rw-r--r-- 1 alik alik 1703719 2010-08-10 18:37:22.000000000 +0400 sql/sql_yacc.cc
-rw-r--r-- 1 alik alik   31073 2010-08-10 18:37:22.000000000 +0400 sql/sql_yacc.h
-rw-r--r-- 1 alik alik  442963 2010-08-10 18:37:23.000000000 +0400 sql/sql_yacc.yy

That causes build failures if yacc/bison is not available on the box:
sql_yacc.yy is newer, thus sql_yacc.h/sql_yacc.cc should be re-generated,
but there is no tool for that.

How to repeat:
Check out PB.
[15 Aug 2010 10:31] Sveta Smirnova
Thank you for the report.

Verified as described.
[17 Aug 2010 23:41] Omer Barnir
triage: setting to SR55RC (assuming can lead to build failures) (w2 can address the issue by manually touching the file
[23 Sep 2010 3:57] Hery Ramilison
Sveta and Alik,

Have you by any chance saved the log for the bootstrap and the tar source file for this build ?

Thanks,
Hery
[24 Sep 2010 21:07] Hery Ramilison
We use cpack for unpacking the source, but due to a bug in cpack, the timestamp is not preserved. It will be fixed in the next release of cpack 2.8.3. In the meantime, a temporary fix has been checked into the pb2 scripts.

Thanks,
Hery