# /etc/paludis/repositories/local_overlay.conf:
location = ${ROOT}/home/dzwell/downloads/overlay
sync =
profiles = ${ROOT}/etc/make.profile
master_repository = gentoo
format = ebuild
names_cache = /var/empty
#write_cache = /var/empty
write_cache = ${location}/metadata/cache



# /etc/paludis/bashrc is fairly standard, with this line added:
SANDBOX_WRITE="${SANDBOX_WRITE}:${CCACHE_DIR}:/home/dzwell/downloads/overlay/metadata/cache:/home/dzwell/downloads/overlay/metadata"



# Error message as is follows, first happens while applying patches:
 * Applying perl-5.8.8-gcc42-command-line.patch ...                      [ ok ]

Unhandled exception:   
  * In program paludis --log-level qa --has-version >sys-kernel/linux-headers-2.
6.20:
  * When making environment from specification '':
  * When loading paludis environment:
  * When making ebuild repository from repo_file '/etc/paludis/repositories/loca
l_overlay.conf':
  * When calling stat() on '/home/dzwell/downloads/overlay/metadata/cache':
  * Error running stat() on '/home/dzwell/downloads/overlay/metadata/cache': Permission denied (paludis::FSError)