Improve reproduciblity of some packages

I figure these out when trying to run the build in docker, which provides an environment slightly different to the one used when building in qemu/chroot/bwrap with rootfs.py
This commit is contained in:
Eduardo Sánchez Muñoz 2022-12-01 23:14:38 +01:00
parent 9634b6d059
commit 8adab8b568
4 changed files with 23 additions and 3 deletions

View file

@ -31,9 +31,14 @@ src_prepare() {
src_configure() {
# FORCE_UNSAFE_CONFIGURE disables "you should not run configure as root"
# error from configuration system of coreutils.
# gl_cv_func_getcwd_path_max is set to improve reproducibility.
# In some environments, the configure script would set it to
# "no, but it is partly working", and in others it would set it
# to "yes", producing different build outputs.
FORCE_UNSAFE_CONFIGURE=1 ./configure CFLAGS="-static" \
--prefix="${PREFIX}" \
--build=i386-unknown-linux-musl
--build=i386-unknown-linux-musl \
gl_cv_func_getcwd_path_max="no, but it is partly working"
}
src_compile() {