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 1RbEDb-0004jR-97 for garchives@archives.gentoo.org; Thu, 15 Dec 2011 16:31:39 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 404D421C0F2; Thu, 15 Dec 2011 16:31:25 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id CA32D21C0E4 for ; Thu, 15 Dec 2011 16:30:47 +0000 (UTC) Received: from vapier.localnet (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 1FEB7643ED; Thu, 15 Dec 2011 16:30:47 +0000 (UTC) From: Mike Frysinger Organization: wh0rd.org To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] Six month major project on Gentoo Date: Thu, 15 Dec 2011 11:30:46 -0500 User-Agent: KMail/1.13.7 (Linux/3.1.0-atsc; KDE/4.6.5; x86_64; ; ) Cc: linux.gentoo.dev@googlegroups.com References: In-Reply-To: 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; boundary="nextPart1715882.orCV0TYkv8"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201112151130.47143.vapier@gentoo.org> X-Archives-Salt: 088f2f0a-1710-48cb-a477-6afc7e18d73b X-Archives-Hash: 38bb369f47b93c8703f565fbc727eaa5 --nextPart1715882.orCV0TYkv8 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable On Thursday 15 December 2011 07:43:26 Rich Freeman wrote: > On Thu, Dec 15, 2011 at 12:39 AM, Nirbheek Chauhan wrote: > > Nevertheless, the basic bug is about changing the distfile repository > > format in such a way that a single repo can contain several distfiles > > built with differing build conditions. Putting metadata in the > > filename is only one way of ensuring that. >=20 > Well, having the filename vary when the metadata changes is the only > way of ensuring that. Putting the metadata in the filename is just > one of many ways to make the filename vary. there is more raw metadata available than fits into a filename. so that is= =20 already a non-starter. if people want to post multiple binpkgs with different metadata > Another solution (which I can already sense the objections to), would > be to content-hash the files and use that as the filename. Then use > indexes to point to the files. You could use symlink indexes to point > to the files so that superficially it looks the same as it does now > for the last version emerged. Then people looking for a particular > set of metadata could use more detailed indexes to find the right > file. Portage could look for an exact match when trying to merge a > binpkg since searching indexes is a trivial problem. we already hash all the files (i.e. the CONTENTS file), so using the hash o= f=20 that file alone wouldn't be a bad idea. although i think that file gets=20 generated on the fly when merging the binpkg (seems like a waste to not cac= he=20 that in the binary package ...). > There are countless variations on this as well - like sticking a copy > of the environment for each package in a separate text file with the > same base name so that it is easy to grep/search/etc. the env is already "trivial" to extract: qtbz2 -x -O bison-2.5.tbz2 | qxpak -O -x - environment.bz2 | bzgrep foo > You can also make it more user-friendly by keeping the PF in the > filename followed by the hash - like gvim-1.23-r1-723ba298d92f. In > such a case you probably don't even need to index the PFs. portage should be using the generated "Packages" index to look up actual tb= z2=20 filenames, so having ${PF}-.tbz2 shouldn't be too painful. =2Dmike --nextPart1715882.orCV0TYkv8 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) iQIcBAABAgAGBQJO6iC3AAoJEEFjO5/oN/WBO6oQAKwOhdurf9S8BfQjoiXNHISG b4ZUHcNPzPm1zuF6mVa4rmmq0f/RAihxPcMPZHUUWcG3EUbpJ1N4mk/2F60WdoTP gRoAKCSm42At0IFPMkWy4bxEJhXwDodHzdXM60OmWV0Fd7yWtx+wulw48letHBeU x8dYlgWZRlyZ5uhIujlB2cry8cJfuy47TTbeCqHXnpwyV3nRgwfTomyPFtnQLMN5 0hu1JJzxdVus+zPnXo21RXJ07btPSYIA32mtIv71LGXVdMaGkNued9gmPyxylYL5 AY+UIyHODQseNB4/r6xtsB9ayq/GA1CWtTG4ZrhA42BSOt57m4A2FzIlXyd47IBM MfcfJcY7sSQGElEqLXHqm7DYOMKA/Hs2zI97zowMgEm0gjiKN5FXX1WSCihoO+Je gijTKJPGdqDSDO+OQBgGOIucpL0AWGyubfHucMNWOmoR4eyknd6WRexqXIR/Eeua q5JEvuWjGAar/olA1SAc9YJwmyMOYejxnTVymdUXwTdLEQI0bQm9KLrAaMqTxmad RlU/a09+q7AjraUTVUsfUBYE7pR1xFGk/PENrKXyLewHOy5XYs5jPeHt0Fg3Fd66 G2FV5EwGXv+Y5+o0b4wMYJZP4zYNCGu3JK7boNEViRO+1/q2RMNTkYjUN7Hcb5NI Xr1b3mB3yu4UUCfkyuwd =DLNd -----END PGP SIGNATURE----- --nextPart1715882.orCV0TYkv8--