[Top][All Lists]

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

Re: Rebuilding archives

From: Edward Welbourne
Subject: Re: Rebuilding archives
Date: Wed, 09 Sep 2015 23:43:41 +0000

> My problem is that Fedora have choosen to ship a broken version of
> "ar" that always sets the timestamp of all archive members to 1970-01-01
> unless one invokes it with the U flag.

For the sake of anyone else curious about what that means, here's what
man ar told me when I looked up the details:

       D   Operate in deterministic mode.  When adding files and the archive
           index use zero for UIDs, GIDs, timestamps, and use consistent file
           modes for all files.  When this option is used, if ar is used with
           identical options and identical input files, multiple runs will
           create identical output files regardless of the input files'
           owners, groups, file modes, or modification times.

           If binutils was configured with --enable-deterministic-archives,
           then this mode is on by default.  It can be disabled with the U
           modifier, below.

       U   Do not operate in deterministic mode.  This is the inverse of the D
           modifier, above: added files and the archive index will get their
           actual UID, GID, timestamp, and file mode values.

           This is the default unless binutils was configured with

So Fedora has opted to --enable-deterministic-archives.
(I offer no opinion on the virtue or vice of that choice.)


reply via email to

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