Bug 223499 - [change request] Add wip to VALID_GATEGORIES for work-in-progress ports
Summary: [change request] Add wip to VALID_GATEGORIES for work-in-progress ports
Status: Closed Not Accepted
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Ports Framework (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Port Management Team
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-07 19:53 UTC by Jason W. Bacon
Modified: 2017-11-09 06:04 UTC (History)
2 users (show)

See Also:


Attachments
Unified diff (492 bytes, patch)
2017-11-07 19:53 UTC, Jason W. Bacon
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jason W. Bacon freebsd_committer freebsd_triage 2017-11-07 19:53:35 UTC
Created attachment 187827 [details]
Unified diff

I routinely deploy work-in-progress ports on numerous servers for beta testing before committing them.  These are typically for scientific programs that I am not qualified to test myself, so I rely on researchers to quality-check the installations.

To facilitate this, I maintain a separate repository, which I check out to /usr/ports/wip, following the example of pkgsrc-wip.

Ports checks require that the first entry in CATEGORIES match the parent directory.  Adding wip here results in an invalid category error.

I can patch it in as necessary, but would like to make the change permanent so that this is unnecessary and problems can be avoided.

There are a few other contributors to my wip collection at this point and I'm hoping to see the system grow, as pkgsrc-wip has proven to be a popular and useful model to follow.
Comment 1 Antoine Brodin freebsd_committer freebsd_triage 2017-11-07 19:57:28 UTC
See bug #204133
Comment 2 Chris Hutchinson 2017-11-09 04:47:19 UTC
(In reply to Jason Bacon from comment #0)
> Created attachment 187827 [details]
> Unified diff
> 
> I routinely deploy work-in-progress ports on numerous servers for beta
> testing before committing them.  These are typically for scientific programs
> that I am not qualified to test myself, so I rely on researchers to
> quality-check the installations.
> 
> To facilitate this, I maintain a separate repository, which I check out to
> /usr/ports/wip, following the example of pkgsrc-wip.
> 
> Ports checks require that the first entry in CATEGORIES match the parent
> directory.  Adding wip here results in an invalid category error.
> 
> I can patch it in as necessary, but would like to make the change permanent
> so that this is unnecessary and problems can be avoided.
> 
> There are a few other contributors to my wip collection at this point and
> I'm hoping to see the system grow, as pkgsrc-wip has proven to be a popular
> and useful model to follow.

Maybe I don't fully understand you're need(s)/request.
But won't Mk/bsd.local.mk , and Makefile.local give you that capability?

--Chris
Comment 3 Jason W. Bacon freebsd_committer freebsd_triage 2017-11-09 06:04:14 UTC
I was unaware of bsd.local.mk, so thanks for pointing this out.

We can also accomplish our goal with the following two changes:

/etc/make.conf:

USE_LOCAL_MK=yes

${PORTSDIR}/mk/bsd.local.mk:

VALID_CATEGORIES+=wip

In theory, these should be one-time modifications, which is better than having to patch after every portsnap update.

I was hoping the wip category could be fully embraced as it is in the pkgsrc project, though.  I think having a common location for unfinished ports would facilitate more collaboration on new ports development and eliminate some of the duplicated effort caused by the currently fragmented or unpublished work-in-progress collections.