Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 671674 - Wrong directory owner for app-portage/eix
Summary: Wrong directory owner for app-portage/eix
Status: RESOLVED DUPLICATE of bug 671318
Alias: None
Product: Gentoo Release Media
Classification: Unclassified
Component: Stages (show other bugs)
Hardware: All Linux
: Normal major
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-22 07:44 UTC by Boris Vingradov
Modified: 2018-11-22 09:34 UTC (History)
0 users

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 Boris Vingradov 2018-11-22 07:44:47 UTC
I install eix on clean system - from stage3 and have an error:
(chroot) livecd / # eix-update                                                                           Reading Portage settings...                                                                              Building database (/var/cache/eix/portage.eix)...                                                        [0] "gentoo" /usr/portage/ (cache: metadata-md5-or-flat)                                                      Reading category 164|164 (100) Finished                                                             Applying masks...                                                                                        Calculating hash tables...                                                                               Writing database file /var/cache/eix/portage.eix...                                                      cannot open database file /var/cache/eix/portage.eix for writing (mode = 'wb')

For work eix directory I have wrong owner (root, need portage):

(chroot) livecd / # ls -al /var/cache/eix/                                                               total 8                                                                                                  drwxr-xr-x 2 root root 4096 Nov 22 07:31 .                                                               drwxr-xr-x 6 root root 4096 Nov 22 07:31 ..                                                              -rw-r--r-- 1 root root    0 Nov 22 07:31 .keep_app-portage_eix-0

This directory create by installation system (part of emerge message in console):
--- /var/                                                                                                --- /var/cache/                                                                                          >>> /var/cache/eix/                                                                                      >>> /var/cache/eix/.keep_app-portage_eix-0  

Than I change directory owner to portage eix-update final its work correctly:
(chroot) livecd / # chown -R portage:portage /var/cache/eix                                              (chroot) livecd / # eix-update                                                                           Reading Portage settings...                                                                              Building database (/var/cache/eix/portage.eix)...                                                        [0] "gentoo" /usr/portage/ (cache: metadata-md5-or-flat)                                                      Reading category 164|164 (100) Finished                                                             Applying masks...                                                                                        Calculating hash tables...                                                                               Writing database file /var/cache/eix/portage.eix...                                                      Database contains 19614 packages in 164 categories
Comment 1 Boris Vingradov 2018-11-22 08:01:07 UTC
Stage is: stage3-amd64-20181113T214502Z.tar.xz
Comment 2 Boris Vingradov 2018-11-22 08:50:20 UTC
This is stable release system with sys-apps/opentmpfiles-0.1.3.
Comment 3 Boris Vingradov 2018-11-22 09:30:31 UTC
Than I install the newest version of sys-apps/opentmpfiles (sys-apps/opentmpfiles-0.2) and reinstall sys-apps/eix I have success eix-update command result (and correct owner of /var/cache/eix directory):
(chroot) livecd / # ls -l /var/cache/                                                                    total 16                                                                                                 drwxr-xr-x 3 root    portage 4096 Nov 22 09:25 edb                                                       drwxrwxr-x 2 portage portage 4096 Nov 22 09:25 eix                                                       drwx------ 2 root    root    4096 Nov 22 09:25 ldconfig                                                  drwxr-xr-x 2 man     man     4096 Nov 14 00:04 man                                                       (chroot) livecd / # eix-update                                                                           Reading Portage settings...                                                                              Building database (/var/cache/eix/portage.eix)...                                                        [0] "gentoo" /usr/portage/ (cache: metadata-md5-or-flat)                                                      Reading category 164|164 (100) Finished                                                             Applying masks...                                                                                        Calculating hash tables...                                                                               Writing database file /var/cache/eix/portage.eix...                                                      Database contains 19614 packages in 164 categories
Comment 4 Boris Vingradov 2018-11-22 09:34:40 UTC

*** This bug has been marked as a duplicate of bug 671318 ***