Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 908108 - sys-apps/portage: zz-autounmask is created in the deprecated "packages.keywords" directory instead of "packages.accept_keywords", causing a warning
Summary: sys-apps/portage: zz-autounmask is created in the deprecated "packages.keywor...
Status: UNCONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Configuration (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-09 12:31 UTC by opensauce04
Modified: 2023-06-10 04:59 UTC (History)
1 user (show)

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 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