Skip to content

debian/dash.postinst: reproducible symlink mtime if SOURCE_DATE_EPOCH is set

If the postinst is executed while SOURCE_DATE_EPOCH is set, then this is not a regular installation but the postinst is called as part of building a reproducible chroot tarball or image. Since man-db stores symlink modification times in its index.db we need to set a reproducible mtime.

As of Debian Bullseye only three items are left to be solved to make creating a Priority:standard chroot bit-by-bit reproducible:

This MR solves the last item. Most symlinks are created by dpkg's update-alternatives and I have a separate patch for that. But the man-page symlinks created in the dash postinst are then the only remaining piece left to make a Debian Priority:standard chroot bit-by-bit reproducible.

Also see https://wiki.debian.org/ReproducibleInstalls

Merge request reports

Loading
OSZAR »