pacman/build-aux
Jonas Witschel f5f9e0f4ea makepkg: use bsdtar --no-read-sparse for archive creation if available
bsdtar uses the "pax" TAR archive format by default, which has support for
storing sparse file information in the archive. Unfortunately this is a source
of unreproducibility because the sparse encoding is taken from the file system
and different file systems handle sparse files differently: some file systems
have no support for sparsely encoded files at all, and even file systems with
sparse file support can report different file information for identical files
due to differing implementations.

As a real world example where this happens, consider the Arch Linux package
"brotli-testdata 1.0.9-7", which contains a sparsely encoded all-zeros file
"usr/share/brotli/testdata/zeros". Building this package on a btrfs file system
yields a different package than building it on tmpfs or ext4 solely due to
different sparse file information that gets recorded in the package tarball.

To improve the reproducibility of archives containing sparsely encoded files,
libarchive version 3.6.0 introduces a new --no-read-sparse option. This skips
reading sparse file information from disk entirely and therefore stores files
"expanded" in the archive, which is the only way to make them reliably
reproducible across file systems.

makepkg will use this option if libarchive is recent enough to support it,
which is detected at build time.

Signed-off-by: Allan McRae <allan@archlinux.org>
2022-03-11 09:43:59 +10:00
..
.gitignore Patch ltmain on autoreconf 2013-07-22 13:27:47 +10:00
cat-test-file gitlab-ci: print output and logs for failed tests 2021-01-21 17:18:24 +10:00
edit-script.sh.in makepkg: use bsdtar --no-read-sparse for archive creation if available 2022-03-11 09:43:59 +10:00
meson-make-symlink.sh meson: make our symlinking script more portable 2021-04-23 09:48:08 +10:00
print-failed-test-output gitlab-ci: print output and logs for failed tests 2021-01-21 17:18:24 +10:00
script-wrapper.sh.in meson: add a wrapper to bootstrap scripts from within build dir 2018-11-02 03:16:34 -04:00
update-copyright Move update-copyright into build-aux 2019-11-05 15:25:52 +10:00
update-po build-aux: detect build dir based on build.ninja 2019-08-05 18:26:21 +10:00