Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 485346

Summary: emerge --autounmask-write=y doesn't work with directories: The following problems occurred while writing autounmask changes: !!! No file to write for '/etc/portage/package.keywords'
Product: Portage Development Reporter: Keepun <keepun>
Component: Core - ConfigurationAssignee: Portage team <dev-portage>
Status: RESOLVED DUPLICATE    
Severity: normal CC: esigra
Priority: Normal    
Version: 2.2   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Keepun 2013-09-18 21:53:36 UTC
I created folders /etc/portage/package.*/ as in "man portage".

       /etc/portage/
              Any file in this directory that begins with "package." can be more than just a flat file.  If it is a directory, then  all  the
              files  in that directory will be sorted in ascending alphabetical order by file name and summed together as if it were a single
              file.

              Example:
              /etc/portage/package.accept_keywords/common
              /etc/portage/package.accept_keywords/e17
              /etc/portage/package.accept_keywords/kde


Now emerge --autounmask-write=y reports:

The following problems occurred while writing autounmask changes:
!!! No file to write for '/etc/portage/package.keywords'

# emerge --version
Portage 2.2.1 (default/linux/amd64/13.0, gcc-4.6.3, glibc-2.15-r3, 3.8.13-gentoo x86_64)

Reproducible: Always
Comment 1 Zac Medico gentoo-dev 2013-09-23 14:21:32 UTC
It works if you create a file like this:

  touch /etc/portage/package.accept_keywords/9999-autounmask
Comment 2 Zac Medico gentoo-dev 2017-05-23 00:43:43 UTC

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