Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 143992 - cvs.eclass should separate fetch from unpack routine
Summary: cvs.eclass should separate fetch from unpack routine
Status: RESOLVED LATER
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-15 05:20 UTC by Peter Hyman
Modified: 2007-01-10 01:51 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Hyman 2006-08-15 05:20:15 UTC
There is currently no way to update cvs sources only without unpacking (copying) the sources with ebuild.sh. There is no way to fetch updated cvs sources using emerge.sh.

If a user does emerge --fetch i_use_cvs_package, nothing will happen. There is no way for a user to fetch updated source without actually unpacking and compiling it. This is because the cvs_fetch function is only called from cvs_unpack. I think the src_fetch function should be exported and fetch should be independent of unpack wrt cvs sources.

I would separate the two functions.
Comment 1 SpanKY gentoo-dev 2006-08-27 23:22:26 UTC
portage has to support this first
Comment 2 Zac Medico gentoo-dev 2006-08-28 08:00:31 UTC
(In reply to comment #0)
> If a user does emerge --fetch i_use_cvs_package, nothing will happen. There is
> no way for a user to fetch updated source without actually unpacking and
> compiling it.

Portage itself handles the fetch phase and does not allow it to be delegated to the ebuild.  Thats why cvs.eclass rolls the fetch phase into src_unpack().  One major problem with delegating the fetch phase to the ebuild is that it bypasses the ability of portage to check know digests of distfiles (an important security feature).
Comment 3 Peter Hyman 2006-08-30 08:46:24 UTC
If it can't be done, feel free to close as WONT.
Comment 4 SpanKY gentoo-dev 2006-08-30 09:01:42 UTC
it can be done, it's just a question of do we want to do it ... this hinges on whether it's even worthwhile

beyond things based on live source repos (cvs/svn/rsync/mercurial/tla/etc...) where it would be quite useful, i'd be hard pressed to find any other use
Comment 5 Marius Mauch (RETIRED) gentoo-dev 2007-01-10 01:51:10 UTC
Maybe later when there is actual support for versionless packages.