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

Bug 746353

Summary: sys-apps/portage: 'masked by: package.mask' prints wrong context (?)
Product: Portage Development Reporter: Michał Górny <mgorny>
Component: Core - Interface (emerge)Assignee: Portage team <dev-portage>
Status: CONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---

Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2020-10-03 17:51:51 UTC
emerge seems to mishandle comments in package.mask when printing package.mask context.  In my case, it prints only 3 irrelevant comments found in middle of the file instead of the actual package entry found at the end.

# emerge -1v pandoc

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

Calculating dependencies... done!

!!! All ebuilds that could satisfy ">=dev-haskell/syb-0.1:=[profile?]" have been masked.
!!! One of the following masked packages is required to complete your request:
- dev-haskell/syb-0.7.1::gentoo (masked by: package.mask)

(dependency required by "app-text/pandoc-" [ebuild])
(dependency required by "pandoc" [argument])
For more information, see the MASKED PACKAGES section in the emerge
man page or refer to the Gentoo Handbook.