From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 4AEF7138334 for ; Wed, 21 Nov 2018 13:10:23 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B828BE0895; Wed, 21 Nov 2018 13:10:18 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 52E18E0883 for ; Wed, 21 Nov 2018 13:10:18 +0000 (UTC) Received: from gentoo.org (unknown [IPv6:2001:980:3ff0:64:5054:ff:fe0b:7015]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: grobian) by smtp.gentoo.org (Postfix) with ESMTPSA id D9412335C5D for ; Wed, 21 Nov 2018 13:10:04 +0000 (UTC) Date: Wed, 21 Nov 2018 14:10:00 +0100 From: Fabian Groffen To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] [pre-GLEP r2] Gentoo binary package container format Message-ID: <20181121131000.GC28829@gentoo.org> Mail-Followup-To: gentoo-dev@lists.gentoo.org References: <1542453700.31427.2.camel@gentoo.org> <1542745997.18030.3.camel@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Pk6IbRAofICFmK5e" Content-Disposition: inline In-Reply-To: <1542745997.18030.3.camel@gentoo.org> User-Agent: Mutt/1.10.1 (SunOS 5.11, VIM - Vi IMproved 8.1) Organization: Gentoo Foundation, Inc. X-Archives-Salt: 704a18b2-d208-433d-989d-b4de8b95dec4 X-Archives-Hash: 3686f22b924a0d203053033f03dcdb59 --Pk6IbRAofICFmK5e Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 20-11-2018 21:33:17 +0100, Micha=C5=82 G=C3=B3rny wrote: > The volume label > ---------------- >=20 > The volume label provides an easy way for users to identify the binary > package without dedicated tooling or specific format knowledge. >=20 > The implementations should include a volume label consisting of fixed > string ``gpkg:``, followed by a single space, followed by full package > identifier. However, the implementations must not rely on the volume > label being present or attempt to parse its value when it is. >=20 > Furthermore, since the volume label is included in the .tar archive > as the first member, it provides a magic string at a fixed location > that can be used by tools such as file(1) to easily distinguish Gentoo > binary packages from regular .tar archives. Just for clarity on this point. Are you proposing that we patch file(1) to print the Volume Header here? file-5.35 seems to not say much but "tar archive" or "POSIX tar archive" for tar-files containing a Volume Header as shown by tar -tv. > Container and archive formats > ----------------------------- >=20 > During the debate, the actual archive formats to use were considered. > The .tar format seemed an obvious choice for the image archive since > it is the only widely deployed archive format that stores all kinds > of file metadata on POSIX systems. However, multiple options for > the outer format has been debated. You mention POSIX, which triggered me. I think it would be good to specify which tar format to use. POSIX.1-2001/pax format doesn't have a 100/256 char filename length restriction, which is good but it is not (yet) used by default by GNU tar. busybox tar can read pax tars, it seems. Thanks, Fabian --=20 Fabian Groffen Gentoo on a different level --Pk6IbRAofICFmK5e Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEELUvHd/Gtp7LaU1vuzpXahU5EQpMFAlv1WScACgkQzpXahU5E QpPKsgf/RDYSIKKjfYwSEkxvVS4DUShgYhd+y/Wju1cvx4cL0iukjXvzY/T6tzFu N0n+j91nnK93s40DJD3Sn8gn9W/wM/UVop8Jk0enTXnyizHQ5x0shUeiSyQx/5ns e36xsSRKEeC7+4LI9R0jxmLteJ2LBp59fwh5akTxJEg5Xcoq51ogub0KAi2skP9i giKMWo2LD9xsKLXP5blruo9eJWmlx8Y7rV9A9yGgk3HyTPZMT0hykTXsV/y5UXsd 9V7t8j7MKE5V14kPjOVykwmG9+zAApFndgHotDnDE3F24wR+jXTN1Mnz2VkVmG5P KKxGgmUzktTfsU6qgWeQ7xKFuBHXwQ== =2oB3 -----END PGP SIGNATURE----- --Pk6IbRAofICFmK5e--