Commit af8542f5 authored by Ian Goldberg's avatar Ian Goldberg

Attempt to build the tarball itself reproducibly

parent a6285e2a
......@@ -24,6 +24,11 @@ EXTRA_DIST= dialogs.h gtk-dialog.h gtk-ui.h otr-plugin.h ui.h \
DISTCLEANFILES= intltool-extract intltool-merge intltool-update
# Don't include a filename or timestamp in the dist .tar.gz file, so that
# we can create a reproducible tarball (coupled with setting am__tar in
override GZIP_ENV='--best --no-name'
source_date_epoch: FORCE
git log --format=%ct -1 > source_date_epoch
......@@ -13,6 +13,14 @@ m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
dnl Cause "make dist" to create a reproducible tarball (coupled with
dnl setting GZIP_ENV in Note that this relies on the
dnl file source_date_epoch existing, which is created by a rule in
dnl That file is included in the tarball (so that we
dnl have a timestamp on which to base reproducible binary builds *from*
dnl the tarball), so it will be created before this command is run.
AC_SUBST([am__tar],['( export SOURCE_DATE_EPOCH=`tr -cd 0-9 < source_date_epoch`; chmod -R u=rwX,go=rX "$$tardir"; find "$$tardir" -exec touch -d @$${SOURCE_DATE_EPOCH} {} \; -print0 | LC_ALL=C sort -z | $${TAR-tar} --owner=root --group=root --numeric-owner --no-recursion --null -T - -chf - )'])
dnl We do not want to create a .a for the plugin, so disable by default.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment