Summary: | Git eclass feature requests | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Francis Galiegue <fgaliegue> |
Component: | Eclasses | Assignee: | Tomáš Chvátal (RETIRED) <scarabeus> |
Status: | RESOLVED FIXED | ||
Severity: | enhancement | CC: | dberkholz |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Francis Galiegue
2010-01-03 03:53:27 UTC
(In reply to comment #0) > I compile quite a lot of packages from the gentoo x11 overlay and it uses the > git eclass. However, it can do a better job of it... > > 1. One thing is that it keeps the sources in > /usr/portage/distfiles/git-src/xxxx and git pulls in this directory - good. > > 2. However, this is not a bare repository - medium... bare / non bare is figured based on use of submodules or specified variable that switchs between them feel free to figure out how to manage the submodules in bare repository without checking them out everytime anew and it can be dependant only by that option. > > 3. The other thing is that it clones this repository into /var/tmp/portage for > compiling - bad! It must do all the operations in /var/ Plus quite few packages expect the .git folder to be around, thats why it is not done using copy or archive option. > > Finally, a VERY nice feature to have would be to be able to tag the currently > emerged version and keep this information somewhere: people who choose > git-based repositories like to play with fire, but being able to revert to a > previous known good git version is possible (unlike with CVS and SVN). > > Why not a series of commands like: > > qgittag <packagename> <tagname> #would error on non git ebuilds, of course... > # then, later > GITTAG=<tagname> emerge <packagename> > > This would influence, of course, the git archive command above. And it would be > a great help for developers, since this means you have a local git repository > fit for cloning _and_ bisecting. > > This is already possible for user: EGIT_COMMIT="hash" emerge -1v myliveebuild or: EGIT_BRANCH="mybranch" emerge -1v myliveebuild Oh also there is new git-2 eclass which is much more readable so migrate your ebuids to it. And also it took me just bit over a year to reply and close this bug, damn i need more time :) |