After today's world update, the eix-update command, run under root,
failed to "open the database file '/var/cache/eix/portage.eix' for writing."
Nevertheless, the same command, run with ordinary user privileges, completed
without error.
Why?
# eix-update
Reading Portage settings ..
Building database (/var/cache/eix/portage.eix) ..
[0] 'gentoo' /usr/portage/ (cache: metadata-md5-or-flat)
Reading category 163|163 (100%) Finished
Applying masks ..
Calculating hash tables ..
Writing database file /var/cache/eix/portage.eix ..
Can't open the database file '/var/cache/eix/portage.eix' for writing (mode =
'wb')
# echo $?
1
# ls -al /var/cache/eix/portage.eix
-rw-rw-r-- 1 gevis gevis 6336237 Dec 20 14:01 /var/cache/eix/portage.eix
$ eix-update
Reading Portage settings ..
Building database (/var/cache/eix/portage.eix) ..
[0] 'gentoo' /usr/portage/ (cache: metadata-md5-or-flat)
Reading category 163|163 (100%) Finished
Applying masks ..
Calculating hash tables ..
Writing database file /var/cache/eix/portage.eix ..
Database contains 17931 packages in 163 categories.
$ echo $?
0