Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 624936 - Overlays package.unmask overwriting local package.mask
Summary: Overlays package.unmask overwriting local package.mask
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: 240187
  Show dependency tree
 
Reported: 2017-07-14 05:41 UTC by Massimo Burcheri
Modified: 2020-03-30 02:49 UTC (History)
5 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 Massimo Burcheri 2017-07-14 05:41:01 UTC
Adding the overlay gnome-next, which has profiles/package.unmask set (which I consider a bad behaviour, but this is tracked as bug 624864), I noticed this is overwriting my local package.mask:

Any /etc/portage/package.mask/* with */*::gnome-next is just ignored. I set this line for every unofficial overlay for not implicitly updating to versions from the overlay. This seems more like a portage bug, that overlay profiles have precedence over /etc/portage/ .

Reproducible: Always
Comment 1 Andreas Sturmlechner gentoo-dev 2019-03-04 15:10:37 UTC
It's an overlay bug, not a Portage bug.
Comment 2 Nikita Zlobin 2019-03-04 22:02:13 UTC
Is there some way to prevent overlay profile files overriding /etc/portage files?

It looks obvious (my imho), that this stuff should follow same rules as ebuild preference - overlay/portage priority, and never override /etc/portage stuff.

Example precedence with "overlay" priority over portage could be this:
etc_unmask; etc_mask; overlay_unmask;overlay_mask;portage_unmask;portage_mask;

If e.g. (not actually) <=app-editors/gedit-3.28 is written to gnome-next/profile/package.unmask, but /etc/portage/package.mask has ~app-editors/gedit-3.20, then =app-editors/gedit-3.20 of any revision must be latest unmasked version.

I hope it will not be felt personally.
Current precedence scheme is itself bug.
Comment 3 Enne Eziarc 2019-04-14 23:57:45 UTC
Lua overlay also causes problems in the same way.


(In reply to Andreas Sturmlechner from comment #1)
> It's an overlay bug, not a Portage bug.

If this is an “overlay bug” then the portage(5) manpage should stop advertising it as a feature, and QA checks should be catching it. Why aren't they?
Comment 4 Zac Medico gentoo-dev 2019-04-15 03:59:41 UTC
(In reply to Nikita Zlobin from comment #2)
> Example precedence with "overlay" priority over portage could be this:
> etc_unmask; etc_mask;
> overlay_unmask;overlay_mask;portage_unmask;portage_mask;

Yes, offhand I think that could give good results.

(In reply to Anthony Parsons from comment #3)
> Lua overlay also causes problems in the same way.
> 
> 
> (In reply to Andreas Sturmlechner from comment #1)
> > It's an overlay bug, not a Portage bug.
> 
> If this is an “overlay bug” then the portage(5) manpage should stop
> advertising it as a feature, and QA checks should be catching it. Why aren't
> they?

Please speak up if you foresee any problems that would not be solved by enabling /etc/portage/package.mask to override package.unmask in overlays.
Comment 5 Carter Young 2020-03-30 02:49:44 UTC
Added myself, while trying to install gnome-extra/budgie-desktop

1. Proper masking, i.e */*::gnome-next results in:
(during an emerge -uDavN --with-bdeps=y @world), before emerging budgie.

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] media-libs/exempi-2.4.5-r1:2/3::gentoo  USE="-examples -static-libs -test" 0 KiB
[ebuild  N     ] app-i18n/uchardet-0.0.6-r2::gentoo  USE="-static-libs -test" CPU_FLAGS_X86="sse2" 0 KiB
[ebuild     U #] gnome-extra/yelp-xsl-3.34.2::gnome-next [3.32.1::gentoo] 0 KiB
[ebuild  r  U #] gnome-base/libgtop-2.40.0:2/10::gnome-next [2.38.0:2/11::gentoo] USE="introspection" 0 KiB
[ebuild     U #] x11-libs/libwnck-3.32.0:3::gnome-next [3.30.0:3::gentoo] USE="introspection startup-notification tools" 0 KiB
[ebuild  N     ] gui-libs/amtk-5.0.1:5::gentoo  USE="introspection" 0 KiB
[ebuild  rR    ] gnome-extra/gnome-system-monitor-3.32.1::gentoo  USE="X systemd" 0 KiB
[ebuild     U #] x11-libs/gtk+-2.24.32-r666:2::gnome-next [2.24.32-r1:2::gentoo] USE="cups introspection (-aqua) -examples -test -vim-syntax -xinerama" ABI_X86="32 (64) (-x32)" 0 KiB
[ebuild     U #] media-gfx/gnome-screenshot-3.34.0::gnome-next [3.32.0::gentoo] 225 KiB
[ebuild  N     ] gui-libs/tepl-4.2.1:4::gentoo  USE="introspection -test" 454 KiB
[ebuild     U #] gnome-extra/gnome-calculator-3.35.2::gnome-next [3.32.2::gentoo] 955 KiB
[ebuild     U #] media-gfx/eog-3.35.3:1::gnome-next [3.32.2:1::gentoo] USE="exif introspection jpeg lcms svg tiff -debug% -xmp (-gtk-doc%)" 3,554 KiB
[ebuild     U #] net-libs/gnome-online-accounts-3.35.90:0/1::gnome-next [3.32.1:0/1::gentoo] USE="gnome introspection vala -debug -kerberos" 839 KiB
[ebuild  rR    ] gnome-base/gnome-control-center-3.32.2:2::gentoo  USE="bluetooth cups gnome-online-accounts ibus networkmanager systemd -debug (-elogind) -flickr -kerberos -test -v4l -wayland" INPUT_DEVICES="-wacom" 0 KiB
[ebuild     U #] app-editors/gedit-3.35.1-r2::gnome-next [3.34.1::gentoo] USE="introspection python spell vala -gtk-doc" PYTHON_SINGLE_TARGET="python3_6 -python3_7 -python3_8" 14,451 KiB

Total: 15 packages (9 upgrades, 4 new, 2 reinstalls), Size of downloads: 20,477 KiB

The following packages are causing rebuilds:

  (gnome-base/libgtop-2.40.0:2/10::gnome-next, ebuild scheduled for merge) causes rebuilds for:
    (gnome-extra/gnome-system-monitor-3.32.1:0/0::gentoo, ebuild scheduled for merge)
    (gnome-base/gnome-control-center-3.32.2:2/2::gentoo, ebuild scheduled for merge)

Would you like to merge these packages? [Yes/No]