#43995: generate_packets.py get run on every build Open Date: 2022-03-01 10:49 Last Update: 2022-03-01 13:23 URL for this Ticket: https://osdn.net//projects/freeciv/ticket/43995 RSS feed for this Ticket: https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=43995 --------------------------------------------------------------------- Last Changes/Comment on this Ticket: 2022-03-01 13:23 Updated by: cazfi Comment: Reply To alienvalkyrie Especially right now, when I'm refactoring the generation script (which should leave the generated files unchanged), that saves a lot of time. If we consider that to be the special case -> one where one needs to explicitly set (non-default) options, how about: 1) Make forced overwrite the default in generate_packets.py, requiring extra option ("--lazy-overwrite") to change 2) Add support to common/Makefile (and meson.build?) for user to pass *additional* parameters to generate_packets.py, likely via environment variables --------------------------------------------------------------------- Ticket Status: Reporter: cazfi Owner: (None) Type: Bugs Status: Open Priority: 5 - Medium MileStone: 3.2.0 Component: Bootstrap Severity: 5 - Medium Resolution: None --------------------------------------------------------------------- Ticket details: Current master: even when I run 'make' twice in a row, without changing absolutely anything, the output shows that generate_packets.py gets run. Don't understand why. I've checked timestamps of both generate_packets.py and packets.def, and neither has any weird in-future timestamp. This is probably mostly harmless in a development branch, but if the same happens (haven't tested) in a build from a release tarball, that breaks a build without python. -- Ticket information of Freeciv project Freeciv Project is hosted on OSDN Project URL: https://osdn.net/projects/freeciv/ OSDN: https://osdn.net URL for this Ticket: https://osdn.net/projects/freeciv/ticket/43995 RSS feed for this Ticket: https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=43995