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 1Lhbzm-0006FL-QL for garchives@archives.gentoo.org; Thu, 12 Mar 2009 03:54:11 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3433BE02EB; Thu, 12 Mar 2009 03:54:10 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id E7777E02EB for ; Thu, 12 Mar 2009 03:54:09 +0000 (UTC) Received: from halo.dirtyepic.sk.ca (S0106001f3b27dbf9.mj.shawcable.net [70.64.208.8]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id 0C978641FC for ; Thu, 12 Mar 2009 03:54:08 +0000 (UTC) Date: Wed, 11 Mar 2009 21:55:31 -0600 From: Ryan Hill To: gentoo-council@lists.gentoo.org Subject: [gentoo-council] Re: Comparison of GLEP 54 and 'live ebuild' proposal Message-ID: <20090311215531.6074e045@halo.dirtyepic.sk.ca> In-Reply-To: <49B78AA8.4000101@gentoo.org> References: <20090310234231.3e664575@halo.dirtyepic.sk.ca> <49B78AA8.4000101@gentoo.org> X-Mailer: Claws Mail 3.7.1 (GTK+ 2.14.7; x86_64-pc-linux-gnu) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-council@lists.gentoo.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/xMdwEWeGEFncubwQoR2Vl.e"; protocol="application/pgp-signature"; micalg=PGP-SHA1 X-Archives-Salt: b2a4bf60-9ed9-455b-9f66-4d7c09461084 X-Archives-Hash: c00a445d63a60876485378a11feddb31 --Sig_/xMdwEWeGEFncubwQoR2Vl.e Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Wed, 11 Mar 2009 10:55:52 +0100 Luca Barbato wrote: > Ryan Hill wrote: > > I have some questions about the -live proposal. I'm sorry if some > > of this has been answered already; I haven't had the opportunity to > > follow it more closely. > >=20 > > The draft (http://dev.gentoo.org/~lu_zero/glep/liveebuild.rst) says > > that "At resolution the live keyword is substituted with a > > timestamp in the form of iso date". What is meant by "resolution" > > here? Does this mean that, having a gcc-4.4.0_prelive ebuild, > > 'emerge -p gcc' would show something like: > >=20 > > [ebuild U ] sys-devel/gcc-4.4.0_pre20090310 > >=20 > > If so, is there any way to identify that this is a live ebuild? >=20 > The ebuild itself has some embedded information so portage > could/should provide something like. >=20 > [ebuild U ] sys-devel/gcc-4.4.0_pre20090310 [from svn master > r12345] As you said in another mail, this could only be shown for a rebuild, but not an update, true? >=20 > > If I have an eclass that needs to do stuff to only live ebuilds > > (like kde4-base.eclass setting SLOT=3Dlive when PV is 9999), how can I > > differentiate between live ebuilds and snapshots? Do eclasses see > > -live or the expanded datestamp in PV? >=20 > it see the expanded datestamp but sees also LIVE_URI LIVE_REVISION=20 > LIVE_BRANCH (the variables that keep track of the exact revision of > the sources you are going to use), so you can also slot by branch >=20 > SLOT=3D${LIVE_BRANCH} Yeah, immediately after posting I remembered there would be certain variables present. Even if they weren't you could just stick a LIVE=3D"yes" in the live ebuilds or check PROPERTIES or whatever. > > How do I know if a user has a live ebuild installed when they file a > > bug without having to check if there's a snapshot with that date in > > the tree every single time the PV has a datestamp in it? (minor > > gripe admittedly) >=20 > He will provide the revision and branch so you have more information > not less. >=20 > > If I build a live package today, will I see it as an update when > > running emerge -pu @world tomorrow? >=20 > the template will be evaluated again so you get another snapshot=20 > proposed for update. Ooh, i really don't like that. This would force me to either do daily updates manually package by package or mask any live ebuilds before i do. That would _really_ suck if I were still running the kde-crazy overlay and had 50+ live ebuilds installed. > > If I have 20090309 installed what does 'emerge > > =3Dgcc-4.4.0_pre20090309' do tomorrow? (It might be a neat trick to > > disable fetch and just rebuild the current checkout in this case.) >=20 > it will try to build the exact revision it used by the time you > issued the previous emerge. Cool. > > Does 'emerge =3Dgcc-4.4.0_pre' even work, or just `..._prelive`? >=20 > =3Dgcc-4.4.0_pre will try to reinstall what you installed by > Will a list of date -> revision mappings be kept? Where is this info stored? > =3Dgcc-4.4.0_prelive will get resolved out of the template and then=20 > installed as =3Dgcc-4.4.0_pre >=20 > > Does the user at any point ever see "live" in the ebuild version or > > is it always replaced by the date? If the latter, how do users > > know they have to put '=3Dsys-devel/gcc-4.4.0_prelive' in package.* > > and not pre? >=20 > the user will get the version render but also from where it is >=20 > > Are there any facilities to allow a user to checkout a specific > > revision from the repo, or is that beyond the scope of this GLEP? > > If we ever do implement such a thing, it seems like the datestamp > > approach wouldn't mesh well; 20090310 doesn't make much sense when > > the revision is from a month ago. >=20 > if you want to checkout a specific revision from the repo you aren't=20 > creating a live ebuild but a snapshot with a specific src uri. >=20 > so you don't use a template but just the specific eclasses and mark > the ebuild so you can show up on emerge -p the informations as stated > above. I was thinking about dynamic revisions, where the user could do something like 'emerge -av gcc --rev 123456'. I just checked a couple eclasses and it seems we already have this feature, for example ESVN_REVISION in subversion.eclass, so let's abandon this train of thought. ;) > > I'll be honest, I much prefer the -scm proposal. But I want to > > make sure I'm not completely out-to-lunch about -live before > > making judgements. >=20 > At least now we have some more scenarios we could consider as > use-cases. >=20 > Thank you for the input Thanks for your answers. I'd like to think about it a bit, but off the top of my head what would you say to a hybrid approach where the ebuild doesn't have the datestamp expansion on resolution, but rather this information were available after building? In all cases, the ebuild would be referred to by its proper name (ie. gcc-4.4.0_pre.live), but enough information would be recorded at build time so the package manager could do groovy things like [ebuild U ] sys-devel/gcc-4.4.0_pre.live (last built 20090310 - rev. 14991) USE=3D"use -flags" and=20 # emerge --info gcc sys-devel/gcc-4.4.0_pre9999 was built with the following: CFLAGS=3D"-O2 -march=3Dcore2 -pipe" CXXFLAGS=3D"-O2 -march=3Dcore2 -pipe" >>> Attempting to run pkg_info() for 'sys-devel/gcc-4.4.0_pre9999' svn: 20081206 23:31:22 - gcc-4.3.3_pre9999:4.3-svn was merged at revision 1= 42535 svn: 20090123 17:09:12 - gcc-4.4.0_pre9999:4.4-svn was merged at revision 1= 43592 svn: 20090131 16:35:23 - gcc-4.4.0_pre9999:4.4-svn was merged at revision 1= 43833 svn: 20090131 17:05:29 - gcc-4.4.0_pre9999:4.4-svn was merged at revision 1= 43834 svn: 20090223 00:33:50 - gcc-4.4.0_pre9999:4.4-svn was merged at revision 1= 44379 svn: 20090226 22:10:09 - gcc-4.4.0_pre9999:4.4-svn was merged at revision 1= 44460 svn: 20090226 23:00:57 - gcc-4.3.3_pre9999:4.3-svn was merged at revision 1= 44460 svn: 20090304 20:16:48 - gcc-4.4.0_pre9999:4.4-svn was merged at revision 1= 44634 svn: 20090307 15:12:27 - gcc-4.4.0_pre9999:4.4-svn was merged at revision 1= 44702 (note the latter is already possible with zero modifications to anything) It seems to me that the datestamp expansion is a lot of complication for very little gain. =20 Looking at the list of shortcomings in the draft: > There are many obvious and non obvious shortcomings in this > situations: > - you have to hand produce "high enough" version values and be sure > they do not clash (e.g. 2.3_pre9999 live ebuild being shadowed by > 2.3_pre20050201 snapshot). Solved by both this and the -scm GLEP. > - you cannot track what did you install since you don't have a precise > information about it, emerge logs will just provide you the build > date. Most SCM eclasses have facilities for storing this data, eg. ESVN_LOG_DIR. Standardizing it could be helpful. > - you cannot do exact reemerges and that may break revdep-rebuild You can use eclass features that skip the updating phase and just build the current sources (eg. ESVN_OFFLINE). And as I mentioned above, some can build a specific revision. > - the package manager isn't aware of the "liveness" condition. Solved by both this and the -scm GLEP. > - in order to refresh/update the installed package automatically you > need either to rely on script or on sets hand produced or > heuristically defined (e.g "all ebuilds that inherit eclass svn go in > svn set"). Do people really want live ebuilds updating automatically? It sounds like a recipe for breakage. I don't want live sources updating until i explicitly tell them to, but maybe that's just me. If someone does want this behaviour, I'd suggest using cron. Also, doesn't portage have a @live-rebuild set that makes this trivial? > - since you fetch on unpack phase you cannot use emerge --fetch > consistently. How does either proposal address this? In the end, I don't see anything that datename expansion does that can't be done more easily and less confusingly with other techniques. Is there a specific problem it solves that can't be addressed through other means? --=20 gcc-porting, by design, by neglect treecleaner, for a fact or just for effect wxwidgets @ gentoo EFFD 380E 047A 4B51 D2BD C64F 8AA8 8346 F9A4 0662 --Sig_/xMdwEWeGEFncubwQoR2Vl.e Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.10 (GNU/Linux) iEYEARECAAYFAkm4h7QACgkQiqiDRvmkBmKtPwCghqDJ2iAvaJoJZsWMXbYci0bw qZkAn2DN0BO4ya10wuan4eeR7hILl8bV =uNPR -----END PGP SIGNATURE----- --Sig_/xMdwEWeGEFncubwQoR2Vl.e--