11.0.2
openSUSE Tumbleweed
While working on reproducible builds for openSUSE, I found that
ripgrep man page content differs on different CPUs
--- /usr/share/man/man1/rg.1.gz
-11\&.0\&.2 \-SIMD \-AVX (compiled) +SIMD +AVX (runtime)
+11\&.0\&.2 \-SIMD \-AVX (compiled) \-SIMD \-AVX (runtime)
The strings come from ripgrep-11.0.2/src/app.rs fn runtime_cpu_features()
use my "rbk" script from the reproducibleopensuse repo (needs some setup and an openSUSE account) or do a distribution/release build on different CPUs (e.g. I use kvm -cpu qemu64 and -cpu host )
The man page differs depending on build machine CPU.
The man page should be the same on every build (everytime, everywhere)
See https://reproducible-builds.org/ for why this matters.
It's likely that the SIMD and AVX designations should be removed entirely from the man page, as they don't really make sense there. They are there probably because they are derived from the same template that drives the output of rg --version (which _should_ show the SIMD and AVX designations).
I tested your fix. Build is now reproducible.
Thanks.
Most helpful comment
I tested your fix. Build is now reproducible.
Thanks.