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

Bug 61011

Summary: portage should honour ${PORTDIR_OVERLAY}/profiles/categories
Product: Gentoo Linux Reporter: Thomas Stratmann <strattbo>
Component: [OLD] UnspecifiedAssignee: Portage team <dev-portage>
Status: RESOLVED WORKSFORME    
Severity: enhancement    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Thomas Stratmann 2004-08-20 03:39:21 UTC
currently, categories in an overlay directory must be a subset of those in /usr/portage (more exactly, those mentioned in /usr/portage/profiles/categories).

it would be more convenient to be able to introduce own categories.

Reproducible: Always
Steps to Reproduce:
1.mkdir ${PORTDIR_OVERLAY}/dummy-cat; cp somepackagedir ${PORTDIR_OVERLAY}/dummy-cat/
2.echo "dummy-cat" >> ${PORTDIR_OVERLAY}/profiles/categories #(mkdir before)
3.emerge -p somepackagedir

Actual Results:  
ebuilds beneath ${PORTDIR_OVERLAY}/dummy-cat are ignored

Expected Results:  

!!! The short ebuild name "somepackagedir" is ambiguous.  Please specify
!!! one of the following fully-qualified ebuild names instead:

    orig-cat/somepackagedir
    dummy-cat/somepackagedir

it's questionable whether there should be a "profiles" subdir in an overlay at
all. maybe the "categories" file in the overlay should be somewhere else under a
slightly different name, e.g. "overlay-cats".
Comment 1 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-08-20 08:28:41 UTC
You can use /etc/portage/categories. See man portage.
Comment 2 Marius Mauch (RETIRED) gentoo-dev 2004-08-20 13:18:35 UTC
exactly