Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 488972 - sys-apps/portage: add --write-timestamp option for "egencache --update" to create metadata/timestamp.chk
Summary: sys-apps/portage: add --write-timestamp option for "egencache --update" to cr...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 240187 484436
  Show dependency tree
 
Reported: 2013-10-22 07:19 UTC by Nikoli
Modified: 2015-05-16 22:14 UTC (History)
1 user (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 Nikoli 2013-10-22 07:19:28 UTC
Current portage git has code only for checking metadata/timestamp.chk, but not for creating it, the latter is not documented anywhere.

I have rsync overlay, tried using 'emerge --sync' for updating it, created file /etc/portage/repos.conf/nikoli.conf:
[nikoli]
location = /var/lib/layman/nikoli/
sync-type = rsync
sync-uri = rsync://myserver/portage-overlay

emerge --sync failed with this error:
>>> Synchronization of repository 'nikoli' located in '/var/lib/layman/nikoli'...
>>> Starting rsync with rsync://someip/portage-overlay...
receiving incremental file list
rsync: link_stat "/metadata/timestamp.chk" (in portage-overlay) failed: No such file or directory (2)

I use this command for updating metadata in repo:
egencache --repo=nikoli --update --rsync --update-use-local-desc --jobs="$((1+$(grep -c '^processor' /proc/cpuinfo)))"

It does not create 'metadata/timestamp*'. After 'touch metadata/timestamp.chk' 'emerge --sync' started to work, but it is workaround, not solution. Please fix egencache and update https://wiki.gentoo.org/wiki/Overlay
Comment 2 Brian Dolbec (RETIRED) gentoo-dev 2014-01-06 00:39:03 UTC
Released in sys-apps/portage-2.2.8.
Comment 3 Nikoli 2015-02-18 12:54:08 UTC
Thanks, but why add separate option instead of changing behaviour of '--rsync'?
Comment 4 Zac Medico gentoo-dev 2015-02-18 15:51:23 UTC
The timestamp could be useful with protocols other than rsync.

We can deprecate the --rsync option, because it was a workaround for an older cache format that should not be used anymore (it is not needed for the md5-dict/md5-cache format).