Distribution.Simple.Program.Ar: Emulate GNU ar's deterministic mode.
Distribution.Simple.Program.Ar: Emulate GNU ar's deterministic mode.

After invoking ar(1), replace each object file's metadata with zero for the
mtime, UID and GID, and 0644 for the file mode. Do not touch the existing
archive if the contents are the same.

This rewrites the previous patch to,
 ∙ also wipe UID, GID and file mode;
 ∙ do a single read/write for each header, and less seeking in general;
 ∙ do its work inside a temporary directory, via 'withTempDirectory';
   ∘ Which also deletes the temporary target when it's identical to the old.
 ∙ use Distribution.Compat.CopyFile.filesEqual;
 ∙ use the standard 'dieWithLocation' instead of invoking 'error'.

typelead/epm,garetxe/cabal,ian-ross/cabal,mightybyte/cabal,headprogrammingczar/cabal,ian-ross/cabal,rimmington/cabal,rimmington/cabal,themoritz/cabal,sopvop/cabal,kosmikus/cabal,gridaphobe/cabal,edsko/cabal,garetxe/cabal,gridaphobe/cabal,mightybyte/cabal,Helkafen/cabal,randen/cabal,ghc-android/cabal,thomie/cabal,gbaz/cabal,mydaum/cabal,fpco/cabal,plow-technologies/cabal,thoughtpolice/cabal,anton-dessiatov/cabal,kolmodin/cabal,plow-technologies/cabal,lukexi/cabal,beni55/cabal,fugyk/cabal,mmakowski/cabal,x-y-z/cabal,eric-stanley/cabal,seereason/cabal,sopvop/cabal,enolan/cabal,triplepointfive/cabal,corngood/cabal,edsko/cabal,typelead/epm,anton-dessiatov/cabal,eric-stanley/cabal,seereason/cabal,Heather/cabal,Heather/cabal,martinvlk/cabal,enolan/cabal,trskop/cabal,ghc-android/cabal,plumlife/cabal,thoughtpolice/cabal,bennofs/cabal,fpco/cabal,mmakowski/cabal,thomie/cabal,randen/cabal,kolmodin/cabal,corngood/cabal,themoritz/cabal,beni55/cabal,christiaanb/cabal,martinvlk/cabal,themoritz/cabal,Peaker/cabal,lukexi/cabal,mydaum/cabal,x-y-z/cabal,Helkafen/cabal,christiaanb/cabal,valderman/cabal,triplepointfive/cabal,fugyk/cabal,gbaz/cabal,Peaker/cabal,plumlife/cabal,bennofs/cabal,valderman/cabal,trskop/cabal,sopvop/cabal,kosmikus/cabal,headprogrammingczar/cabal