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

Bug 651214

Summary: sys-apps/portage: {PKG_,}INSTALL_MASK support for exclusions
Product: Portage Development Reporter: Zac Medico <zmedico>
Component: Core - ConfigurationAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal CC: joakim.tjernlund
Priority: Normal Keywords: InVCS
Version: unspecified   
Hardware: All   
OS: All   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=651952
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 651804    

Description Zac Medico gentoo-dev 2018-03-23 01:08:31 UTC
There's a patch set available here, but it unnecessarily includes INSTALL_MASKEDed files in CONTENTS (for bug 364633) which should be factored out since it's buggy (asymmetric collision-protect behavior) and introduces significant complexity which is not needed for exclusion support:

https://archives.gentoo.org/gentoo-portage-dev/message/d6f4ca15a5bcd693ff6f63af0e717f5c
Comment 2 Larry the Git Cow gentoo-dev 2018-03-28 06:52:46 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/portage.git/commit/?id=8f9cff73321b3ee5957357448819b505932e0e5c

commit 8f9cff73321b3ee5957357448819b505932e0e5c
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2016-05-22 06:40:13 +0000
Commit:     Zac Medico <zmedico@gentoo.org>
CommitDate: 2018-03-28 06:28:17 +0000

    {,PKG_}INSTALL_MASK: Support exclusions (bug 651214)
    
    Allow INSTALL_MASK patterns to start with '-' to indicate that
    a specific match is to be excluded from being masked. In this case,
    the last matching pattern determines whether the file is actually
    filtered out or kept.
    
    Bug: https://bugs.gentoo.org/651214

 pym/portage/util/install_mask.py | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)}
Comment 3 Zac Medico gentoo-dev 2018-07-02 18:51:19 UTC
Fixed in portage-2.3.40-r1.