Proposal: mechanism for local patches
Scott Lambert
lambert at lambertfam.org
Wed Dec 3 13:00:12 PST 2008
On Wed, Dec 03, 2008 at 02:10:40AM +0000, G. Paul Ziemba wrote:
> lambert at lambertfam.org (Scott Lambert) writes:
>
> >How about something like WRKDIRPREFIX?
>
> >Presumably the logic for dealing with that structure is already in
> >the system. Maybe you could have USE_LOCAL_PATCHES boolean which
> >uses ${CATEGORY}/${PORTNAME}/files subdirs in WRKDIRPREFIX, or
> >LOCALPATCHDIRPREFIX if you want to keep your patches in CVS/SVN without
> >polluting the CVS/SVN working directory.
>
>
> I'm not sure I undersand - do you mean that you'd pick one of
> $(WRKDIRPREFIX)/${CATEGORY}/${PORTNAME}/files or
> $(LOCALPATCHDIRPREFIX)/${CATEGORY}/${PORTNAME}/files to get
> patches from, based on the state of USE_LOCAL_PATCHES? But I was
> hoping to augment $(WRKDIRPREFIX)/${CATEGORY}/${PORTNAME}/files
> instead of replacing it.
I meant them as implementation options. The person doing the work to
add the functionality could choose which method to setup. I did *not*
mean that both options should be setup in the Mk infrastructure and
leave the choice to the user. But if the implementor wanted to do so,
that would be their choice.
Although, I suppose it could be setup such that only one new variable is
required, something like LOCALPATCHDIRPREFIX. LOCALPATCHDIRPREFIX could
default to WRKDIRPREFIX.
--
Scott Lambert KC5MLE Unix SysAdmin
lambert at lambertfam.org
More information about the freebsd-ports
mailing list