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

Bug 908108

Summary: sys-apps/portage: zz-autounmask is created in the deprecated "packages.keywords" directory instead of "packages.accept_keywords", causing a warning
Product: Portage Development Reporter: opensauce04
Component: Core - ConfigurationAssignee: Portage team <dev-portage>
Status: UNCONFIRMED ---    
Severity: normal CC: gentoo
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description opensauce04 2023-06-09 12:31:52 UTC
This causes a deprecation warning on all subsequent uses of Portage:

/usr/lib/python3.11/site-packages/portage/package/ebuild/_config/KeywordsManager.py:86: UserWarning: /etc/portage/package.keywords is deprecated, use /etc/portage/package.accept_keywords instead

This warning must be resolved by manually moving the file into the `packages.accept_keywords` directory.

When autounmask is next used, the file is freshly created in `packages.keywords`, and you have to manually merge the old and new `zz_autounmask` files.

A fix for this would be to simply have Portage create the `zz_autounmask` file in the `packages.accept_keywords` directory instead.

My Portage version is 3.0.45.3
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-06-09 12:52:42 UTC
Did you already have a package.keywords directory?
Comment 2 opensauce04 2023-06-09 12:56:07 UTC
Not unless it's created by default, this was a fresh install