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

Bug 386569

Summary: inheritance of package.mask via masters in layout.conf is prone to "Unmatched removal atom(s)" errors
Product: Portage Development Reporter: Zac Medico <zmedico>
Component: Core - DependenciesAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal Keywords: InVCS
Priority: Normal    
Version: 2.1   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 240187, 385329, 381649    

Description Zac Medico gentoo-dev 2011-10-09 19:05:25 UTC
Arfrever reported this issue with portage-2.1.10.24 and 2.2.0_alpha64:

mkdir -p /tmp/test_repositories
cd /tmp/test_repositories
mkdir -p {A,B,C}/{metadata,profiles}

echo A > A/profiles/repo_name
echo B > B/profiles/repo_name
echo C > C/profiles/repo_name

echo "masters = A" > B/metadata/layout.conf
echo "masters = B" > C/metadata/layout.conf

echo "category/package" > A/profiles/package.mask
echo "-category/package" > B/profiles/package.mask

PORTDIR_OVERLAY="/tmp/test_repositories/A /tmp/test_repositories/B" emerge -Opv category/package
PORTDIR_OVERLAY="/tmp/test_repositories/A /tmp/test_repositories/B /tmp/test_repositories/C" emerge -Opv category/package

<Arfrever> The last command causes unexpected "--- Unmatched removal atom(s) in /tmp/test_repositories/B/profiles/package.mask: -category/package" warning.
<Arfrever> The same problem is with "masters = A B" line in C/metadata/layout.conf.
Comment 2 Brian Harring (RETIRED) gentoo-dev 2011-10-09 22:26:10 UTC
mailing list discussion is warranted for this; thank you for the revert, not the sort of change that should be made w/out wider discussion.
Comment 3 Zac Medico gentoo-dev 2011-10-10 01:42:55 UTC
It's fixed in git to avoid the false positives:

http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=c5d2d4c32f0745f30e0cad2e427e79064f93c593
Comment 4 Zac Medico gentoo-dev 2011-10-10 07:08:18 UTC
This is fixed in 2.1.10.25 and 2.2.0_alpha65.