New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Making the springlobby build reproducible #420
Comments
|
wouldn't it be more productive to change gcc so it sets DATE & TIME macro to a specific / defined value? as you maybe can see in code, it is wanted, that the current time and date is stored in the build. how do other projects solve this? is date/time defined by the buildsystem (=cmake)? |
|
On 04.05.2015 22:59, abma wrote:
That sounds like a reasonable solution but I presume nobody wants to
Yes, of course I saw that and I fully understand why you use these macros.
Until now other maintainers either removed those macros completely or The best solution would be to make timestamps customizable. As far as http://en.cppreference.com/w/cpp/preprocessor/replace I have read on this site that redefining or undefining those macros |
its just to get "reproducible builds"... i don't see a real difference to the removal of the macros in the source code.
thats exactly what i mean. change gcc so it allows to make these timestamps customizeable. |
|
in other words: i see this as a bug / missing feature of gcc, thats no bug/problem in springlobby. |
|
On Mon, 04. May 15:14 abma notifications@github.com wrote:
No, I think you misunderstood my bug report. Of course you can always |
|
maybe use |
|
i guess using something like add_definitions(-DBUILD_TIME="some date" ...) will do the trick... http://stackoverflow.com/questions/24292898/compile-date-and-time-using-cmake |
|
partly done: |
|
i hopefully missed none... |
Hi,
to further improve the quality of the Debian distribution we aim to provide byte for byte reproducible builds.
https://wiki.debian.org/ReproducibleBuilds
At the moment springlobby cannot be reproducibly built because DATE and TIME macros are used which make it impossible to reach this goal. One way to solve this bug would be to remove all occurences of these macros within the source code. A patch is attached which achieves that.
A more fine grained approach would be to support builds with timestamps and without them. Although I think nobody really cares when a certain version was exactly built. It would be great if those DATE and TIME macros could be removed.
https://gist.github.com/014ada7ec1f2f837a2dd
The text was updated successfully, but these errors were encountered: