From owner-freebsd-hackers@freebsd.org Wed Dec 9 06:25:07 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BC7119D4C4A for ; Wed, 9 Dec 2015 06:25:07 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from shell1.rawbw.com (shell1.rawbw.com [198.144.192.42]) by mx1.freebsd.org (Postfix) with ESMTP id AB1111ED6 for ; Wed, 9 Dec 2015 06:25:07 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from yuri.doctorlan.com (c-50-184-63-128.hsd1.ca.comcast.net [50.184.63.128]) (authenticated bits=0) by shell1.rawbw.com (8.15.1/8.15.1) with ESMTPSA id tB96P0br035039 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Tue, 8 Dec 2015 22:25:01 -0800 (PST) (envelope-from yuri@rawbw.com) X-Authentication-Warning: shell1.rawbw.com: Host c-50-184-63-128.hsd1.ca.comcast.net [50.184.63.128] claimed to be yuri.doctorlan.com Subject: Re: How to get the deterministic result for FreeBSD tar(1)? To: Freebsd hackers list References: <5666B828.5000306@rawbw.com> From: Yuri Message-ID: <5667C93C.60307@rawbw.com> Date: Tue, 8 Dec 2015 22:25:00 -0800 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: <5666B828.5000306@rawbw.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Dec 2015 06:25:07 -0000 On 12/08/2015 02:59, Yuri wrote: > So I have two questions: > 1. How do I actually achieve the output determinism for tar(1)? > 2. Is there an agreement that this is a bug that too long or non-ASCII > path name triggers the leakage of ctime into a tar file? Answering to myself: turns out this is a major bug in libarchive, making tar(1) in general unable to produce the deterministic output. https://github.com/libarchive/libarchive/pull/623 Yuri