Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 370477 - Incorrect handling of package.accept_keywords
Summary: Incorrect handling of package.accept_keywords
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 358927
  Show dependency tree
 
Reported: 2011-06-07 16:05 UTC by Arfrever Frehtes Taifersar Arahesis (RETIRED)
Modified: 2011-06-10 09:31 UTC (History)
0 users

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


Attachments
create_ebuilds_with_unaccepted_keywords (create_ebuilds_with_unaccepted_keywords,1.13 KB, application/x-shellscript)
2011-06-07 16:05 UTC, Arfrever Frehtes Taifersar Arahesis (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2011-06-07 16:05:17 UTC
Created attachment 276153 [details]
create_ebuilds_with_unaccepted_keywords

The attached script creates example ebuilds and changes package.keywords and package.accept_keywords in base profile. The handling of package.keywords seems to be correct, while the handling of package.accept_keywords is at least partially incorrect.

=app-misc/test-0 is masked in package.keywords.
=app-misc/test-1 is masked in package.accept_keywords.

Compare '(masked by: missing keyword)' and '(masked by: )':

$ PORTDIR_OVERLAY="/tmp/test_repository" emerge -Op --autounmask=n =app-misc/test-0

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


!!! All ebuilds that could satisfy "=app-misc/test-0" have been masked.
!!! One of the following masked packages is required to complete your request:
- app-misc/test-0::test_repository (masked by: missing keyword)

For more information, see the MASKED PACKAGES section in the emerge
man page or refer to the Gentoo Handbook.

$ PORTDIR_OVERLAY="/tmp/test_repository" emerge -Op --autounmask=n =app-misc/test-1

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


!!! All ebuilds that could satisfy "=app-misc/test-1" have been masked.
!!! One of the following masked packages is required to complete your request:
- app-misc/test-1::test_repository (masked by: )

For more information, see the MASKED PACKAGES section in the emerge
man page or refer to the Gentoo Handbook.
Comment 1 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2011-06-07 16:07:18 UTC
When autounmasking is enabled, then it seems to be silent with package.accept_keywords:

$ PORTDIR_OVERLAY="/tmp/test_repository" emerge -Op =app-misc/test-0

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

[ebuild  N    *] app-misc/test-0 

The following keyword changes are necessary to proceed:
#required by =app-misc/test-0 (argument)
=app-misc/test-0 **

NOTE: This --autounmask behavior can be disabled by setting
      EMERGE_DEFAULT_OPTS="--autounmask=n" in make.conf.
$ PORTDIR_OVERLAY="/tmp/test_repository" emerge -Op =app-misc/test-1

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

[ebuild  N     ] app-misc/test-1
Comment 3 Zac Medico gentoo-dev 2011-06-10 09:31:00 UTC
This is fixed in 2.1.10.1 and 2.2.0_alpha39.