# Reproducible builds

**URL:** <https://forum.endeavouros.com/t/reproducible-builds/53384>\
**Category:** Linux lounge\
**Created:** [April 1, 2024, 5:56am UTC](https://forum.endeavouros.com/t/reproducible-builds/53384 "2024-04-01T05:56:00Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![keybreak](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/keybreak/32/9257_2.png) [@keybreak](https://forum.endeavouros.com/u/keybreak)\
**Post date:** [April 1, 2024, 5:56am UTC](https://forum.endeavouros.com/t/reproducible-builds/53384/1 "2024-04-01T05:56:00Z")

</div>

Reading stuff around [`xz` backdoor saga](https://forum.endeavouros.com/t/the-upstream-xz-repository-and-the-xz-tarballs-have-been-backdoored/53253), i came to realization that to prevent some of that stuff there were such initiatives a long time ago, which has worked to verify binaries are corresponding to source code.

> **[Reproducible Builds — a set of software development practices that create an...](https://reproducible-builds.org/)**
>
> Reproducible builds are a set of software development practices that create an independently-verifiable path from source to binary code.

What i didn’t realize before, that there are already successful whole OS packages reproducible builds and preparations for verification tools for normal users.

Arch Linux state:  
[https://tests.reproducible-builds.org/archlinux/archlinux.html](https://tests.reproducible-builds.org/archlinux/archlinux.html)  
[https://reproducible.archlinux.org/](https://reproducible.archlinux.org/)

Other projects:  
[https://reproducible-builds.org/who/projects/](https://reproducible-builds.org/who/projects/)

---

<div class="post-metadata">

**Author:** ![Kresimir](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/kresimir/32/73739_2.png) [@Kresimir](https://forum.endeavouros.com/u/Kresimir)\
**Post date:** [April 1, 2024, 7:03am UTC](https://forum.endeavouros.com/t/reproducible-builds/53384/2 "2024-04-01T07:03:18Z")

</div>

Reproducible builds guarantee that the package maintainer did not inject his own malware into the package when building it. This is the least concern, because Arch TUs are, by definition, trusted users. You and I, and everyone here, obviously trusts them unconditionally, otherwise we wouldn’t be using Arch. They have the power to screw us, and if they decide to do so, we are screwed. No question about that.

Anyone who doubts them and continues to use their packages is clearly in contradiction and should immediately stop, and probably use Gentoo.

Consequently, they only get one change, if malware is found in Arch repos and it is proven to be deliberately injected there by some TU, the only rational thing is to stop using Arch.

The problem with malware in FOSS is clearly not enough code review, reproducible builds won’t fix that.

Reproducible builds would be nice for binary distributed AUR packages, though, for stuff that takes hours to build, like LibreWolf. For such big packages, however, reproducibility is just a dream.

---

<div class="post-metadata">

**Author:** ![keybreak](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/keybreak/32/9257_2.png) [@keybreak](https://forum.endeavouros.com/u/keybreak)\
**Post date:** [April 1, 2024, 7:11am UTC](https://forum.endeavouros.com/t/reproducible-builds/53384/3 "2024-04-01T07:11:09Z")

</div>

> [@Kresimir](#):
>
> Anyone who doubts them and continues to use their packages is clearly in contradiction and should immediately stop, and probably use Gentoo.

Well thx buddy, yes i’m schizo 🤡 because i do **NOT** trust anyone, but not quite ready to use Gentoo just yet 🤣

> [@Kresimir](#):
>
> This is the least concern, because Arch TUs are, by definition, trusted users.

Every distro TU have missed `xz`, and just some M$ dev benchmark autist accidentally catched it…yeah 🤣  
There’s no such thing as trusted, in my view.  
Anyone can be a malicious actor, even if it’s very long time persistent to gain trust…and nobody in universe can **really** audit all the source code on it’s own, be it Gentoo user or super-h4xXx0r…

> [@Kresimir](#):
>
> Reproducible builds would be nice for binary distributed AUR packages, though, for stuff that takes hours to build, like LibreWolf. For such big packages, however, reproducibility is just a dream.

Not really, if you look at packages stats of Arch above…if Chromium is reproducible, there’s no reason Firefox / LibreWolf wouldn’t in the near future.

---

<div class="post-metadata">

**Author:** ![Kresimir](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/kresimir/32/73739_2.png) [@Kresimir](https://forum.endeavouros.com/u/Kresimir)\
**Post date:** [April 1, 2024, 7:12am UTC](https://forum.endeavouros.com/t/reproducible-builds/53384/4 "2024-04-01T07:12:14Z")

</div>

> [@keybreak](#):
>
> Every distro TU have missed `xz`

Reproducible build wouldn’t make `xz` any easier to find. It would be reproducible with malware.

> [@keybreak](#):
>
> Well thx buddy, yes i’m schizo 🤡 because i do **NOT** trust anyone, but not quite ready to use Gentoo just yet 🤣

There is no way to rationally justify holding those two positions at the same time.

---

<div class="post-metadata">

**Author:** ![keybreak](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/keybreak/32/9257_2.png) [@keybreak](https://forum.endeavouros.com/u/keybreak)\
**Post date:** [April 1, 2024, 7:13am UTC](https://forum.endeavouros.com/t/reproducible-builds/53384/5 "2024-04-01T07:13:20Z")

</div>

Actually it would, because it was possible due to modified tarball on github, which would be catched by mismatch.

> [@Kresimir](#):
>
> There is no way to rationally justify holding those two positions at the same time.

![honka_memes-128px-1](https://forum.endeavouros.com/uploads/default/original/3X/1/6/16b766d3ad629db2f604538cf328c406c444d044.gif)

---

<div class="post-metadata">

**Author:** ![Kresimir](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/kresimir/32/73739_2.png) [@Kresimir](https://forum.endeavouros.com/u/Kresimir)\
**Post date:** [April 1, 2024, 7:15am UTC](https://forum.endeavouros.com/t/reproducible-builds/53384/6 "2024-04-01T07:15:21Z")

</div>

> [@keybreak](#):
>
> Actually it would, because it was possible due to modified tarball on github, which would be catched by mismatch.

As far as I understand, the malware injection was part of the automated build scripts, in some unit tests that are run automatically after build.

Therefore, it would not be detected. You’d build the tarball, I’d build the tarball, and we’d have the exact same tarball. With malware.

---

<div class="post-metadata">

**Author:** ![keybreak](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/keybreak/32/9257_2.png) [@keybreak](https://forum.endeavouros.com/u/keybreak)\
**Post date:** [April 1, 2024, 7:16am UTC](https://forum.endeavouros.com/t/reproducible-builds/53384/7 "2024-04-01T07:16:15Z")

</div>

> [@Kresimir](#):
>
> Therefore, it would not be detected. You’d build the tarball, I’d build the tarball, and we’d have the exact tarball. With malware.

That’s why one should build from git in order to compare…not some…Micro$oft GitHub hosted BALLS!

![honka_animated-128px-33](https://forum.endeavouros.com/uploads/default/original/3X/d/f/df8126bbba59902cb1b7be3dbbe5b40be2047790.gif)

---

<div class="post-metadata">

**Author:** ![Zesko](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/zesko/32/77795_2.png) [@Zesko](https://forum.endeavouros.com/u/Zesko)\
**Post date:** [April 1, 2024, 7:17am UTC](https://forum.endeavouros.com/t/reproducible-builds/53384/8 "2024-04-01T07:17:38Z")

</div>

This is an example of what I was looking for. I can finally see any build log of keepassxc.

But where is checksum of the keepassxc’s binary at the end of the build log result?

---

<div class="post-metadata">

**Author:** ![Kresimir](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/kresimir/32/73739_2.png) [@Kresimir](https://forum.endeavouros.com/u/Kresimir)\
**Post date:** [April 1, 2024, 7:17am UTC](https://forum.endeavouros.com/t/reproducible-builds/53384/9 "2024-04-01T07:17:43Z")

</div>

> [@keybreak](#):
>
> there’s no reason Firefox / LibreWolf wouldn’t in the near future.

Yes there is, have you seen the source code for Firefox? 🤣

---

<div class="post-metadata">

**Author:** ![keybreak](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/keybreak/32/9257_2.png) [@keybreak](https://forum.endeavouros.com/u/keybreak)\
**Post date:** [April 1, 2024, 7:22am UTC](https://forum.endeavouros.com/t/reproducible-builds/53384/10 "2024-04-01T07:22:10Z")

</div>

This tool might be of help

> **[GitHub - archlinux/archlinux-repro: Tools to reproduce arch linux packages](https://github.com/archlinux/archlinux-repro)**
>
> Tools to reproduce arch linux packages. Contribute to archlinux/archlinux-repro development by creating an account on GitHub.

> Work in progress. Please read the code before using.
