Re: [xfstests-bld PATCH 2/2] Make the build and creation of xfstests.tar.gz to be reproducible

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]



Hi Ted,

On Sun, Aug 13, 2017 at 01:32:24PM -0400, Theodore Ts'o wrote:
> +find xfstests -print0 | LC_ALL=C sort -z | \
> +    tar c --owner=0 --group=0 --numeric-owner --mtime="@${SOURCE_DATE_EPOCH}" \
> +    --mode=go+u-w --null --no-recursion -T - | $GZIP -9n > xfstests.tar.gz

This step isn't reproducible for me because earlier in the script $GZIP can be
set to pigz, which differs from gzip.  'gzip -n' omits the filename and
timestamp from the gz file, but 'pigz -n' only omits the filename, and the -T
option is needed to also omit the timestamp.  I think the following would work:

if type -P pigz >/dev/null; then
    GZIP="pigz -n -T"
else
    GZIP="gzip -n"
fi

Eric
--
To unsubscribe from this list: send the line "unsubscribe fstests" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Filesystems Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux