Closed andyli closed 5 years ago
What would be a proper fix? Should obuild sort the list of files prior to do anything, and not rely on the order given by the filesystem?
Exactly, sort all the linker inputs manually and it should be fine.
Looks like an easy patch. I know you have hacked into obuild in the past. Interested in submitting a patch?
I have been quite busy recently so I'm afraid I wouldn't have the time to do so soonish.
Personally, I have only sent cosmetic patches to obuild. I don't even know if linking needs files in a special order like topologic sort or something.
But today I managed to triage all obuild issues. That will be my great open source contribution of the day. :)
this issue is important for security, it allows people to trust that the binary they use was indeed produced from the source code of the given version
debian also has a reproducible builds infrastructure in place
The executable built by obuild, as well as the obuild bootstrap executable, are not reproducible, according to openSUSE's report: https://bugzilla.opensuse.org/show_bug.cgi?id=1087961
I tested it with an Ubuntu 16.04 machine:
I've also compared the
obuild.bootstrap
executables in the two builds, they are also different from each other.