Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 911226 - package.mask shouldn't apply to other repositories.
Summary: package.mask shouldn't apply to other repositories.
Status: RESOLVED DUPLICATE of bug 737148
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-07-25 22:36 UTC by Michael Jones
Modified: 2023-07-26 09:33 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 Michael Jones 2023-07-25 22:36:40 UTC
This commit:


commit a739934ffaccc2a4c847744d43b5e65bd800f364
Author: Florian Schmaus <flow@gentoo.org>
Date:   Mon Jul 17 21:42:04 2023 +0200

    profiles: mask obsolete acct-* packages for removal

    Signed-off-by: Florian Schmaus <flow@gentoo.org>


Broke the genpi64 project, which depended on acct-group/spi, acct-group/i2c and acct-group/gpio

We removed our copies of these ebuilds when gentoo added them.

Now that they're masked for removal, we can't even add our own copies back to our overlay, because the masking in gentoo's package.mask file also applies to any package of the same name from any repository, whether gentoo's or third party.

Please do not mask packages without specifying the repository to mask them from.
Comment 1 Ionen Wolkens gentoo-dev 2023-07-25 22:43:12 UTC
(In reply to Michael Jones from comment #0)
> Please do not mask packages without specifying the repository to mask them
> from.
Can't be done, doing this is unsupported by PMS (aka in profiles). Adding e.g. ::gentoo is a portage-specific feature only valid in /etc/portage.

Pretty sure a package.unmask in the overlay would take priority though.
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-07-25 22:43:33 UTC
> Now that they're masked for removal, we can't even add our own copies back
> to our overlay, because the masking in gentoo's package.mask file also
> applies to any package of the same name from any repository, whether
> gentoo's or third party.

As a workaround/fix to this problem: what exactly uses them for you? Could we just bring in whatever they are to ::gentoo?

> 
> Please do not mask packages without specifying the repository to mask them
> from.

It's nowhere near as simple as this. The repository syntax in package.mask is non-standard.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-07-25 22:44:39 UTC

*** This bug has been marked as a duplicate of bug 737148 ***
Comment 4 Ionen Wolkens gentoo-dev 2023-07-25 22:53:35 UTC
(In reply to Ionen Wolkens from comment #1)
> Pretty sure a package.unmask in the overlay would take priority though.
Well, wrt the other bug now I'm not so sure. package.unmask exists in profiles (and kinda assumed they work) but pretty scarcely and is not defined by PMS.
Comment 5 Ionen Wolkens gentoo-dev 2023-07-25 23:09:58 UTC
(In reply to Ionen Wolkens from comment #4)
> (In reply to Ionen Wolkens from comment #1)
> > Pretty sure a package.unmask in the overlay would take priority though.
> Well, wrt the other bug now I'm not so sure. package.unmask exists in
> profiles (and kinda assumed they work) but pretty scarcely and is not
> defined by PMS.
Yeah, tried to be sure and seems these files are there for nothing.

So, need bug #737148. Your best bet seem to be to ask your users to unmask until last rite period is over -- or consider what sam suggests.
Comment 6 Michael Jones 2023-07-25 23:15:34 UTC
> It's nowhere near as simple as this. The repository syntax in package.mask is non-standard.

Are there plans to standardize this, and if so, is there a bug# i can track?
Comment 7 Michael Jones 2023-07-25 23:18:05 UTC
> As a workaround/fix to this problem: what exactly uses them for you? Could we just bring in whatever they are to ::gentoo?

These two, which we inherited from Sakaki.

https://github.com/jonesmz/genpi64-overlay/tree/master/sys-apps/rpi-spi
https://github.com/jonesmz/genpi64-overlay/tree/master/sys-apps/rpi-gpio

I don't think there's really much justification for moving them into gentoo proper, since they are workarounds for the raspberry pi 3 hardware being fairly janky.

> So, need bug #737148. Your best bet seem to be to ask your users to unmask until last rite period is over -- or consider what sam suggests.

This is what we'll do.