Bug 204133 - Please add 'local' to VALID_CATEGORIES
Summary: Please add 'local' to VALID_CATEGORIES
Status: Closed Not Accepted
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Ports Framework (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Port Management Team
URL:
Keywords: needs-patch
Depends on:
Blocks:
 
Reported: 2015-10-29 21:33 UTC by Ian Lepore
Modified: 2016-04-13 11:34 UTC (History)
3 users (show)

See Also:
koobs: merge-quarterly?


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ian Lepore freebsd_committer freebsd_triage 2015-10-29 21:33:51 UTC
Since the ports infrastructure requires that every port have a CATEGORY= that is in the list of valid categories, please add 'local' to VALID_CATEGORIES to allow for local ports within an organization.
Comment 1 Mathieu Arnold freebsd_committer freebsd_triage 2015-10-30 08:42:50 UTC
You can do this many ways yourself, without patching anything in the ports tree, for example, what I do is in the port Makefile, put:

CATEGORY=  local
VALID_CATEGORIES+=  local
Comment 2 Baptiste Daroussin freebsd_committer freebsd_triage 2015-10-30 13:46:15 UTC
I think the best thing is probably to entirely relax the concept of category.

I never understood the reasoning behind that concept beside issues with make index probably.

adding a local category by default sound reasonable to me until we come with something better.
Comment 3 Bryan Drewery freebsd_committer freebsd_triage 2015-10-31 04:00:02 UTC
More proper places are:
/etc/make.conf
Mk/bsd.port.local.mk

I've written a ports_make.conf thing at work too I can should share if interested.