bug-xorriso
[Top][All Lists]
Advanced

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

Re: [Bug-xorriso] generating reproducible ISOs with xorriso


From: Daniel Kahn Gillmor
Subject: Re: [Bug-xorriso] generating reproducible ISOs with xorriso
Date: Fri, 05 Jun 2015 15:19:17 -0400
User-agent: Notmuch/0.20.1 (http://notmuchmail.org) Emacs/24.4.1 (x86_64-pc-linux-gnu)

On Fri 2015-06-05 14:24:28 -0400, Thomas Schmitt wrote:
> Ok. Now we are balancing on the edge of reproducability.
> All files with the same content - hardlink or not - will have 
> the same sorting key value. You will have to make sure that
> the items enter the sort always in the same starting order,
> because the outcome is not defined with same-key items.
> Like this:
>
>   find . -type f -print0 | sort | xargs -0 md5sum | sort | ...

I think you want "sort -z" in the first stage of the pipeline here.

> Let's hope for a sort algorithm that is deterministic with
> same-key items. :))

Well, the second sort invocation here is over the whole line, not just
the first field, so key=value, so we should be OK :)

> This does still not give hardlink siblings the same weight,
> because they are counted individually in the sort-list.
> But the process of deciding which weight will apply to
> the shared IsoFileSrc will be deterministic in libisofs.

sounds good.

>> (and a pony! :) )
>
> xorriso-1.4.2 will hopefully be released with pony.

\o/  Thanks, Thomas!

        --dkg



reply via email to

[Prev in Thread] Current Thread [Next in Thread]