Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 934298 - package mask for outdated and removing packages is globally atm - which it should not be?
Summary: package mask for outdated and removing packages is globally atm - which it sh...
Status: UNCONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-14 13:33 UTC by darthm
Modified: 2024-06-14 19:42 UTC (History)
2 users (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 darthm 2024-06-14 13:33:24 UTC
Hey,

I noticed that the check_mk_agent package from my overlay is masked because someone masked it globally.
I get the masking for the outdated package in ::gentoo, but not globally?

So at the moment I have to unmask my overlay package.

Reproducible: Always

Steps to Reproduce:
emerge world or check_mk_agent
Actual Results:  
package is globally masked

Expected Results:  
package should only be masked for ::gentoo
Comment 1 Mike Gilbert gentoo-dev 2024-06-14 14:53:18 UTC
Overlays inherit package.mask from their master repos. I believe this is the intended behavior.
Comment 2 darthm 2024-06-14 18:07:53 UTC
Hmm, i guess, normally overlays have a metadata/layout.conf with
masters = gentoo
to use the global eclasses, etc.

So, that means to also receive the global package masks?

My questions is, why are these global masks not like this

net-analyzer/check_mk_agent::gentoo

?

It has the same consequence for all the global masked packages
but doesn't affect packages in overlays.
Comment 3 Mike Gilbert gentoo-dev 2024-06-14 18:17:19 UTC
I don't think PMS allows for the repository to be specified as part of the mask entry. That's a Portage-specific extension, and cannot be used in gentoo.git.
Comment 4 Zac Medico gentoo-dev 2024-06-14 19:34:25 UTC
We could certainly prevent package.mask entries from propagating from master repos to overlays. We could could make it conditional on layout.conf and/or repos.conf settings.
Comment 5 Zac Medico gentoo-dev 2024-06-14 19:42:23 UTC
(In reply to Mike Gilbert from comment #3)
> I don't think PMS allows for the repository to be specified as part of the
> mask entry. That's a Portage-specific extension, and cannot be used in
> gentoo.git.

Yeah it's not allowed, but we can change the way portage propagates the package.mask entries. It can modify behavior based on layout.conf and/or repos.conf settings.