Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 549616 - sys-app/portage-2.2.19: squashdelta type breaks egencache --update-pkg-desc-index
Summary: sys-app/portage-2.2.19: squashdelta type breaks egencache --update-pkg-desc-i...
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
Keywords: InVCS
Depends on:
Blocks: 484436
  Show dependency tree
Reported: 2015-05-16 03:57 UTC by Brian Dolbec
Modified: 2015-05-18 23:37 UTC (History)
0 users

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


Note You need to log in before you can comment on or make changes to this bug.
Description Brian Dolbec gentoo-dev 2015-05-16 03:57:38 UTC
big_daddy portage # emaint sync -r gentoo
>>> Syncing repository 'gentoo' into '/var/db/repos/gentoo'...
>>> Downloading ''
--2015-05-15 20:51:26--
Connecting to||:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 8373 (8.2K) [text/plain]
Saving to: ‘/var/cache/portage/squashfs/sha512sum.txt’

/var/cache/portage/squashfs/sha512s 100%[=====================================================================>]   8.18K  --.-KB/s   in 0.1s   

2015-05-15 20:51:27 (63.9 KB/s) - ‘/var/cache/portage/squashfs/sha512sum.txt’ saved [8373/8373]

 * gentoo-20150514-20150515.sqdelta SHA512 size ;-) ...                                                                                  [ ok ]
Re-generating search index for repo: gentoo
!!! Section 'x-portage' in repos.conf has location attribute set to nonexistent directory: '/usr/portage'
Traceback (most recent call last):
  File "./bin/egencache", line 1121, in <module>
  File "./bin/egencache", line 1091, in egencache_main
  File "./bin/egencache", line 468, in run
  File "/home/brian/Dev/git/portage/pym/portage/util/", line 1279, in __init__
    mode=mode, **portage._native_kwargs(kargs)))
IOError: [Errno 30] Read-only file system: '/var/db/repos/gentoo/metadata/pkg_desc_index.29113'
 * Spawn failed for: search-index, /etc/portage/repo.postsync.d/search-index
^^^ test post-sync hook1 param: gentoo, mirror://gentoo/../snapshots/squashfs, /var/db/repos/gentoo
  ^^^^^^ TIME FOR ME TO DO SOME WORK ^^^^^^
*** test post-sync hook2 IGNORING gentoo, mirror://gentoo/../snapshots/squashfs, /var/db/repos/gentoo
!!! Section 'x-portage' in repos.conf has location attribute set to nonexistent directory: '/usr/portage'

Reproducible: Always
Comment 1 Zac Medico gentoo-dev 2015-05-16 05:52:58 UTC
The IndexedPortdb class can read the the cache from /var/cache/edb/dep/${repo_path}/metadata/pkg_desc_index. It would be nice if egencache would write the cache there when ${repo_path} is read-only.
Comment 2 Zac Medico gentoo-dev 2015-05-16 21:01:33 UTC
There's a patch in the following branch:

I've posted it for review here:
Comment 4 Brian Dolbec gentoo-dev 2015-05-18 23:37:14 UTC
Released in portage-2.2.20