Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 746353 - sys-apps/portage: 'masked by: package.mask' prints wrong context (?)
Summary: sys-apps/portage: 'masked by: package.mask' prints wrong context (?)
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
Depends on:
Reported: 2020-10-03 17:51 UTC by Michał Górny
Modified: 2020-10-03 17:51 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
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.