From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Guix binary tarball Date: Sun, 17 May 2015 23:34:49 +0200 Message-ID: <87iobqj3ba.fsf@gnu.org> References: <20150515164602.GA13539@debian> <87382xwyoz.fsf@gnu.org> <20150515173748.GA15397@debian> <87twvdcjwk.fsf@netris.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51069) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yu6D4-0000Fb-W5 for guix-devel@gnu.org; Sun, 17 May 2015 17:34:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yu6Cx-00078a-N0 for guix-devel@gnu.org; Sun, 17 May 2015 17:34:58 -0400 Received: from hera.aquilenet.fr ([2a01:474::1]:34961) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yu6Cx-000786-G3 for guix-devel@gnu.org; Sun, 17 May 2015 17:34:51 -0400 In-Reply-To: <87twvdcjwk.fsf@netris.org> (Mark H. Weaver's message of "Fri, 15 May 2015 22:53:47 -0400") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Mark H Weaver Cc: guix-devel@gnu.org Mark H Weaver skribis: > Andreas Enge writes: > >>> > Could these directories be left out of the tarball and only their >>> > contents be kept in? >>> No. Maybe we can fix it by using two tar invocations with different >>> --owner. >> >> Well, you never know what permissions the directories have on the target >> machine, and these are also changed. Maybe one needs to untar with parti= cular >> options. > > I looked in the GNU tar manual, and found this: > > `--no-overwrite-dir' > Preserve metadata of existing directories when extracting files > from an archive. *Note Overwrite Old Files::. I experimentally determined that --no-overwrite-dir has no effect but that --skip-old-files does what we need: ownership and permissions on /var and /root are preserved, and files are extracted correctly in those directories. Hence 8c3a5d7. Thanks, Ludo=E2=80=99.