Zandronum Chat @ irc.zandronum.com
#zandronum
Get the latest version: 3.0
Source Code

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0003255Doomseeker[All Projects] Suggestionpublic2017-09-07 21:212017-09-20 22:12
ReporterWubTheCaptain 
Assigned To 
PrioritynormalSeverityfeatureReproducibilityN/A
StatusnewResolutionopen 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0003255: Support reproducible, deterministic builds
DescriptionThis is a parent report for all reports concerning reproducibility.
Steps To ReproduceOn the high level:


      Build from source a first time.

      Save the result.

      Perform as many changes to the environment as possible.

      Build from source a second time.

      Compare the results.



https://reproducible-builds.org/docs/test-bench/ [^]
Additional Information

  • https://reproducible-builds.org/

  • Debian Policy Manual v4.1.0.0 (and later versions), section 4.15.

Attached Files

- Relationships
parent of 0003256new Failure to reproduce builds with variations in build path 
child of 0003246new Debian packaging. 
Not all the children of this issue are yet resolved or closed.

-  Notes
User avatar (0018240)
WubTheCaptain (reporter)
2017-09-07 21:59

Build path tested so far, bug 0003256. I've not yet tested other changes in environment.
User avatar (0018246)
WubTheCaptain (reporter)
2017-09-08 02:01

Build ID differs as a result of other issues.
User avatar (0018309)
Zalewa (developer)
2017-09-18 07:38

I gather that to solve this it will be sufficient to put a description in COMPILE.txt explaining how to achieve deterministic build?
User avatar (0018328)
WubTheCaptain (reporter)
2017-09-18 19:40

To solve this, I think one should first test many (all) of the possible variations and find what changes in the build. Fix or define whatever comes up differently.

Then the build should be as close to deterministic by default, or defined how to reproduce.
User avatar (0018342)
WubTheCaptain (reporter)
2017-09-19 09:29

0003266 is possibly related.
User avatar (0018352)
Zalewa (developer)
2017-09-20 20:54

I identified some problems that prevented reproducible builds and described how to overcome them:
https://bitbucket.org/Doomseeker/doomseeker/commits/e9bad5fe6b574be2423b5ca45c2d3ea1bace3595 [^]

When followed, sha256sum for all binaries is produced the same regardless of build time, build path and locale.

Building in Docker still produces different results than building in Ubuntu 16.04, though I would assume that this is caused by different Qt version (5.2.1 vs 5.5.1).
User avatar (0018354)
WubTheCaptain (reporter)
2017-09-20 21:57
edited on: 2017-09-20 22:12

QT_HASH_SEED may not need to be touched? The behavior of binary doesn't need to be deterministic; only the build system needs to produce bit-to-bit identical binaries, and the build environment should be recorded or pre-defined. Else I think (at least) Debian GNU/Linux already does all that deterministically, since I had no issue reproducing without touching QT_HASH_SEED.

Documenting RPATH skipping addresses 0003256 mostly, until a way is found to address 0003239.

SHA256 hashing is a good way of verifying the output matches. Of course different Qt versions will have an effect, so somewhere on the doomseeker.drdteam.org website the Qt versions (build environment) should be defined later.


Issue Community Support
Only registered users can voice their support. Click here to register, or here to log in.
Supporters: No one explicitly supports this issue yet.
Opponents: No one explicitly opposes this issue yet.

- Issue History
Date Modified Username Field Change
2017-09-07 21:21 WubTheCaptain New Issue
2017-09-07 21:59 WubTheCaptain Note Added: 0018240
2017-09-07 22:07 AOSP Note Added: 0018242
2017-09-08 01:53 Blzut3 Relationship added parent of 0003256
2017-09-08 01:53 Blzut3 Note Deleted: 0018242
2017-09-08 02:01 WubTheCaptain Note Added: 0018246
2017-09-11 16:58 Zalewa Relationship added child of 0003246
2017-09-18 07:38 Zalewa Note Added: 0018309
2017-09-18 19:40 WubTheCaptain Note Added: 0018328
2017-09-19 09:29 WubTheCaptain Note Added: 0018342
2017-09-20 20:54 Zalewa Note Added: 0018352
2017-09-20 21:57 WubTheCaptain Note Added: 0018354
2017-09-20 22:02 WubTheCaptain Note Edited: 0018354 View Revisions
2017-09-20 22:12 WubTheCaptain Note Edited: 0018354 View Revisions






Questions or other issues? Contact Us.

Links


Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker