From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Petazzoni Date: Tue, 21 Mar 2017 23:16:34 +0100 Subject: [Buildroot] [PATCH 01/16] download/git: create GNU format tar files In-Reply-To: <20170321000712.26500-2-arnout@mind.be> References: <20170321000712.26500-1-arnout@mind.be> <20170321000712.26500-2-arnout@mind.be> Message-ID: <20170321231634.5da7045e@free-electrons.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Hello, On Tue, 21 Mar 2017 01:06:57 +0100, Arnout Vandecappelle (Essensium/Mind) wrote: > On most distros, the tar format defaults to GNU. However, at build time > the default format may be changed to posix. Also, future versions of > tar will default to posix. > > Since we want the tarballs created by the git download method to be > reproducible (so their hash can be checked), we should explicitly > specify the format. Since existing tarballs on sources.buildroot.org > use the GNU format, and also the existing hashes in the *.hash files > are based on GNU format tarballs, we use the GNU format. > > In addition, the Posix format encodes atime and ctime as well as mtime, > but tar offers no option like --mtime to override them. In the GNU > format, atime and ctime are only encoded if the --incremental option is > given. > > Signed-off-by: Arnout Vandecappelle (Essensium/Mind) > Cc: Peter Seiderer > --- > Peter, can you test if this solves the issue for you? > --- > support/download/git | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) Applied to master, thanks. We require tar 1.17 at least, and I checked that tar 1.17 supports --format=gnu. Thomas -- Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com