Steven Chamberlain:
> Finally I ended up with this:
> 
> $ find foo/ -type f -print0 > filelist
> $ tar -Jcvf foo.tar.xz -T filelist --null
> 
> Does that seem like the neatest way, or do you have better suggestions?

You are missing the actual sorting on this one. ;)

Suggested solution:

    find foo -print0 | LC_ALL=C sort -z |
        tar --null -T - --no-recursion -Jcvf foo.tar.xz

> (I thought this problem would be quite common, so I could add it to the
> Wiki FAQ).

It's there already:
https://wiki.debian.org/ReproducibleBuilds/FileOrderInTarballs

-- 
Lunar                                .''`. 
lu...@debian.org                    : :Ⓐ  :  # apt-get install anarchism
                                    `. `'` 
                                      `-   

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Reproducible-builds mailing list
Reproducible-builds@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds

Reply via email to