Uploaded image for project: 'Funtoo Linux'
  1. Funtoo Linux
  2. FL-3379

app-portage/eix-0.32.1-r1 changed pkg_postinst does not apply correct directory ownership

    • Icon: Bug Bug
    • Resolution: Workaround
    • Icon: Normal Normal
    • None
    • None
    • funtoo-current
      x86-64bit
      funtoo-staging tree

      When installing eix for the first time, a directory /var/cache/eix is created with ownership portage:portage. Directory creation and permission setting is achieved during pkg_postinst.

      To begin using eix, the user must first run eix-update. This creates a fresh database file for eix, saved within /var/cache/eix.

      The eix-0.32.1-r1 ebuild has a different directory creation routine under pkg_postinst. This results in /var/cache/eix being created with root:root ownership. The consequence of this is that the first run of eix-update fails, since eix cannot write the database file(s) into /var/cache/eix.

      cannot open database file /var/cache/eix-portage.eix for writing (mode = 'wb')

      A workaround is to manually change the ownership of this folder.

       chown portage:portage /var/cache/eix

            Unassigned Unassigned
            tassietux tassietux
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: