Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 261377 - cache-tools ebuild
Summary: cache-tools ebuild
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
: 261528 (view as bug list)
Depends on:
Blocks: 210077 268228
  Show dependency tree
 
Reported: 2009-03-05 22:26 UTC by Caleb Cushing
Modified: 2009-09-02 22:37 UTC (History)
3 users (show)

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 Caleb Cushing 2009-03-05 22:26:47 UTC
ebuild for reverse-transfer.sh

per prior conversation with zmedico bug is for tracking.

Reproducible: Always
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-03-05 22:30:46 UTC
(In reply to comment #0)
> per prior conversation with zmedico bug is for tracking.

Reassigning then...
Comment 2 Zac Medico gentoo-dev 2009-03-29 08:04:06 UTC
I working on a new tool the will work something like this:

Usage: egencache [options] --generate | --update [atom] ...

Options:
  -h, --help            show this help message and exit
  --update              update metadata/cache/, generate as necessary
  --generate            generate cache only
  --repo=REPO           operate on the named repo (default is one located at
                        $PORTDIR)
  --jobs=JOBS           max ebuild processes to spawn
  --load-average=LOAD   max load allowed when spawning multiple jobs       
  --rsync               enable workaround for bug 139134 when (use with
                        --update)

Typical usage will be simply `egencache --update`, which will update metadata/cache/ and generate cache as necessary. It will bail out immediately if you don't have FEATURES=metadata-transfer enabled. In the future we can drop the metadata-transfer requirement, after the cache format has been extended to include eclass digests as described here:

  http://archives.gentoo.org/gentoo-dev/msg_cfa80e33ee5fa6f854120ddfb9b468b3.xml

The program will take atom arguments, so you will be able to update cache for individual packages, as requested in bug #261528. The --rsync option will cause ebuild timestamps to be bumped as a workaround for bug 139134. This option should only be needed for distribution via something like rsync, which relies on timestamps and file sizes to detect changes. You won't need it with git since that uses a more thorough mechanism which allows it to detect changed inode numbers (described in racy-git.txt in the git technical docs).
Comment 3 Zac Medico gentoo-dev 2009-03-29 08:11:25 UTC
*** Bug 261528 has been marked as a duplicate of this bug. ***
Comment 4 Zac Medico gentoo-dev 2009-03-31 08:55:05 UTC
There is an initial version of the egencache script in svn r13260. It only has the most basic functionality now, and more features will be added soon.
Comment 5 Zac Medico gentoo-dev 2009-04-11 04:26:17 UTC
This is fixed in 2.2_rc29.
Comment 6 Zac Medico gentoo-dev 2009-05-02 02:39:01 UTC
This is fixed in 2.1.6.12.