Reproducible builds not working with musl?
Kenth Eriksson
Having trouble with reproducible builds in yocto on dunfell release with musl as libc. E.g. I can see that the build path for musl crti assembler file is leaking through and becomes visible when I do strings on libraries and binaries.
|
|
Alexander Kanavin
On Mon, 21 Nov 2022 at 15:31, Kenth Eriksson
<kenth.eriksson@...> wrote: Testing reproducibility properly is a heavy exercise (you need to build everything from scratch, then compare), and so we do it only for glibc. There have been recent fixes and tests to check that host paths do not leak into target files, but dunfell probably has neither the fix nor the test. Alex |
|
Joshua Watt
On 11/21/22 08:38, Alexander Kanavin wrote:
On Mon, 21 Nov 2022 at 15:31, Kenth ErikssonThis is correct; it's hard for upstream to test every possible combination for reproducibility. We do try to get some decent coverage, but ultimately if you really care about reproducible builds, you should setup a reproducible build test for your exact combination. We've tried to make this pretty easy, see https://youtu.be/zXEdqGS62Wc?t=1021
|
|
Kenth Eriksson
I see. Any particular fixes you can point me to that may be relevant also for musl?
|
|
Alexander Kanavin
You have to find them yourself with gut bisect I would say. Too many things have changed. Alex On Mon 21. Nov 2022 at 17.07, Kenth Eriksson <kenth.eriksson@...> wrote: I see. Any particular fixes you can point me to that may be relevant also for musl? |
|