After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 773325 - vapigen: have Makefile.vapigen always update the timestamp of generated files
vapigen: have Makefile.vapigen always update the timestamp of generated files
Status: RESOLVED DUPLICATE of bug 683286
Product: vala
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: Vala maintainers
Vala maintainers
Depends on:
Blocks:
 
 
Reported: 2016-10-21 16:38 UTC by Thomas Haller
Modified: 2017-02-25 07:56 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
vapigen: have Makefile.vapigen always update the timestamp of generated files (1.44 KB, patch)
2016-10-21 16:38 UTC, Thomas Haller
none Details | Review

Description Thomas Haller 2016-10-21 16:38:15 UTC
If the file already exists, vapigen writes to a temporary
file "*.valatmp'. Only if the result differs it will update
the existing file. See Vala.CCodeWriter.close().

That means, if a make dependency has a newer timestamp but no actual
changes, the vapigen target will always be rebuild.

Hack around that by explicitly touching the file.
Comment 1 Thomas Haller 2016-10-21 16:38:20 UTC
Created attachment 338201 [details] [review]
vapigen: have Makefile.vapigen always update the timestamp of generated files
Comment 2 Rico Tzschichholz 2017-02-25 07:56:58 UTC

*** This bug has been marked as a duplicate of bug 683286 ***