Jérémy Bobbio wrote:
> Suggested solution:
> find foo -print0 | LC_ALL=C sort -z |
> tar --null -T - --no-recursion -Jcvf foo.tar.xz
Seems ideal to me.
> > (I thought this problem would be quite common, so I could add it to the
> > Wiki FAQ).
> It's there already:
Oh, brilliant, thanks! It was a few days ago that I looked through the
Wiki pages for this but I see it there now.
This isn't really limited to data.tar but potentially any tarball.
Linux packaging ships an equivalent linux-source-3.16.tar.xz built
from debian/rules.real in a probably non-reproducible way:
cd '$(BUILD_DIR)'; tar -caf 'linux-source-$(UPSTREAMVERSION).tar.xz'
so I could file a bug requesting to patch that too.
Plenty more packages ship tarballs though:
so I wonder if GNU tar itself could make this any easier.
Reproducible-builds mailing list