From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1OJJsH-00083D-BL for garchives@archives.gentoo.org; Tue, 01 Jun 2010 05:18:49 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B6AA3E062C; Tue, 1 Jun 2010 05:18:01 +0000 (UTC) Received: from mail-pv0-f181.google.com (mail-pv0-f181.google.com [74.125.83.181]) by pigeon.gentoo.org (Postfix) with ESMTP id 84FFDE062C for ; Tue, 1 Jun 2010 05:18:01 +0000 (UTC) Received: by pvc22 with SMTP id 22so545684pvc.40 for ; Mon, 31 May 2010 22:18:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:date:from:to:subject :message-id:references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=+7oam/bPu0EUk2G90O9ER0lz0MbUiPekzpKk6eXYOCk=; b=L0FaWRO0ILvj2h1Mv+k/WpgUUaU0GbqXsNWtK6SF3Nc2NFOm4mNzpUvmyFaWgsCd4G 5od/i9XGyM481x2AGVzoCtk2sDO70ur1QDCysfoP0tFfhFZbEH7CYo+1OYETfwc/FhUg bs/ZxjfI7KP8DDugyJOfkgq4MMUL/zEzT3aso= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=luViIH9r9avUMpybazBIgNka+/qgy6Ev+DhTLIDY2QDC4CF6Ol3dGbIkEF9/gHVQ6z UyBUUc1RmO7Z/kTzVrQpCYGM1rJYFS790h6xXaxc2pLWUWKDrpXUqNboKFBbhW/Cnm/R cvEVS9LnEpxISz1mxQgKiR5tagpbfnJFNsYPU= Received: by 10.115.28.1 with SMTP id f1mr4365956waj.181.1275369480948; Mon, 31 May 2010 22:18:00 -0700 (PDT) Received: from smtp.gmail.com (c-67-171-128-62.hsd1.wa.comcast.net [67.171.128.62]) by mx.google.com with ESMTPS id f11sm56043943wai.23.2010.05.31.22.17.58 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 31 May 2010 22:17:59 -0700 (PDT) Received: by smtp.gmail.com (sSMTP sendmail emulation); Mon, 31 May 2010 22:16:08 -0700 Date: Mon, 31 May 2010 22:16:08 -0700 From: Brian Harring To: gentoo-portage-dev@lists.gentoo.org Subject: Re: [gentoo-portage-dev] Package compression header for binhosts Message-ID: <20100601051608.GD19306@hrair> References: <4C047F52.30209@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-portage-dev@lists.gentoo.org Reply-to: gentoo-portage-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="YD3LsXFS42OYHhNZ" Content-Disposition: inline In-Reply-To: <4C047F52.30209@gentoo.org> User-Agent: Mutt/1.5.20 (2009-06-14) X-Archives-Salt: c56252f6-8385-48a0-b66c-b39e5f3caef4 X-Archives-Hash: 65c4aec54a921e3db1a19543915318a3 --YD3LsXFS42OYHhNZ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, May 31, 2010 at 08:32:34PM -0700, Zac Medico wrote: > Hi, >=20 > In order to support alternative compression types for binhost > packages, I was thinking about adding support for a header field in > the Packages index file. For example, a header line like > "PACKAGE_EXTENSION: txz" could be used to indicate that clients > should download files with txz extensions instead of tbz2 > extensions. I'm planning to add support for both tgz [1] and txz > extensions. >=20 > [1] http://bugs.gentoo.org/show_bug.cgi?id=3D142579 1) requires a version header bump 2) a header alone isn't useful unless it's specifiable per cpv entry;=20 thus it must be inheritable 3) PACKAGE_EXTENSION is overly verbose and unclear it's specifying=20 the compressor too; it's intention is for compression, state it as=20 such (I mention this in light of URI's existance where=20 PACKAGE_EXTENSION would only be a hint of compressor) Re: #1, there is a decent set of optimizations I'm kicking around in=20 pkgcore for the next version- a discussion should probably be started=20 there. Offhand, having a compression specific header (a simple enumeration=20 of known compressors) and a DEFAULT_URI that is python string=20 interpolation assembled (for example,=20 DEFAULT_URI=3D"%(host)s/%(category)s/%(pf)s.txz") seems wiser. Via=20 doing what I'm suggesting, it would be possible to do binpkg=20 repository 'views' w/out having to map each binpkg into the url space=20 for it. ~harring --YD3LsXFS42OYHhNZ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.15 (GNU/Linux) iEYEARECAAYFAkwEl5gACgkQsiLx3HvNzgf2UwCdE7VPsw9baaMhIznCmdPRvP8u m2wAoLcQEcPScMxxR0YnqtHZR0ZOxDrQ =nlh/ -----END PGP SIGNATURE----- --YD3LsXFS42OYHhNZ--